Commit 68fb395b authored by Maurits Rijk's avatar Maurits Rijk
Browse files

Fix for #97776

parent 4c1c236e
2002-12-21 Maurits Rijk <lpeek.mrijk@consunet.nl>
* plug-ins/imagemap/imap_csim.l: add "<string.h> to remove warning.
* plug-ins/imagemap/imap_csim_parse.[ch]: regenerated
* plug-ins/imagemap/imap_csim.y: fix for #97776 (Imagemap can't read
CSIM files after itself)
2002-12-20 Sven Neumann <sven@gimp.org>
 
* app/config/Makefile.am
......
......@@ -22,6 +22,8 @@
*
*/
#include <string.h>
#include "imap_csim_parse.h"
#ifdef FLEX_SCANNER
......
......@@ -62,7 +62,7 @@ static MapInfo_t *_map_info;
csim_file : image start_map comment_lines area_list end_map
;
image : '<' IMG SRC '=' STRING image_tags '>'
image : '<' IMG SRC '=' STRING image_tags xhtml_close
{
g_strreplace(&_map_info->image_name, $5);
}
......@@ -132,13 +132,17 @@ area_list : /* empty */
| area_list area
;
area : '<' AREA tag_list '>'
area : '<' AREA tag_list xhtml_close
{
if (current_type != UNDEFINED)
add_shape(current_object);
}
;
xhtml_close : '>'
| '/' '>'
;
tag_list : /* Empty */
| tag_list tag
;
......
This diff is collapsed.
#ifndef BISON_IMAP_CSIM_TAB_H
# define BISON_IMAP_CSIM_TAB_H
#ifndef YYSTYPE
typedef union {
int val;
double value;
char id[256];
} YYSTYPE;
#define IMG 257
#define SRC 258
#define WIDTH 259
#define HEIGHT 260
#define BORDER 261
#define USEMAP 262
#define START_MAP 263
#define END_MAP 264
#define NAME 265
#define AREA 266
#define SHAPE 267
#define COORDS 268
#define ALT 269
#define HREF 270
#define NOHREF 271
#define TARGET 272
#define ONMOUSEOVER 273
#define ONMOUSEOUT 274
#define ONFOCUS 275
#define ONBLUR 276
#define AUTHOR 277
#define DESCRIPTION 278
#define BEGIN_COMMENT 279
#define END_COMMENT 280
#define FLOAT 281
#define STRING 282
} yystype;
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
# define IMG 257
# define SRC 258
# define WIDTH 259
# define HEIGHT 260
# define BORDER 261
# define USEMAP 262
# define START_MAP 263
# define END_MAP 264
# define NAME 265
# define AREA 266
# define SHAPE 267
# define COORDS 268
# define ALT 269
# define HREF 270
# define NOHREF 271
# define TARGET 272
# define ONMOUSEOVER 273
# define ONMOUSEOUT 274
# define ONFOCUS 275
# define ONBLUR 276
# define AUTHOR 277
# define DESCRIPTION 278
# define BEGIN_COMMENT 279
# define END_COMMENT 280
# define FLOAT 281
# define STRING 282
extern YYSTYPE csim_lval;
#endif /* not BISON_IMAP_CSIM_TAB_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment