Remove lexer.l special around input_t in boxes.h #78

This commit is contained in:
Thomas Jensen 2021-04-15 20:52:58 +02:00
parent 885bc9d498
commit fb010bc7d6
No known key found for this signature in database
GPG Key ID: A4ACEE270D0FB7DB
2 changed files with 1 additions and 6 deletions

View File

@ -156,8 +156,6 @@ typedef struct {
size_t *posmap; /* for each character in `text`, position of corresponding char in `mbtext`. Needed for box removal. */ size_t *posmap; /* for each character in `text`, position of corresponding char in `mbtext`. Needed for box removal. */
} line_t; } line_t;
#ifndef FILE_LEXER_L
typedef struct { typedef struct {
line_t *lines; line_t *lines;
size_t anz_lines; /* number of entries in input */ size_t anz_lines; /* number of entries in input */
@ -169,7 +167,6 @@ typedef struct {
#define INPUT_INITIALIZER {NULL, 0, 0, LINE_MAX_BYTES, 0} #define INPUT_INITIALIZER {NULL, 0, 0, LINE_MAX_BYTES, 0}
extern input_t input; extern input_t input;
#endif /*!FILE_LEXER_L*/
#endif /* BOXES_H */ #endif /* BOXES_H */

View File

@ -60,10 +60,8 @@ void inflate_inbuf(void *yyscanner, const char *configfile);
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include "shape.h"
#define FILE_LEXER_L
#include "boxes.h" #include "boxes.h"
#undef FILE_LEXER_L #include "shape.h"
#include "tools.h" #include "tools.h"
#include "parsing.h" #include "parsing.h"
#include "parser.h" #include "parser.h"