This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/lib/diesel.h

58 lines
1.4 KiB
C
Raw Normal View History

2002-04-10 20:29:57 +00:00
/* $Id$ */
2002-03-29 22:58:53 +00:00
#ifndef _DIESEL_H
#define _DIESEL_H
#define UNIXTENSIONS
#define VARIABLES
#define FALSE 0
#define TRUE 1
#define DIAGNOSTIC 2
#define EOS '\0'
#define V (void)
/* Globals exported */
2002-05-11 11:14:35 +00:00
#ifdef DIESEL_TRACE
2002-03-29 22:58:53 +00:00
int tracing = TRUE; /* Trace macro evalution */
#endif
/* Local variables. */
#define MAXARGS 10 /* Maximum arguments to a macro */
2002-04-10 20:29:57 +00:00
#define MAXSTR 2560 /* Maximum string length */
2002-03-29 22:58:53 +00:00
#define MAXDEPTH 32 /* Maximum recursion depth for eval */
#define MACROCHAR '@' /* Macro trigger character */
#define ARGOPEN '(' /* Argument open bracket */
#define ARGCLOSE ')' /* Argument close bracket */
#define ARGSEP ',' /* Argument separator character */
#define QUOTE '"' /* Literal string quote character */
#define CASEINS /* Case-insensitive function names */
#define STRLIMIT (MAXSTR - 20) /* String output length limit */
#define OverFlow " @(++)" /* Glyph indicating string overflow */
#define ELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
#define FUZZEQ(a, b) ((((a) < (b)) ? ((b) - (a)) : ((a) - (b))) < 1E-10)
2002-03-31 13:09:23 +00:00
int diesel(char *, char *);
2002-03-29 22:58:53 +00:00
/*
* MBSE BBS specific functions
*/
2002-03-31 13:09:23 +00:00
char *ParseMacro( const char *, int * );
void MacroVars( const char *, const char *, ... );
void MacroClear(void);
2002-04-10 20:29:57 +00:00
void html_massage(char *, char *);
FILE *OpenMacro(const char *, int, int);
2002-03-29 22:58:53 +00:00
#endif