Fixed a lot of warnings and errors.

This commit is contained in:
jetsoni
2003-10-20 22:46:40 +00:00
parent c8a98c8264
commit c6677f2205
53 changed files with 191 additions and 173 deletions

View File

@@ -20,4 +20,9 @@
SubDir BEPASCAL_TOP source tools headertoxml source ;
actions fpc
{
fpc -g -S2 $(2) -FE$(dir) -Fusource/tools/stubgen.so/pas/ -Fllib ;
}
Objects headertoxml.pp ;

View File

@@ -112,8 +112,9 @@ DRIVER_PATH on $(NAME) = ;
# Specify the name of the binary
# If the name has spaces, you must quote it: "My App"
BeMain libstubgen.so : lexer.l
parser.y
BeMain libstubgen.so : parser.y
lexer.l
getopt.c
main.c
pathname.c

View File

@@ -1,7 +1,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/haiku/befpc/bepascal/source/tools/stubgen.so/cpp/lexer.c,v 1.4 2003-10-09 20:08:04 ocoursiere Exp $
* $Header: /home/haiku/befpc/bepascal/source/tools/stubgen.so/cpp/lexer.c,v 1.5 2003-10-20 22:46:40 jetsoni Exp $
*/
#define FLEX_SCANNER
@@ -596,7 +596,7 @@ char *yytext;
* (ftp://ftp.uu.net/usenet/net.sources/ansi.c.grammar.Z)
*
* DATE: Thu Aug 15 13:10:06 EDT 1996
* $Id: lexer.c,v 1.4 2003-10-09 20:08:04 ocoursiere Exp $
* $Id: lexer.c,v 1.5 2003-10-20 22:46:40 jetsoni Exp $
*
* Copyright (c) 1996-1998 Michael John Radwin
*
@@ -755,7 +755,7 @@ char *yytext;
#if 0 /* #ifdef WIN32 */
#include "y_tab.h"
#else
#include "y.tab.h"
#include "parser.h"
#endif
#ifdef __cplusplus
@@ -772,7 +772,7 @@ char *yytext;
the value as a pointer */
#define RETURN_VAL(x) tokens_seen++; yylval.flag = 37; return(x)
static const char rcsid[] = "$Id: lexer.c,v 1.4 2003-10-09 20:08:04 ocoursiere Exp $";
static const char rcsid[] = "$Id: lexer.c,v 1.5 2003-10-20 22:46:40 jetsoni Exp $";
static void count();
static void comment();

View File

@@ -9,7 +9,7 @@
* (ftp://ftp.uu.net/usenet/net.sources/ansi.c.grammar.Z)
*
* DATE: Thu Aug 15 13:10:06 EDT 1996
* $Id: lexer.l,v 1.1 2003-09-21 22:46:55 ocoursiere Exp $
* $Id: lexer.l,v 1.2 2003-10-20 22:46:40 jetsoni Exp $
*
* Copyright (c) 1996-1998 Michael John Radwin
*
@@ -29,6 +29,9 @@
*
* Modification history:
* $Log: not supported by cvs2svn $
* Revision 1.1 2003/09/21 22:46:55 ocoursiere
* stubgen.so is now include in the build process
*
* Revision 1.1 2001/11/07 10:06:07 ithamar
* Added stubgen to CVS
*
@@ -174,7 +177,7 @@ IS (u|U|l|L)*
#if 0 /* #ifdef WIN32 */
#include "y_tab.h"
#else
#include "y.tab.h"
#include "parser.h"
#endif
#ifdef __cplusplus
@@ -191,7 +194,7 @@ IS (u|U|l|L)*
the value as a pointer */
#define RETURN_VAL(x) tokens_seen++; yylval.flag = 37; return(x)
static const char rcsid[] = "$Id: lexer.l,v 1.1 2003-09-21 22:46:55 ocoursiere Exp $";
static const char rcsid[] = "$Id: lexer.l,v 1.2 2003-10-20 22:46:40 jetsoni Exp $";
static void count();
static void comment();

View File

@@ -69,7 +69,7 @@
* This grammar is only a subset of the real C++ language.
*
* DATE: Thu Aug 15 13:10:06 EDT 1996
* $Id: parser.c,v 1.4 2003-10-09 20:08:04 ocoursiere Exp $
* $Id: parser.c,v 1.5 2003-10-20 22:46:40 jetsoni Exp $
*
* Copyright (c) 1996-1998 Michael John Radwin
*
@@ -195,7 +195,7 @@
* };
*
* Error:
* stubgen version 2.0-beta $Revision: 1.4 $.
* stubgen version 2.0-beta $Revision: 1.5 $.
* parse error at line 4, file test.H:
* public:
* ^
@@ -415,7 +415,7 @@ extern int collectMemberInitList();
/* defined here in parser.y */
static int error_recovery();
static int yyerror(char *);
static const char rcsid[] = "$Id: parser.c,v 1.4 2003-10-09 20:08:04 ocoursiere Exp $";
static const char rcsid[] = "$Id: parser.c,v 1.5 2003-10-20 22:46:40 jetsoni Exp $";
/* defined in main.c */
extern FILE *outfile;