Include sqlca.h automatically.
This commit is contained in:
parent
7a0672b7b1
commit
7955f98774
@ -1192,5 +1192,9 @@ Mon Jan 7 12:18:01 CET 2002
|
|||||||
Tue Jan 8 15:16:37 CET 2002
|
Tue Jan 8 15:16:37 CET 2002
|
||||||
|
|
||||||
- Fixed array pointers, no longer using void *.
|
- Fixed array pointers, no longer using void *.
|
||||||
|
|
||||||
|
Thu Jan 10 11:12:14 CET 2002
|
||||||
|
|
||||||
|
- Include sqlca.h automatically.
|
||||||
- Set ecpg version to 2.9.0.
|
- Set ecpg version to 2.9.0.
|
||||||
- Set library version to 3.3.0.
|
- Set library version to 3.3.0.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.52 2002/01/10 01:11:45 tgl Exp $ */
|
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.53 2002/01/10 10:42:54 meskes Exp $ */
|
||||||
|
|
||||||
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
|
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
|
||||||
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
|
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
|
||||||
@ -296,8 +296,8 @@ main(int argc, char *const argv[])
|
|||||||
/* initialize lex */
|
/* initialize lex */
|
||||||
lex_init();
|
lex_init();
|
||||||
|
|
||||||
/* we need two includes */
|
/* we need several includes */
|
||||||
fprintf(yyout, "/* Processed by ecpg (%d.%d.%d) */\n/* These three include files are added by the preprocessor */\n#include <ecpgtype.h>\n#include <ecpglib.h>\n#include <ecpgerrno.h>\n#line 1 \"%s\"\n", MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL, input_filename);
|
fprintf(yyout, "/* Processed by ecpg (%d.%d.%d) */\n/* These three include files are added by the preprocessor */\n#include <ecpgtype.h>\n#include <ecpglib.h>\n#include <ecpgerrno.h>\n#include <sqlca.h>\n#line 1 \"%s\"\n", MAJOR_VERSION, MINOR_VERSION, PATCHLEVEL, input_filename);
|
||||||
|
|
||||||
/* and parse the source */
|
/* and parse the source */
|
||||||
yyparse();
|
yyparse();
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.83 2001/12/23 12:17:41 meskes Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.84 2002/01/10 10:42:54 meskes Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -824,6 +824,11 @@ cppline {space}*#(.*\\{space})*.*
|
|||||||
{}
|
{}
|
||||||
yytext[i+1] = '\0';
|
yytext[i+1] = '\0';
|
||||||
|
|
||||||
|
/* since version 2.9.0 sqlca.h is included
|
||||||
|
automatically */
|
||||||
|
if (strcmp(yytext, "sqlca") == 0)
|
||||||
|
mmerror(PARSE_ERROR, ET_NOTICE, "sqlca.h is included automatically.");
|
||||||
|
|
||||||
yyin = NULL;
|
yyin = NULL;
|
||||||
for (ip = include_paths; yyin == NULL && ip != NULL; ip = ip->next)
|
for (ip = include_paths; yyin == NULL && ip != NULL; ip = ip->next)
|
||||||
{
|
{
|
||||||
@ -846,8 +851,8 @@ cppline {space}*#(.*\\{space})*.*
|
|||||||
}
|
}
|
||||||
if (!yyin)
|
if (!yyin)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Error: Cannot open include file %s in line %d\n", yytext, yylineno);
|
sprintf(errortext, "Cannot open include file %s in line %d\n", yytext, yylineno);
|
||||||
exit(NO_INCLUDE_FILE);
|
mmerror(NO_INCLUDE_FILE, ET_FATAL, errortext);
|
||||||
}
|
}
|
||||||
|
|
||||||
input_filename = mm_strdup(inc_file);
|
input_filename = mm_strdup(inc_file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user