diff options
author | Norbert Preining <norbert@preining.info> | 2020-10-12 03:04:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-10-12 03:04:00 +0000 |
commit | 0ce40abb18ec02ec6fd6bcc5f21612c88daa7578 (patch) | |
tree | 416289fe1448873fd8ca33051f50ad85bffa8aaa /support/dktools/dk4tsp.h | |
parent | fdb18507cd80dc17f5a5256153d34668b4f4e61c (diff) |
CTAN sync 202010120303
Diffstat (limited to 'support/dktools/dk4tsp.h')
-rw-r--r-- | support/dktools/dk4tsp.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/support/dktools/dk4tsp.h b/support/dktools/dk4tsp.h deleted file mode 100644 index fd20ba0015..0000000000 --- a/support/dktools/dk4tsp.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020, Dirk Krause. All rights reserved. -SPDX-License-Identifier: BSD-3-Clause -*/ - -#ifndef DK4TSP_H_INCLUDED -#define DK4TSP_H_INCLUDED 1 - -/** @file dk4tsp.h Text stream processing. -*/ - -#ifndef DK4CONF_H_INCLUDED -#if DK4_BUILDING_DKTOOLS4 -#include "dk4conf.h" -#else -#include <dktools-4/dk4conf.h> -#endif -#endif - -#ifndef DK4TYPES_H_INCLUDED -#if DK4_BUILDING_DKTOOLS4 -#include "dk4types.h" -#else -#include <dktools-4/dk4types.h> -#endif -#endif - -/** Position in a data stream. -*/ -typedef struct { - dk4_um_t bytes; /**< Number of bytes successfully processed. */ - dk4_um_t chars; /**< Number of current character. */ - dk4_um_t lineno; /**< Current line number. */ - dk4_um_t charil; /**< Number of current character in line. */ -} dk4_text_stream_position_t; - -/** Results from processing a text character or a line. -*/ -enum { - /** Text processing succeeded. - */ - DK4_TSP_RES_OK = 1, - - /** There was an error while applying - the information, but we can continue. - */ - DK4_TSP_RES_ERROR = 0, - - /** Fatal error while applying information, - abort processing. - */ - DK4_TSP_RES_FATAL = -1 -}; - -#endif - |