~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/imagemap/imap_ncsa.l

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <string.h>
26
26
 
 
27
#include <glib.h>
 
28
 
27
29
#include "imap_ncsa_parse.h"
28
30
 
29
31
#ifdef FLEX_SCANNER
38
40
ID      [a-zA-Z_][a-zA-Z0-9_\-]*
39
41
WS      [ \t\n]+
40
42
 
41
 
%x link
 
43
%x imap_link
42
44
%x comment
43
45
 
44
46
%%
70
72
                                }
71
73
 
72
74
RECT                            {
73
 
                                   BEGIN(link);
 
75
                                   BEGIN(imap_link);
74
76
                                   return RECTANGLE;
75
77
                                }
76
78
 
77
79
CIRCLE                          {
78
 
                                   BEGIN(link);
 
80
                                   BEGIN(imap_link);
79
81
                                   return CIRCLE;
80
82
                                }
81
83
 
82
84
POLY                            {
83
 
                                   BEGIN(link);
 
85
                                   BEGIN(imap_link);
84
86
                                   return POLYGON;
85
87
                                }
86
88
 
87
89
DEFAULT                         {
88
 
                                   BEGIN(link);
 
90
                                   BEGIN(imap_link);
89
91
                                   return DEFAULT;
90
92
                                }
91
93
 
92
 
<link>[^ ,\t\n]+                {
 
94
<imap_link>[^ ,\t\n]+           {
93
95
                                   BEGIN(INITIAL);
94
96
                                   strcpy(ncsa_lval.id, yytext);
95
97
                                   ncsa_lval.id[yyleng - 1] = '\0';
97
99
                                }
98
100
 
99
101
-?{DIGIT}*"."?{DIGIT}*([Ee][-+]?{DIGIT}*)? {
100
 
                                   ncsa_lval.value = atof(yytext);
 
102
                                   ncsa_lval.value = g_ascii_strtod (yytext, NULL);
101
103
                                   return FLOAT;
102
104
                                }
103
105