Removed DEF_DESIGN macro, because it now defaults to first design

Removed some porting code, hoping for autoconf future
Added PARSER_DEBUG and LEXER_DEBUG macros
This commit is contained in:
Thomas Jensen 1999-06-30 12:19:12 +00:00
parent bce140bf46
commit 27c41667ef

View File

@ -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.13 1999/06/23 19:21:15 tsjensen Exp tsjensen $
* Version: $Id: boxes.h,v 1.14 1999/06/25 18:51:04 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.14 1999/06/25 18:51:04 tsjensen
* Removed empty_side() prototype (now in shape.h)
* Added indentmode and justify members to command line options struct
*
* Revision 1.13 1999/06/23 19:21:15 tsjensen
* Now exporting anz_designs, input, and empty_side()
* Added #include regexp.h back
@ -65,13 +69,15 @@
/* #define DEBUG */
/* #define REGEXP_DEBUG */
/* #define PARSER_DEBUG */
/* #define LEXER_DEBUG */
#include "regexp.h"
#define PROJECT "boxes" /* name of program */
#define VERSION "1.0 beta" /* current release of project */
#define VERSION "1.0 beta 2" /* current release of project */
/*
@ -79,23 +85,14 @@
*/
#define DEF_TABSTOP 8 /* default tab stop distance (-t) */
#define DEF_INDENTMODE 'b' /* indent box, not text by default */
#define DEF_DESIGN "C" /* default design name */
/*
* some systems (especially sunos4) do not define EXIT_* constants
*/
#ifndef EXIT_FAILURE
#define EXIT_FAILURE 1
#endif
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
/* max. allowed tab stop distance
* max. allowed tab stop distance
*/
#define MAX_TABSTOP 16
/* max. supported line length
/*
* max. supported line length
* This is how many characters of a line will be read. Anything beyond
* will be discarded. The line feed character at the end does not count.
* (This should have been done via sysconf(), but I didn't do it in order
@ -116,7 +113,7 @@
#endif
#define BTOP 0 /* for use with sides */
#define BTOP 0 /* for use with sides */
#define BRIG 1
#define BBOT 2
#define BLEF 3
@ -156,8 +153,8 @@ extern int anz_designs;
extern int design_idx;
extern int yylineno;
extern char *yyfilename;
extern int yylineno; /* config file line counter */
extern char *yyfilename; /* name of config file */
typedef struct { /* Command line options: */