Minor cleanup and add Doxygen comments
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5081 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
251317bd9a
commit
2f98b6e39a
|
@ -18,17 +18,13 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
%{
|
||||
/*
|
||||
* resource.l
|
||||
/** @file
|
||||
*
|
||||
* Lex file for parsing res files
|
||||
* Lexical analyser for resource (*.wrf) files
|
||||
*/
|
||||
|
||||
#include "lib/framework/frame.h"
|
||||
|
||||
/* Allow frame header files to be singly included */
|
||||
#define FRAME_LIB_INCLUDE
|
||||
|
||||
#include "lib/framework/resly.h"
|
||||
|
||||
/* Get the Yacc definitions */
|
||||
|
@ -36,9 +32,6 @@
|
|||
|
||||
extern void res_error(const char* msg);
|
||||
|
||||
/* Maximum length for any TEXT_T value */
|
||||
#define YYLMAX 8192
|
||||
|
||||
#include "lib/framework/lexer_input.h"
|
||||
|
||||
#ifndef yyextra
|
||||
|
|
|
@ -18,10 +18,9 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
%{
|
||||
/*
|
||||
* resource.y
|
||||
/** @file
|
||||
*
|
||||
* Yacc file for parsing RES files
|
||||
* Parser for RES (*.wrf) files
|
||||
*/
|
||||
|
||||
extern int res_lex(void);
|
||||
|
|
|
@ -18,10 +18,9 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
%{
|
||||
/*
|
||||
* StrRes.l
|
||||
/** @file
|
||||
*
|
||||
* Lex file for parsing string resource files
|
||||
* Lexical analyser resource files
|
||||
*/
|
||||
|
||||
#include "lib/framework/frame.h"
|
||||
|
@ -37,8 +36,6 @@
|
|||
/* Get the Yacc definitions */
|
||||
#include "strres_parser.tab.h"
|
||||
|
||||
void strres_error(const char *pMessage,...);
|
||||
|
||||
/* Maximum length for any TEXT_T value */
|
||||
#define YYLMAX 8192
|
||||
|
||||
|
|
|
@ -18,32 +18,24 @@
|
|||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
%{
|
||||
/*
|
||||
* StrRes.y
|
||||
/** @file
|
||||
*
|
||||
* Yacc file for parsing String Resource files
|
||||
* Parser for string resource files
|
||||
*/
|
||||
|
||||
/* Allow frame header files to be singly included */
|
||||
#define FRAME_LIB_INCLUDE
|
||||
|
||||
#include "lib/framework/frame.h"
|
||||
#include "lib/framework/strres.h"
|
||||
#include "lib/framework/strresly.h"
|
||||
|
||||
extern int strres_lex (void);
|
||||
|
||||
/*
|
||||
* A simple error reporting routine
|
||||
*/
|
||||
|
||||
void strres_error(const char *pMessage,...)
|
||||
void yyerror(const char* msg)
|
||||
{
|
||||
int line;
|
||||
char *pText;
|
||||
|
||||
strresGetErrorData(&line, &pText);
|
||||
debug( LOG_ERROR, "STRRES file parse error:\n%s at line %d\nText: '%s'\n", pMessage, line, pText );
|
||||
debug(LOG_ERROR, "STRRES file parse error:\n%s at line %d\nText: '%s'", msg, line, pText);
|
||||
abort();
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ extern int strres_parse(void);
|
|||
/* Destroy the lexer */
|
||||
extern int strres_lex_destroy(void);
|
||||
|
||||
void strres_error(const char *pMessage, ...);
|
||||
void strres_error(const char* msg);
|
||||
|
||||
/* Store a string */
|
||||
extern BOOL strresStoreString(STR_RES *psRes, char *pID, const char *pString);
|
||||
|
|
Loading…
Reference in New Issue