2006-09-25 09:46:28 -07:00
|
|
|
/*! \file resly.h
|
|
|
|
* \brief Interface to the RES file lex and yacc functions.
|
2007-06-28 10:47:08 -07:00
|
|
|
*/
|
|
|
|
#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 */
|
2006-11-03 13:35:50 -08:00
|
|
|
extern char aResDir[FILE_MAXCHAR];
|
|
|
|
extern char aCurrResDir[FILE_MAXCHAR];
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* Set the current input buffer for the lexer - used by resLoad */
|
2006-08-12 09:52:37 -07:00
|
|
|
extern void resSetInputBuffer(char *pBuffer, UDWORD size);
|
2007-06-28 10:47:08 -07:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
|