From f8774543a9aca5c7c2d693e12f0f359d5be9e4d1 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Wed, 23 Jun 1999 19:21:15 +0000 Subject: [PATCH] Now exporting anz_designs, input, and empty_side() Added #include regexp.h back --- src/boxes.h.in | 39 ++++++++++++++++++++++++++++++++------- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/src/boxes.h.in b/src/boxes.h.in index 7c8d4da..2f51d9f 100644 --- a/src/boxes.h.in +++ b/src/boxes.h.in @@ -3,7 +3,7 @@ * Date created: March 18, 1999 (Thursday, 15:09h) * Author: Thomas Jensen * tsjensen@stud.informatik.uni-erlangen.de - * Version: $Id: boxes.h,v 1.11 1999/06/22 12:01:24 tsjensen Exp tsjensen $ + * Version: $Id: boxes.h,v 1.12 1999/06/23 12:33:49 tsjensen Exp tsjensen $ * Language: ANSI C * Purpose: Project-wide globals and data structures * Remarks: --- @@ -11,6 +11,10 @@ * Revision History: * * $Log: boxes.h,v $ + * Revision 1.12 1999/06/23 12:33:49 tsjensen + * Moved some data structures and macros related to shapes to shape.h + * Added #ifdef DEBUG around __TJ() macro for convenience + * * Revision 1.11 1999/06/22 12:01:24 tsjensen * Added DEF_DESIGN (default design name) * Added opt_t and opt global variable from boxes.c @@ -58,6 +62,9 @@ /* #define DEBUG */ /* #define REGEXP_DEBUG */ +#include "regexp.h" + + #define PROJECT "boxes" /* name of program */ #define VERSION "1.0 beta" /* current release of project */ @@ -140,12 +147,8 @@ typedef struct { size_t anz_revrules; } design_t; -typedef struct { - size_t len; - char *text; -} line_t; - extern design_t *designs; +extern int anz_designs; extern int design_idx; @@ -171,7 +174,29 @@ typedef struct { /* Command line options: */ extern opt_t opt; +typedef struct { + size_t len; + char *text; +} line_t; + +#ifndef FILE_LEXER_L +typedef struct { + line_t *lines; + size_t anz_lines; /* number of entries in input */ + size_t maxline; /* length of longest input line */ + size_t indent; /* number of leading spaces found */ +} input_t; + +#define INPUT_INITIALIZER {NULL, 0, 0, LINE_MAX} + +extern input_t input; +#endif /*!FILE_LEXER_L*/ + + +int empty_side (design_t *d, const int aside); + + + #endif /* BOXES_H */ - /*EOF*/ /* vim: set cindent sw=4: */