~ubuntu-wine/ubuntu/lucid/wine1.2/wine1.2+winepulse

« back to all changes in this revision

Viewing changes to tools/widl/parser.l

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-02-02 11:15:03 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100202111503-w4ayji21ei1ginjr
Tags: 1.1.37-0ubuntu1
* New upstream release
  - A number of fixes in AVI file support.
  - Several MSXML improvements.
  - A few MSI fixes.
  - Various bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
%x WSTRQUOTE
38
38
%x ATTR
39
39
%x PP_LINE
 
40
%x SQUOTE
40
41
 
41
42
%{
42
43
 
63
64
 
64
65
#include "parser.tab.h"
65
66
 
66
 
extern char *temp_name;
67
 
 
68
67
static void addcchar(char c);
69
68
static char *get_buffered_cstring(void);
70
69
 
157
156
                                parser_lval.str = get_buffered_cstring();
158
157
                                return aWSTRING;
159
158
                        }
160
 
<QUOTE,WSTRQUOTE>\\\\   |
 
159
<INITIAL,ATTR>\'        yy_push_state(SQUOTE); cbufidx = 0;
 
160
<SQUOTE>\'              {
 
161
                                yy_pop_state();
 
162
                                parser_lval.str = get_buffered_cstring();
 
163
                                return aSQSTRING;
 
164
                        }
 
165
<QUOTE,WSTRQUOTE,SQUOTE>\\\\    |
161
166
<QUOTE,WSTRQUOTE>\\\"   addcchar(yytext[1]);
162
 
<QUOTE,WSTRQUOTE>\\.    addcchar('\\'); addcchar(yytext[1]);
163
 
<QUOTE,WSTRQUOTE>.      addcchar(yytext[0]);
 
167
<SQUOTE>\\\'    addcchar(yytext[1]);
 
168
<QUOTE,WSTRQUOTE,SQUOTE>\\.     addcchar('\\'); addcchar(yytext[1]);
 
169
<QUOTE,WSTRQUOTE,SQUOTE>.       addcchar(yytext[0]);
164
170
<INITIAL,ATTR>\[        yy_push_state(ATTR); return '[';
165
171
<ATTR>\]                yy_pop_state(); return ']';
166
172
<ATTR>{cident}          return attr_token(yytext);