mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-06-20 01:37:52 +02:00
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:
parent
bce140bf46
commit
27c41667ef
@ -3,7 +3,7 @@
|
|||||||
* Date created: March 18, 1999 (Thursday, 15:09h)
|
* Date created: March 18, 1999 (Thursday, 15:09h)
|
||||||
* Author: Thomas Jensen
|
* Author: Thomas Jensen
|
||||||
* tsjensen@stud.informatik.uni-erlangen.de
|
* 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
|
* Language: ANSI C
|
||||||
* Purpose: Project-wide globals and data structures
|
* Purpose: Project-wide globals and data structures
|
||||||
* Remarks: ---
|
* Remarks: ---
|
||||||
@ -11,6 +11,10 @@
|
|||||||
* Revision History:
|
* Revision History:
|
||||||
*
|
*
|
||||||
* $Log: boxes.h,v $
|
* $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
|
* Revision 1.13 1999/06/23 19:21:15 tsjensen
|
||||||
* Now exporting anz_designs, input, and empty_side()
|
* Now exporting anz_designs, input, and empty_side()
|
||||||
* Added #include regexp.h back
|
* Added #include regexp.h back
|
||||||
@ -65,13 +69,15 @@
|
|||||||
|
|
||||||
/* #define DEBUG */
|
/* #define DEBUG */
|
||||||
/* #define REGEXP_DEBUG */
|
/* #define REGEXP_DEBUG */
|
||||||
|
/* #define PARSER_DEBUG */
|
||||||
|
/* #define LEXER_DEBUG */
|
||||||
|
|
||||||
#include "regexp.h"
|
#include "regexp.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define PROJECT "boxes" /* name of program */
|
#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_TABSTOP 8 /* default tab stop distance (-t) */
|
||||||
#define DEF_INDENTMODE 'b' /* indent box, not text by default */
|
#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
|
* max. allowed tab stop distance
|
||||||
*/
|
|
||||||
#ifndef EXIT_FAILURE
|
|
||||||
#define EXIT_FAILURE 1
|
|
||||||
#endif
|
|
||||||
#ifndef EXIT_SUCCESS
|
|
||||||
#define EXIT_SUCCESS 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* max. allowed tab stop distance
|
|
||||||
*/
|
*/
|
||||||
#define MAX_TABSTOP 16
|
#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
|
* 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.
|
* 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
|
* (This should have been done via sysconf(), but I didn't do it in order
|
||||||
@ -156,8 +153,8 @@ extern int anz_designs;
|
|||||||
extern int design_idx;
|
extern int design_idx;
|
||||||
|
|
||||||
|
|
||||||
extern int yylineno;
|
extern int yylineno; /* config file line counter */
|
||||||
extern char *yyfilename;
|
extern char *yyfilename; /* name of config file */
|
||||||
|
|
||||||
|
|
||||||
typedef struct { /* Command line options: */
|
typedef struct { /* Command line options: */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user