From 09a3ed04729d765807517e6f8d716bb60e4b4da7 Mon Sep 17 00:00:00 2001 From: mquinson Date: Sun, 13 Feb 2005 19:26:58 +0000 Subject: [PATCH] Regenerate with flexml 1.2 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1002 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/include/surf/surfxml.h | 8 +++++--- src/surf/surfxml.l | 14 ++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/include/surf/surfxml.h b/src/include/surf/surfxml.h index 4916c7c7bb..7556059452 100644 --- a/src/include/surf/surfxml.h +++ b/src/include/surf/surfxml.h @@ -1,8 +1,8 @@ -/* XML processor/application API for ../../src/surf/surfxml.dtd. - * Generated 2005/01/27 07:41:00. +/* XML processor/application API for ../../surf/surfxml.dtd. + * Generated 2005/02/13 20:09:12. * * This program was generated with the FleXML XML processor generator, - * (Id: flexml.pl,v 1.35 2005/01/05 06:29:58 legranda Exp). + * (Id: flexml.pl,v 1.39 2005/02/13 18:12:19 legranda Exp). * Copyright © 1999 Kristoffer Rose. All rights reserved. * * You can redistribute and/or modify this program provided the following @@ -135,4 +135,6 @@ extern int element_context(int); /* XML processor entry point. */ extern int yylex(void); +/* Flexml error handling function (useful only when -q flag passed to flexml) */ +const char * parse_err_msg(void); #endif diff --git a/src/surf/surfxml.l b/src/surf/surfxml.l index 1626cb523a..e82f061aeb 100644 --- a/src/surf/surfxml.l +++ b/src/surf/surfxml.l @@ -1,8 +1,8 @@ /* Validating XML processor for surfxml.dtd. - * Generated 2005/02/10 12:28:10. + * Generated 2005/02/13 20:04:21. * * This program was generated with the FleXML XML processor generator, - * (Id: flexml.pl,v 1.38 2005/02/10 11:13:51 mquinson Exp). + * (Id: flexml.pl,v 1.39 2005/02/13 18:12:19 legranda Exp). * Copyright © 1999 Kristoffer Rose. All rights reserved. * * You can redistribute and/or modify this program provided the following @@ -25,9 +25,9 @@ /* Version strings. */ const char rcs_flexml_skeleton[] = - "$" "Id: skel,v 1.22 2005/02/10 11:18:26 mquinson Exp $"; + "$" "Id: skel,v 1.24 2005/02/10 11:42:39 mquinson Exp $"; const char rcs_flexml[] = - "$" "Id: flexml.pl,v 1.38 2005/02/10 11:13:51 mquinson Exp $"; + "$" "Id: flexml.pl,v 1.39 2005/02/13 18:12:19 legranda Exp $"; /* ANSI headers. */ #include @@ -39,9 +39,11 @@ const char rcs_flexml[] = /* Generated definitions. */ #define FLEXML_yylineno -#define FLEXML_BUFFERSTACKSIZE 100000 +#define FLEXML_BUFFERSTACKSIZE 10000000 /* XML processor api. */ +#include "surf/surfxml.h" + /* FleXML-provided data. */ const char* pcdata; AT_network_link_bandwidth A_network_link_bandwidth; @@ -859,7 +861,7 @@ static int fail(const char* fmt, ...) #ifndef FLEXML_quiet_parser /* print directly to sdterr */ - fprintf(stderr, "%s", flexml_err_msg); + fprintf(stderr, "%s\n", flexml_err_msg); flexml_err_msg[0] = '\0'; #endif -- 2.20.1