warzone2100/lib/framework/resly.h

28 lines
750 B
C
Raw Normal View History

/*! \file resly.h
* \brief Interface to the RES file lex and yacc functions.
*/
#ifndef _resly_h
#define _resly_h
/* Maximum number of characters in a directory entry */
#define FILE_MAXCHAR 255
/* Maximum number of TEXT items in any one Yacc rule */
#define TEXT_BUFFERS 10
/* The initial resource directory and the current resource directory */
extern char aResDir[FILE_MAXCHAR];
extern char aCurrResDir[FILE_MAXCHAR];
/* Set the current input buffer for the lexer - used by resLoad */
extern void resSetInputBuffer(char *pBuffer, UDWORD size);
/* Give access to the line number and current text for error messages */
extern void resGetErrorData(int *pLine, char **ppText);
/* Call the yacc parser */
extern int res_parse(void);
#endif