mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-23 19:21:27 +02:00
Remove lexer.l special around input_t in boxes.h #78
This commit is contained in:
parent
885bc9d498
commit
fb010bc7d6
@ -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 */
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user