1 #line 1 "quote_fmt_lex.c"
2 
3 #line 3 "quote_fmt_lex.c"
4 
5 #define  YY_INT_ALIGNED short int
6 
7 /* A lexical scanner generated by flex */
8 
9 #define yy_create_buffer quote_fmt_create_buffer
10 #define yy_delete_buffer quote_fmt_delete_buffer
11 #define yy_scan_buffer quote_fmt_scan_buffer
12 #define yy_scan_string quote_fmt_scan_string
13 #define yy_scan_bytes quote_fmt_scan_bytes
14 #define yy_init_buffer quote_fmt_init_buffer
15 #define yy_flush_buffer quote_fmt_flush_buffer
16 #define yy_load_buffer_state quote_fmt_load_buffer_state
17 #define yy_switch_to_buffer quote_fmt_switch_to_buffer
18 #define yypush_buffer_state quote_fmtpush_buffer_state
19 #define yypop_buffer_state quote_fmtpop_buffer_state
20 #define yyensure_buffer_stack quote_fmtensure_buffer_stack
21 #define yy_flex_debug quote_fmt_flex_debug
22 #define yyin quote_fmtin
23 #define yyleng quote_fmtleng
24 #define yylex quote_fmtlex
25 #define yylineno quote_fmtlineno
26 #define yyout quote_fmtout
27 #define yyrestart quote_fmtrestart
28 #define yytext quote_fmttext
29 #define yywrap quote_fmtwrap
30 #define yyalloc quote_fmtalloc
31 #define yyrealloc quote_fmtrealloc
32 #define yyfree quote_fmtfree
33 
34 #define FLEX_SCANNER
35 #define YY_FLEX_MAJOR_VERSION 2
36 #define YY_FLEX_MINOR_VERSION 6
37 #define YY_FLEX_SUBMINOR_VERSION 4
38 #if YY_FLEX_SUBMINOR_VERSION > 0
39 #define FLEX_BETA
40 #endif
41 
42 #ifdef yy_create_buffer
43 #define quote_fmt_create_buffer_ALREADY_DEFINED
44 #else
45 #define yy_create_buffer quote_fmt_create_buffer
46 #endif
47 
48 #ifdef yy_delete_buffer
49 #define quote_fmt_delete_buffer_ALREADY_DEFINED
50 #else
51 #define yy_delete_buffer quote_fmt_delete_buffer
52 #endif
53 
54 #ifdef yy_scan_buffer
55 #define quote_fmt_scan_buffer_ALREADY_DEFINED
56 #else
57 #define yy_scan_buffer quote_fmt_scan_buffer
58 #endif
59 
60 #ifdef yy_scan_string
61 #define quote_fmt_scan_string_ALREADY_DEFINED
62 #else
63 #define yy_scan_string quote_fmt_scan_string
64 #endif
65 
66 #ifdef yy_scan_bytes
67 #define quote_fmt_scan_bytes_ALREADY_DEFINED
68 #else
69 #define yy_scan_bytes quote_fmt_scan_bytes
70 #endif
71 
72 #ifdef yy_init_buffer
73 #define quote_fmt_init_buffer_ALREADY_DEFINED
74 #else
75 #define yy_init_buffer quote_fmt_init_buffer
76 #endif
77 
78 #ifdef yy_flush_buffer
79 #define quote_fmt_flush_buffer_ALREADY_DEFINED
80 #else
81 #define yy_flush_buffer quote_fmt_flush_buffer
82 #endif
83 
84 #ifdef yy_load_buffer_state
85 #define quote_fmt_load_buffer_state_ALREADY_DEFINED
86 #else
87 #define yy_load_buffer_state quote_fmt_load_buffer_state
88 #endif
89 
90 #ifdef yy_switch_to_buffer
91 #define quote_fmt_switch_to_buffer_ALREADY_DEFINED
92 #else
93 #define yy_switch_to_buffer quote_fmt_switch_to_buffer
94 #endif
95 
96 #ifdef yypush_buffer_state
97 #define quote_fmtpush_buffer_state_ALREADY_DEFINED
98 #else
99 #define yypush_buffer_state quote_fmtpush_buffer_state
100 #endif
101 
102 #ifdef yypop_buffer_state
103 #define quote_fmtpop_buffer_state_ALREADY_DEFINED
104 #else
105 #define yypop_buffer_state quote_fmtpop_buffer_state
106 #endif
107 
108 #ifdef yyensure_buffer_stack
109 #define quote_fmtensure_buffer_stack_ALREADY_DEFINED
110 #else
111 #define yyensure_buffer_stack quote_fmtensure_buffer_stack
112 #endif
113 
114 #ifdef yylex
115 #define quote_fmtlex_ALREADY_DEFINED
116 #else
117 #define yylex quote_fmtlex
118 #endif
119 
120 #ifdef yyrestart
121 #define quote_fmtrestart_ALREADY_DEFINED
122 #else
123 #define yyrestart quote_fmtrestart
124 #endif
125 
126 #ifdef yylex_init
127 #define quote_fmtlex_init_ALREADY_DEFINED
128 #else
129 #define yylex_init quote_fmtlex_init
130 #endif
131 
132 #ifdef yylex_init_extra
133 #define quote_fmtlex_init_extra_ALREADY_DEFINED
134 #else
135 #define yylex_init_extra quote_fmtlex_init_extra
136 #endif
137 
138 #ifdef yylex_destroy
139 #define quote_fmtlex_destroy_ALREADY_DEFINED
140 #else
141 #define yylex_destroy quote_fmtlex_destroy
142 #endif
143 
144 #ifdef yyget_debug
145 #define quote_fmtget_debug_ALREADY_DEFINED
146 #else
147 #define yyget_debug quote_fmtget_debug
148 #endif
149 
150 #ifdef yyset_debug
151 #define quote_fmtset_debug_ALREADY_DEFINED
152 #else
153 #define yyset_debug quote_fmtset_debug
154 #endif
155 
156 #ifdef yyget_extra
157 #define quote_fmtget_extra_ALREADY_DEFINED
158 #else
159 #define yyget_extra quote_fmtget_extra
160 #endif
161 
162 #ifdef yyset_extra
163 #define quote_fmtset_extra_ALREADY_DEFINED
164 #else
165 #define yyset_extra quote_fmtset_extra
166 #endif
167 
168 #ifdef yyget_in
169 #define quote_fmtget_in_ALREADY_DEFINED
170 #else
171 #define yyget_in quote_fmtget_in
172 #endif
173 
174 #ifdef yyset_in
175 #define quote_fmtset_in_ALREADY_DEFINED
176 #else
177 #define yyset_in quote_fmtset_in
178 #endif
179 
180 #ifdef yyget_out
181 #define quote_fmtget_out_ALREADY_DEFINED
182 #else
183 #define yyget_out quote_fmtget_out
184 #endif
185 
186 #ifdef yyset_out
187 #define quote_fmtset_out_ALREADY_DEFINED
188 #else
189 #define yyset_out quote_fmtset_out
190 #endif
191 
192 #ifdef yyget_leng
193 #define quote_fmtget_leng_ALREADY_DEFINED
194 #else
195 #define yyget_leng quote_fmtget_leng
196 #endif
197 
198 #ifdef yyget_text
199 #define quote_fmtget_text_ALREADY_DEFINED
200 #else
201 #define yyget_text quote_fmtget_text
202 #endif
203 
204 #ifdef yyget_lineno
205 #define quote_fmtget_lineno_ALREADY_DEFINED
206 #else
207 #define yyget_lineno quote_fmtget_lineno
208 #endif
209 
210 #ifdef yyset_lineno
211 #define quote_fmtset_lineno_ALREADY_DEFINED
212 #else
213 #define yyset_lineno quote_fmtset_lineno
214 #endif
215 
216 #ifdef yywrap
217 #define quote_fmtwrap_ALREADY_DEFINED
218 #else
219 #define yywrap quote_fmtwrap
220 #endif
221 
222 #ifdef yyalloc
223 #define quote_fmtalloc_ALREADY_DEFINED
224 #else
225 #define yyalloc quote_fmtalloc
226 #endif
227 
228 #ifdef yyrealloc
229 #define quote_fmtrealloc_ALREADY_DEFINED
230 #else
231 #define yyrealloc quote_fmtrealloc
232 #endif
233 
234 #ifdef yyfree
235 #define quote_fmtfree_ALREADY_DEFINED
236 #else
237 #define yyfree quote_fmtfree
238 #endif
239 
240 #ifdef yytext
241 #define quote_fmttext_ALREADY_DEFINED
242 #else
243 #define yytext quote_fmttext
244 #endif
245 
246 #ifdef yyleng
247 #define quote_fmtleng_ALREADY_DEFINED
248 #else
249 #define yyleng quote_fmtleng
250 #endif
251 
252 #ifdef yyin
253 #define quote_fmtin_ALREADY_DEFINED
254 #else
255 #define yyin quote_fmtin
256 #endif
257 
258 #ifdef yyout
259 #define quote_fmtout_ALREADY_DEFINED
260 #else
261 #define yyout quote_fmtout
262 #endif
263 
264 #ifdef yy_flex_debug
265 #define quote_fmt_flex_debug_ALREADY_DEFINED
266 #else
267 #define yy_flex_debug quote_fmt_flex_debug
268 #endif
269 
270 #ifdef yylineno
271 #define quote_fmtlineno_ALREADY_DEFINED
272 #else
273 #define yylineno quote_fmtlineno
274 #endif
275 
276 /* First, we deal with  platform-specific or compiler-specific issues. */
277 
278 /* begin standard C headers. */
279 #include <stdio.h>
280 #include <string.h>
281 #include <errno.h>
282 #include <stdlib.h>
283 
284 /* end standard C headers. */
285 
286 /* flex integer type definitions */
287 
288 #ifndef FLEXINT_H
289 #define FLEXINT_H
290 
291 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
292 
293 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
294 
295 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
296  * if you want the limit (max/min) macros for int types.
297  */
298 #ifndef __STDC_LIMIT_MACROS
299 #define __STDC_LIMIT_MACROS 1
300 #endif
301 
302 #include <inttypes.h>
303 typedef int8_t flex_int8_t;
304 typedef uint8_t flex_uint8_t;
305 typedef int16_t flex_int16_t;
306 typedef uint16_t flex_uint16_t;
307 typedef int32_t flex_int32_t;
308 typedef uint32_t flex_uint32_t;
309 #else
310 typedef signed char flex_int8_t;
311 typedef short int flex_int16_t;
312 typedef int flex_int32_t;
313 typedef unsigned char flex_uint8_t;
314 typedef unsigned short int flex_uint16_t;
315 typedef unsigned int flex_uint32_t;
316 
317 /* Limits of integral types. */
318 #ifndef INT8_MIN
319 #define INT8_MIN               (-128)
320 #endif
321 #ifndef INT16_MIN
322 #define INT16_MIN              (-32767-1)
323 #endif
324 #ifndef INT32_MIN
325 #define INT32_MIN              (-2147483647-1)
326 #endif
327 #ifndef INT8_MAX
328 #define INT8_MAX               (127)
329 #endif
330 #ifndef INT16_MAX
331 #define INT16_MAX              (32767)
332 #endif
333 #ifndef INT32_MAX
334 #define INT32_MAX              (2147483647)
335 #endif
336 #ifndef UINT8_MAX
337 #define UINT8_MAX              (255U)
338 #endif
339 #ifndef UINT16_MAX
340 #define UINT16_MAX             (65535U)
341 #endif
342 #ifndef UINT32_MAX
343 #define UINT32_MAX             (4294967295U)
344 #endif
345 
346 #ifndef SIZE_MAX
347 #define SIZE_MAX               (~(size_t)0)
348 #endif
349 
350 #endif /* ! C99 */
351 
352 #endif /* ! FLEXINT_H */
353 
354 /* begin standard C++ headers. */
355 
356 /* TODO: this is always defined, so inline it */
357 #define yyconst const
358 
359 #if defined(__GNUC__) && __GNUC__ >= 3
360 #define yynoreturn __attribute__((__noreturn__))
361 #else
362 #define yynoreturn
363 #endif
364 
365 /* Returned upon end-of-file. */
366 #define YY_NULL 0
367 
368 /* Promotes a possibly negative, possibly signed char to an
369  *   integer in range [0..255] for use as an array index.
370  */
371 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
372 
373 /* Enter a start condition.  This macro really ought to take a parameter,
374  * but we do it the disgusting crufty way forced on us by the ()-less
375  * definition of BEGIN.
376  */
377 #define BEGIN (yy_start) = 1 + 2 *
378 /* Translate the current start state into a value that can be later handed
379  * to BEGIN to return to the state.  The YYSTATE alias is for lex
380  * compatibility.
381  */
382 #define YY_START (((yy_start) - 1) / 2)
383 #define YYSTATE YY_START
384 /* Action number for EOF rule of a given start state. */
385 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
386 /* Special action meaning "start processing a new file". */
387 #define YY_NEW_FILE yyrestart( yyin  )
388 #define YY_END_OF_BUFFER_CHAR 0
389 
390 /* Size of default input buffer. */
391 #ifndef YY_BUF_SIZE
392 #ifdef __ia64__
393 /* On IA-64, the buffer size is 16k, not 8k.
394  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
395  * Ditto for the __ia64__ case accordingly.
396  */
397 #define YY_BUF_SIZE 32768
398 #else
399 #define YY_BUF_SIZE 16384
400 #endif /* __ia64__ */
401 #endif
402 
403 /* The state buf must be large enough to hold one state per character in the main buffer.
404  */
405 #define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
406 
407 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
408 #define YY_TYPEDEF_YY_BUFFER_STATE
409 typedef struct yy_buffer_state *YY_BUFFER_STATE;
410 #endif
411 
412 #ifndef YY_TYPEDEF_YY_SIZE_T
413 #define YY_TYPEDEF_YY_SIZE_T
414 typedef size_t yy_size_t;
415 #endif
416 
417 extern int yyleng;
418 
419 extern FILE *yyin, *yyout;
420 
421 #define EOB_ACT_CONTINUE_SCAN 0
422 #define EOB_ACT_END_OF_FILE 1
423 #define EOB_ACT_LAST_MATCH 2
424 
425     #define YY_LESS_LINENO(n)
426     #define YY_LINENO_REWIND_TO(ptr)
427 
428 /* Return all but the first "n" matched characters back to the input stream. */
429 #define yyless(n) \
430 	do \
431 		{ \
432 		/* Undo effects of setting up yytext. */ \
433         int yyless_macro_arg = (n); \
434         YY_LESS_LINENO(yyless_macro_arg);\
435 		*yy_cp = (yy_hold_char); \
436 		YY_RESTORE_YY_MORE_OFFSET \
437 		(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
438 		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
439 		} \
440 	while ( 0 )
441 #define unput(c) yyunput( c, (yytext_ptr)  )
442 
443 #ifndef YY_STRUCT_YY_BUFFER_STATE
444 #define YY_STRUCT_YY_BUFFER_STATE
445 struct yy_buffer_state
446 	{
447 	FILE *yy_input_file;
448 
449 	char *yy_ch_buf;		/* input buffer */
450 	char *yy_buf_pos;		/* current position in input buffer */
451 
452 	/* Size of input buffer in bytes, not including room for EOB
453 	 * characters.
454 	 */
455 	int yy_buf_size;
456 
457 	/* Number of characters read into yy_ch_buf, not including EOB
458 	 * characters.
459 	 */
460 	int yy_n_chars;
461 
462 	/* Whether we "own" the buffer - i.e., we know we created it,
463 	 * and can realloc() it to grow it, and should free() it to
464 	 * delete it.
465 	 */
466 	int yy_is_our_buffer;
467 
468 	/* Whether this is an "interactive" input source; if so, and
469 	 * if we're using stdio for input, then we want to use getc()
470 	 * instead of fread(), to make sure we stop fetching input after
471 	 * each newline.
472 	 */
473 	int yy_is_interactive;
474 
475 	/* Whether we're considered to be at the beginning of a line.
476 	 * If so, '^' rules will be active on the next match, otherwise
477 	 * not.
478 	 */
479 	int yy_at_bol;
480 
481     int yy_bs_lineno; /**< The line count. */
482     int yy_bs_column; /**< The column count. */
483 
484 	/* Whether to try to fill the input buffer when we reach the
485 	 * end of it.
486 	 */
487 	int yy_fill_buffer;
488 
489 	int yy_buffer_status;
490 
491 #define YY_BUFFER_NEW 0
492 #define YY_BUFFER_NORMAL 1
493 	/* When an EOF's been seen but there's still some text to process
494 	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
495 	 * shouldn't try reading from the input source any more.  We might
496 	 * still have a bunch of tokens to match, though, because of
497 	 * possible backing-up.
498 	 *
499 	 * When we actually see the EOF, we change the status to "new"
500 	 * (via yyrestart()), so that the user can continue scanning by
501 	 * just pointing yyin at a new input file.
502 	 */
503 #define YY_BUFFER_EOF_PENDING 2
504 
505 	};
506 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
507 
508 /* Stack of input buffers. */
509 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
510 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
511 static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
512 
513 /* We provide macros for accessing buffer states in case in the
514  * future we want to put the buffer states in a more general
515  * "scanner state".
516  *
517  * Returns the top of the stack, or NULL.
518  */
519 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
520                           ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
521                           : NULL)
522 /* Same as previous macro, but useful when we know that the buffer stack is not
523  * NULL or when we need an lvalue. For internal use only.
524  */
525 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
526 
527 /* yy_hold_char holds the character lost when yytext is formed. */
528 static char yy_hold_char;
529 static int yy_n_chars;		/* number of characters read into yy_ch_buf */
530 int yyleng;
531 
532 /* Points to current character in buffer. */
533 static char *yy_c_buf_p = NULL;
534 static int yy_init = 0;		/* whether we need to initialize */
535 static int yy_start = 0;	/* start state number */
536 
537 /* Flag which is used to allow yywrap()'s to do buffer switches
538  * instead of setting up a fresh yyin.  A bit of a hack ...
539  */
540 static int yy_did_buffer_switch_on_eof;
541 
542 void yyrestart ( FILE *input_file  );
543 void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer  );
544 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size  );
545 void yy_delete_buffer ( YY_BUFFER_STATE b  );
546 void yy_flush_buffer ( YY_BUFFER_STATE b  );
547 void yypush_buffer_state ( YY_BUFFER_STATE new_buffer  );
548 void yypop_buffer_state ( void );
549 
550 static void yyensure_buffer_stack ( void );
551 static void yy_load_buffer_state ( void );
552 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file  );
553 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
554 
555 YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size  );
556 YY_BUFFER_STATE yy_scan_string ( const char *yy_str  );
557 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len  );
558 
559 void *yyalloc ( yy_size_t  );
560 void *yyrealloc ( void *, yy_size_t  );
561 void yyfree ( void *  );
562 
563 #define yy_new_buffer yy_create_buffer
564 #define yy_set_interactive(is_interactive) \
565 	{ \
566 	if ( ! YY_CURRENT_BUFFER ){ \
567         yyensure_buffer_stack (); \
568 		YY_CURRENT_BUFFER_LVALUE =    \
569             yy_create_buffer( yyin, YY_BUF_SIZE ); \
570 	} \
571 	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
572 	}
573 #define yy_set_bol(at_bol) \
574 	{ \
575 	if ( ! YY_CURRENT_BUFFER ){\
576         yyensure_buffer_stack (); \
577 		YY_CURRENT_BUFFER_LVALUE =    \
578             yy_create_buffer( yyin, YY_BUF_SIZE ); \
579 	} \
580 	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
581 	}
582 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
583 
584 /* Begin user sect3 */
585 typedef flex_uint8_t YY_CHAR;
586 
587 FILE *yyin = NULL, *yyout = NULL;
588 
589 typedef int yy_state_type;
590 
591 extern int yylineno;
592 int yylineno = 1;
593 
594 extern char *yytext;
595 #ifdef yytext_ptr
596 #undef yytext_ptr
597 #endif
598 #define yytext_ptr yytext
599 
600 static yy_state_type yy_get_previous_state ( void );
601 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state  );
602 static int yy_get_next_buffer ( void );
603 static void yynoreturn yy_fatal_error ( const char* msg  );
604 
605 /* Done after the current pattern has been matched and before the
606  * corresponding action - sets up yytext.
607  */
608 #define YY_DO_BEFORE_ACTION \
609 	(yytext_ptr) = yy_bp; \
610 	yyleng = (int) (yy_cp - yy_bp); \
611 	(yy_hold_char) = *yy_cp; \
612 	*yy_cp = '\0'; \
613 	(yy_c_buf_p) = yy_cp;
614 #define YY_NUM_RULES 88
615 #define YY_END_OF_BUFFER 89
616 /* This struct is not used in this scanner,
617    but its presence is necessary. */
618 struct yy_trans_info
619 	{
620 	flex_int32_t yy_verify;
621 	flex_int32_t yy_nxt;
622 	};
623 static const flex_int16_t yy_accept[501] =
624     {   0,
625         0,    0,    0,    0,    0,    0,   89,   87,   34,   35,
626        87,   87,   87,   87,   87,   85,   86,   83,   84,    0,
627        62,   65,    0,   66,   60,   61,   68,    0,    0,   67,
628        69,   63,   64,    0,   44,   47,    0,   48,   42,   43,
629        50,    0,    0,   49,   51,   45,   46,   38,   32,   37,
630        33,   36,   34,   40,   39,   41,   82,   81,   78,   80,
631        79,    2,    5,    7,    9,   14,   11,   13,   20,   18,
632         1,    0,    3,    4,    0,    6,    8,    0,   10,   12,
633        21,   15,   16,   17,    0,   74,    0,    0,   70,   71,
634        72,   66,    0,    0,    0,    0,    0,    0,    0,    0,
635 
636         0,    0,    0,   64,    0,   56,    0,    0,   52,   53,
637        54,   48,    0,    0,    0,    0,    0,    0,    0,    0,
638         0,    0,    0,   46,    0,    0,    0,    0,    0,   28,
639         0,    0,   22,   23,   24,   25,   26,    3,    0,    0,
640         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
641         0,    0,    0,    0,   17,   75,   76,   77,    0,    0,
642        73,    0,    0,    0,    0,    0,    0,    0,    0,    0,
643         0,    0,   57,   58,   59,    0,    0,   55,    0,    0,
644         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
645         0,    0,    0,   29,   30,   31,    0,    0,   27,    0,
646 
647         0,    0,    0,    0,    0,    0,    0,    0,    0,   11,
648         0,    0,    0,    0,    0,    0,    0,   60,    0,   61,
649         0,    0,    0,    0,    0,    0,    0,    0,    0,   42,
650         0,   43,    0,    0,    0,    0,    0,    0,    0,    0,
651        78,    0,    0,    0,    0,    0,    4,    0,    0,    6,
652         0,    0,    0,    0,    0,    0,    0,    0,    0,   19,
653         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
654         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
655         0,   80,    0,    0,    0,    0,    0,    2,    0,    0,
656         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
657 
658         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
659         0,    0,    0,    0,    0,    0,    0,    0,   81,    0,
660         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
661         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
662         0,    0,   63,    0,    0,    0,    0,    0,    0,    0,
663         0,    0,   45,    0,   79,    0,    0,    0,    0,    0,
664         0,    0,    0,    0,    0,    0,    0,   16,    0,    0,
665         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
666         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
667         0,    0,    0,    0,   68,    0,    0,    0,    0,    0,
668 
669         0,    0,   50,    0,    0,    0,    0,    0,    0,    0,
670         0,    0,    0,    8,    0,    0,    0,    0,    0,    0,
671         0,    0,    0,    0,    0,   67,   69,    0,    0,    0,
672         0,    0,    0,    0,   49,   51,    0,    0,    0,    0,
673         0,    0,    0,    0,    0,    0,   10,   12,   20,   15,
674         0,    0,   72,    0,    0,    0,   54,    0,    0,    0,
675         0,    0,    0,   26,    0,    0,    0,    0,    0,    0,
676         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
677         0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
678         0,    0,    0,    0,    0,    0,    0,    0,   21,    0
679 
680     } ;
681 
682 static const YY_CHAR yy_ec[256] =
683     {   0,
684         1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
685         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
686         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
687         1,    1,    4,    1,    1,    1,    5,    1,    1,    1,
688         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
689         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
690         1,    1,    6,    1,    7,    8,    1,    9,    1,   10,
691         1,    1,   11,    1,    1,   12,   13,   14,    1,    1,
692        15,    1,    1,   16,    1,    1,    1,   17,    1,    1,
693         1,   18,    1,    1,   19,    1,   20,   21,   22,   23,
694 
695        24,   25,   26,   27,   28,   29,   30,   31,   32,   33,
696        34,   35,   36,   37,   38,   39,   40,    1,   41,    1,
697         1,    1,   42,   43,   44,    1,    1,    1,    1,    1,
698         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
699         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
700         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
701         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
702         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
703         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
704         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
705 
706         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
707         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
708         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
709         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
710         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
711         1,    1,    1,    1,    1
712     } ;
713 
714 static const YY_CHAR yy_meta[45] =
715     {   0,
716         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
717         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
718         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
719         1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
720         1,    1,    1,    1
721     } ;
722 
723 static const flex_int16_t yy_base[502] =
724     {   0,
725         0,    5,   47,    0,    0,   12,  563,  564,  564,  564,
726        85,  118,  154,    5,  192,  564,  564,  564,  564,  554,
727       564,  564,   39,  539,    0,    1,  527,  539,  534,  533,
728       532,  515,  520,  545,  564,  564,   44,  530,    4,   31,
729       518,  530,  525,  524,  523,  506,  511,  564,  564,  564,
730       564,  564,  564,  564,  564,  564,  564,  505,  515,  509,
731       504,  532,  564,  564,  564,  564,  564,  564,  564,  564,
732       564,  216,    5,    6,  507,   35,  505,  517,   46,  512,
733       495,  510,  493,    1,   54,  564,  510,  508,  564,  564,
734       495,  564,  490,  506,  490,  492,  494,  496,  485,  484,
735 
736       480,  495,  498,  564,   61,  564,  496,  494,  564,  564,
737       481,  564,  476,  492,  476,  478,  480,  482,  471,  470,
738       466,  481,  484,  564,  465,  472,  467,  467,   63,  564,
739       478,  476,  564,  564,  564,  564,  463,  564,  460,  457,
740       473,  474,  456,  458,  460,  462,  451,  450,  461,  445,
741       451,  459,  462,  456,  564,  564,  564,  564,  447,  443,
742       564,  455,  439,  439,  444,  444,  435,  434,  434,  433,
743       446,  440,  564,  564,  564,  434,  430,  564,  442,  426,
744       426,  431,  431,  422,  421,  421,  420,  433,  427,  435,
745       430,  413,  426,  564,  564,  564,  417,  413,  564,  411,
746 
747       424,  408,  418,  407,  412,  412,  403,  402,  402,  420,
748       400,  398,  412,  406,  396,  393,  411,  564,  392,  564,
749       397,  401,  395,  407,  400,  388,  400,  383,  401,  564,
750       382,  564,  387,  391,  385,  397,  390,  378,  390,  391,
751       564,  373,  374,  370,  388,  374,  388,  375,  366,  564,
752       371,  375,  369,  381,  367,  373,  374,  360,  372,  564,
753       362,  360,  360,  372,  371,  370,  363,  351,  363,  364,
754       352,  350,  350,  362,  361,  360,  353,  341,  353,  354,
755       348,  564,  354,  340,  338,  334,  345,  564,  336,  348,
756       347,  346,  339,  330,  326,  339,  337,  338,  320,  324,
757 
758       337,  324,  324,  322,  329,  318,  318,  311,  310,  314,
759       327,  314,  314,  312,  319,  308,  308,  301,  320,  306,
760       298,  302,  303,  314,  301,  301,  299,  306,  310,  294,
761       308,  293,  286,  305,  293,  290,  297,  282,  295,  290,
762       277,  294,  564,  296,  284,  281,  288,  273,  286,  281,
763       268,  285,  564,  271,  564,  286,  274,  264,  270,  277,
764       262,  275,  270,  259,  256,  263,  272,  564,   81,  274,
765       268,  268,  255,  265,  110,  269,  263,  263,  250,  260,
766       246,  129,  263,  257,  257,  251,  243,  239,  252,  247,
767       234,  236,  244,   87,  564,  233,  232,  241,  228,  230,
768 
769       238,  139,  564,  227,  226,  229,  234,  229,  220,  239,
770       221,  229,  143,  564,  230,  217,  227,  214,  229,  216,
771       220,  219,  222,  206,  208,  564,  564,  218,  206,  210,
772       209,  212,  196,  193,  564,  564,  200,  200,  201,  188,
773       186,  187,  185,  188,  163,  161,  564,  564,  175,  564,
774       153,  160,  155,  155,  149,  155,  150,  150,  146,  142,
775       152,  148,  153,  141,  141,  141,  140,  151,  138,  136,
776       146,  115,  125,  111,  106,  117,  104,   97,  107,   82,
777       100,   75,   79,   83,   59,   75,   55,   54,   48,   47,
778        26,   30,    9,   22,   15,   13,    8,    5,  564,  564,
779 
780         0
781     } ;
782 
783 static const flex_int16_t yy_def[502] =
784     {   0,
785       501,  501,  501,    3,    3,    3,  500,  500,  500,  500,
786       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
787       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
788       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
789       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
790       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
791       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
792       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
793       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
794       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
795 
796       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
797       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
798       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
799       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
800       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
801       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
802       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
803       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
804       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
805       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
806 
807       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
808       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
809       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
810       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
811       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
812       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
813       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
814       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
815       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
816       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
817 
818       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
819       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
820       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
821       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
822       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
823       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
824       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
825       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
826       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
827       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
828 
829       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
830       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
831       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
832       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
833       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
834       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
835       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
836       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
837       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
838       500,  500,  500,  500,  500,  500,  500,  500,  500,    0,
839 
840       500
841     } ;
842 
843 static const flex_int16_t yy_nxt[609] =
844     {   0,
845         8,    9,   10,   11,    8,   12,    9,   10,   11,  500,
846        12,   57,  500,  500,  500,  500,    8,   13,  500,   93,
847       154,  500,   13,  113,   58,  140,  138,   94,   95,   59,
848       499,  114,   60,  141,  155,  498,  133,   96,  109,   61,
849        97,   18,   14,   19,  139,   89,  497,   14,    9,   10,
850        11,   15,   12,   18,   86,   19,  199,  496,  115,  106,
851        87,   88,  143,   89,   13,  107,  108,  116,  109,  148,
852       117,  144,   90,  178,  145,  156,   91,  110,  157,  495,
853       161,  111,  173,  149,  194,  174,  494,  195,   16,   14,
854        17,   20,  158,  493,   21,   21,   21,  492,   21,  175,
855 
856        22,  196,  491,  390,   23,  391,   24,   25,  423,   26,
857        57,  424,   27,  490,  392,   28,   29,   30,  393,  489,
858       488,   31,   32,   33,   34,  425,  487,   35,   35,   35,
859       486,   35,  398,   36,  399,  195,  485,   37,  484,   38,
860        39,  134,   40,  400,  483,   41,  174,  401,   42,   43,
861        44,  407,  408,  409,   45,   46,   47,   48,   49,   50,
862       432,  410,  411,  433,  444,  482,  412,  445,  481,  157,
863       480,   51,  479,  478,  477,  476,  135,  434,  475,  474,
864       130,  446,  473,  472,  471,  470,   52,  106,  469,  468,
865       467,   86,   53,  466,  196,   54,   55,   56,   62,  465,
866 
867        63,   64,   65,   66,   67,   68,   69,   70,   71,  194,
868       464,   72,  136,   73,   74,   75,   76,  463,  462,   77,
869       461,  460,   78,   79,   80,  459,  175,   81,   82,   83,
870        84,  130,  458,  173,  457,  110,  456,  131,  132,  455,
871       133,  158,  454,  156,  453,   90,  452,  134,  135,  136,
872       451,  450,  449,  137,  448,  447,  443,  442,  441,  440,
873       439,  438,  437,  436,  435,  431,  430,  429,  428,  427,
874       426,  422,  421,  420,  419,  418,  417,  416,  415,  414,
875        64,  413,  406,  405,  404,  403,   35,  402,  397,  396,
876       395,   21,  394,  389,  388,  387,  386,  385,   66,   65,
877 
878        68,  384,   63,  383,  382,  381,  380,  379,  378,   35,
879        35,   35,  377,  376,  375,  374,  373,  372,   21,   21,
880        21,  371,  370,  369,  368,  367,  366,  365,  364,  363,
881       362,  361,  360,  359,  358,  357,  356,  355,  354,  353,
882       352,  351,  350,  349,  348,  347,  346,  345,  344,  343,
883       342,  341,  340,  339,  338,  337,  336,  335,  334,  333,
884       332,  331,  330,  329,  328,  327,  326,  325,  324,  323,
885        71,  322,  321,  320,  319,  318,  317,  316,  315,  314,
886       313,  312,  311,  310,  309,  308,  307,  306,  305,  304,
887       303,  302,  301,  300,  299,  298,  297,  296,  295,  294,
888 
889       293,  292,  291,  290,  289,  288,  287,  286,  285,  284,
890       283,  282,  281,  280,  279,  278,  277,  276,  275,  274,
891       273,  272,  271,  270,  269,  268,  267,  266,  265,  264,
892       263,  262,  261,  260,  259,  258,  257,  256,  255,  254,
893       253,  252,  251,  250,  249,  248,   70,  247,  246,  245,
894       244,  243,  242,  241,  240,  239,  238,  237,  236,  235,
895       234,  233,  232,  231,   36,  230,  229,  228,  227,  226,
896       225,  224,  223,  222,  221,  220,  219,   22,  218,  217,
897       216,  215,  214,  213,  212,  211,  210,  209,  208,  207,
898       206,  205,  204,  203,  202,  201,  200,  199,  198,  197,
899 
900       193,  192,  191,  190,  189,  188,  187,  186,  185,  184,
901       183,  182,  181,  180,  179,  178,  177,  176,  172,  171,
902       170,  169,  168,  167,  166,  165,  164,  163,  162,  161,
903       160,  159,  153,  152,  151,  150,  147,  146,  142,  129,
904       128,  127,  126,  125,  124,  123,  122,  121,  120,  119,
905       118,  112,  105,  104,  103,  102,  101,  100,   99,   98,
906        92,   85,  500,    7,  500,  500,  500,  500,  500,  500,
907       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
908       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
909       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
910 
911       500,  500,  500,  500,  500,  500,  500,  500
912     } ;
913 
914 static const flex_int16_t yy_chk[609] =
915     {   0,
916       501,    1,    1,    1,    5,    1,    2,    2,    2,    0,
917         2,   14,    0,    0,    0,    0,    6,    1,    0,   25,
918        84,    0,    2,   39,   14,   74,   73,   25,   26,   14,
919       498,   39,   14,   74,   84,  497,  496,   26,  495,   14,
920        26,    5,    1,    5,   73,  494,  493,    2,    3,    3,
921         3,    3,    3,    6,   23,    6,  492,  491,   40,   37,
922        23,   23,   76,   23,    3,   37,   37,   40,   37,   79,
923        40,   76,   23,  490,   76,   85,   23,   37,   85,  489,
924       488,   37,  105,   79,  129,  105,  487,  129,    3,    3,
925         3,   11,   85,  486,   11,   11,   11,  485,   11,  105,
926 
927        11,  129,  484,  369,   11,  369,   11,   11,  394,   11,
928       483,  394,   11,  482,  369,   11,   11,   11,  369,  481,
929       480,   11,   11,   11,   12,  394,  479,   12,   12,   12,
930       478,   12,  375,   12,  375,  477,  476,   12,  475,   12,
931        12,  474,   12,  375,  473,   12,  472,  375,   12,   12,
932        12,  382,  382,  382,   12,   12,   12,   13,   13,   13,
933       402,  382,  382,  402,  413,  471,  382,  413,  470,  469,
934       468,   13,  467,  466,  465,  464,  463,  402,  462,  461,
935       460,  413,  459,  458,  457,  456,   13,  455,  454,  453,
936       452,  451,   13,  449,  446,   13,   13,   13,   15,  445,
937 
938        15,   15,   15,   15,   15,   15,   15,   15,   15,  444,
939       443,   15,  442,   15,   15,   15,   15,  441,  440,   15,
940       439,  438,   15,   15,   15,  437,  434,   15,   15,   15,
941        15,   72,  433,  432,  431,  430,  429,   72,   72,  428,
942        72,  425,  424,  423,  422,  421,  420,   72,   72,   72,
943       419,  418,  417,   72,  416,  415,  412,  411,  410,  409,
944       408,  407,  406,  405,  404,  401,  400,  399,  398,  397,
945       396,  393,  392,  391,  390,  389,  388,  387,  386,  385,
946       384,  383,  381,  380,  379,  378,  377,  376,  374,  373,
947       372,  371,  370,  367,  366,  365,  364,  363,  362,  361,
948 
949       360,  359,  358,  357,  356,  354,  352,  351,  350,  349,
950       348,  347,  346,  345,  344,  342,  341,  340,  339,  338,
951       337,  336,  335,  334,  333,  332,  331,  330,  329,  328,
952       327,  326,  325,  324,  323,  322,  321,  320,  319,  318,
953       317,  316,  315,  314,  313,  312,  311,  310,  309,  308,
954       307,  306,  305,  304,  303,  302,  301,  300,  299,  298,
955       297,  296,  295,  294,  293,  292,  291,  290,  289,  287,
956       286,  285,  284,  283,  281,  280,  279,  278,  277,  276,
957       275,  274,  273,  272,  271,  270,  269,  268,  267,  266,
958       265,  264,  263,  262,  261,  259,  258,  257,  256,  255,
959 
960       254,  253,  252,  251,  249,  248,  247,  246,  245,  244,
961       243,  242,  240,  239,  238,  237,  236,  235,  234,  233,
962       231,  229,  228,  227,  226,  225,  224,  223,  222,  221,
963       219,  217,  216,  215,  214,  213,  212,  211,  210,  209,
964       208,  207,  206,  205,  204,  203,  202,  201,  200,  198,
965       197,  193,  192,  191,  190,  189,  188,  187,  186,  185,
966       184,  183,  182,  181,  180,  179,  177,  176,  172,  171,
967       170,  169,  168,  167,  166,  165,  164,  163,  162,  160,
968       159,  154,  153,  152,  151,  150,  149,  148,  147,  146,
969       145,  144,  143,  142,  141,  140,  139,  137,  132,  131,
970 
971       128,  127,  126,  125,  123,  122,  121,  120,  119,  118,
972       117,  116,  115,  114,  113,  111,  108,  107,  103,  102,
973       101,  100,   99,   98,   97,   96,   95,   94,   93,   91,
974        88,   87,   83,   82,   81,   80,   78,   77,   75,   62,
975        61,   60,   59,   58,   47,   46,   45,   44,   43,   42,
976        41,   38,   34,   33,   32,   31,   30,   29,   28,   27,
977        24,   20,    7,  500,  500,  500,  500,  500,  500,  500,
978       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
979       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
980       500,  500,  500,  500,  500,  500,  500,  500,  500,  500,
981 
982       500,  500,  500,  500,  500,  500,  500,  500
983     } ;
984 
985 static yy_state_type yy_last_accepting_state;
986 static char *yy_last_accepting_cpos;
987 
988 extern int yy_flex_debug;
989 int yy_flex_debug = 0;
990 
991 /* The intent behind this definition is that it'll catch
992  * any uses of REJECT which flex missed.
993  */
994 #define REJECT reject_used_but_not_detected
995 #define yymore() yymore_used_but_not_detected
996 #define YY_MORE_ADJ 0
997 #define YY_RESTORE_YY_MORE_OFFSET
998 char *yytext;
999 #line 1 "quote_fmt_lex.l"
1000 #line 4 "quote_fmt_lex.l"
1001 /*
1002  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
1003  * Copyright (c) 1999-2007 by Hiroyuki Yamamoto & The Claws Mail Team
1004  *
1005  * This program is free software; you can redistribute it and/or modify
1006  * it under the terms of the GNU General Public License as published by
1007  * the Free Software Foundation; either version 3 of the License, or
1008  * (at your option) any later version.
1009  *
1010  * This program is distributed in the hope that it will be useful,
1011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
1012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1013  * GNU General Public License for more details.
1014  *
1015  * You should have received a copy of the GNU General Public License
1016  * along with this program. If not, see <http://www.gnu.org/licenses/>.
1017  *
1018  */
1019 
1020 #include "quote_fmt_lex.h"
1021 #include "quote_fmt_parse.h"
1022 
1023 #line 1023 "quote_fmt_lex.c"
1024 
1025 #line 34 "quote_fmt_lex.l"
1026 /*
1027  * see notes below.
1028  */
1029 int quote_fmt_firsttime = 1;
1030 int line = -1;
1031 int escaped_string = 0;
1032 #line 1032 "quote_fmt_lex.c"
1033 #line 1033 "quote_fmt_lex.c"
1034 
1035 #define INITIAL 0
1036 #define S_NORMAL 1
1037 #define S_DATE 2
1038 
1039 #ifndef YY_NO_UNISTD_H
1040 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1041  * down here because we want the user's section 1 to have been scanned first.
1042  * The user has a chance to override it with an option.
1043  */
1044 #include <unistd.h>
1045 #endif
1046 
1047 #ifndef YY_EXTRA_TYPE
1048 #define YY_EXTRA_TYPE void *
1049 #endif
1050 
1051 static int yy_init_globals ( void );
1052 
1053 /* Accessor methods to globals.
1054    These are made visible to non-reentrant scanners for convenience. */
1055 
1056 int yylex_destroy ( void );
1057 
1058 int yyget_debug ( void );
1059 
1060 void yyset_debug ( int debug_flag  );
1061 
1062 YY_EXTRA_TYPE yyget_extra ( void );
1063 
1064 void yyset_extra ( YY_EXTRA_TYPE user_defined  );
1065 
1066 FILE *yyget_in ( void );
1067 
1068 void yyset_in  ( FILE * _in_str  );
1069 
1070 FILE *yyget_out ( void );
1071 
1072 void yyset_out  ( FILE * _out_str  );
1073 
1074 			int yyget_leng ( void );
1075 
1076 char *yyget_text ( void );
1077 
1078 int yyget_lineno ( void );
1079 
1080 void yyset_lineno ( int _line_number  );
1081 
1082 /* Macros after this point can all be overridden by user definitions in
1083  * section 1.
1084  */
1085 
1086 #ifndef YY_SKIP_YYWRAP
1087 #ifdef __cplusplus
1088 extern "C" int yywrap ( void );
1089 #else
1090 extern int yywrap ( void );
1091 #endif
1092 #endif
1093 
1094 #ifndef YY_NO_UNPUT
1095 
1096 #endif
1097 
1098 #ifndef yytext_ptr
1099 static void yy_flex_strncpy ( char *, const char *, int );
1100 #endif
1101 
1102 #ifdef YY_NEED_STRLEN
1103 static int yy_flex_strlen ( const char * );
1104 #endif
1105 
1106 #ifndef YY_NO_INPUT
1107 #ifdef __cplusplus
1108 static int yyinput ( void );
1109 #else
1110 static int input ( void );
1111 #endif
1112 
1113 #endif
1114 
1115 /* Amount of stuff to slurp up with each read. */
1116 #ifndef YY_READ_BUF_SIZE
1117 #ifdef __ia64__
1118 /* On IA-64, the buffer size is 16k, not 8k */
1119 #define YY_READ_BUF_SIZE 16384
1120 #else
1121 #define YY_READ_BUF_SIZE 8192
1122 #endif /* __ia64__ */
1123 #endif
1124 
1125 /* Copy whatever the last rule matched to the standard output. */
1126 #ifndef ECHO
1127 /* This used to be an fputs(), but since the string might contain NUL's,
1128  * we now use fwrite().
1129  */
1130 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
1131 #endif
1132 
1133 /* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
1134  * is returned in "result".
1135  */
1136 #ifndef YY_INPUT
1137 #define YY_INPUT(buf,result,max_size) \
1138 	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1139 		{ \
1140 		int c = '*'; \
1141 		int n; \
1142 		for ( n = 0; n < max_size && \
1143 			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1144 			buf[n] = (char) c; \
1145 		if ( c == '\n' ) \
1146 			buf[n++] = (char) c; \
1147 		if ( c == EOF && ferror( yyin ) ) \
1148 			YY_FATAL_ERROR( "input in flex scanner failed" ); \
1149 		result = n; \
1150 		} \
1151 	else \
1152 		{ \
1153 		errno=0; \
1154 		while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
1155 			{ \
1156 			if( errno != EINTR) \
1157 				{ \
1158 				YY_FATAL_ERROR( "input in flex scanner failed" ); \
1159 				break; \
1160 				} \
1161 			errno=0; \
1162 			clearerr(yyin); \
1163 			} \
1164 		}\
1165 \
1166 
1167 #endif
1168 
1169 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1170  * we don't want an extra ';' after the "return" because that will cause
1171  * some compilers to complain about unreachable statements.
1172  */
1173 #ifndef yyterminate
1174 #define yyterminate() return YY_NULL
1175 #endif
1176 
1177 /* Number of entries by which start-condition stack grows. */
1178 #ifndef YY_START_STACK_INCR
1179 #define YY_START_STACK_INCR 25
1180 #endif
1181 
1182 /* Report a fatal error. */
1183 #ifndef YY_FATAL_ERROR
1184 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1185 #endif
1186 
1187 /* end tables serialization structures and prototypes */
1188 
1189 /* Default declaration of generated scanner - a define so the user can
1190  * easily add parameters.
1191  */
1192 #ifndef YY_DECL
1193 #define YY_DECL_IS_OURS 1
1194 
1195 extern int yylex (void);
1196 
1197 #define YY_DECL int yylex (void)
1198 #endif /* !YY_DECL */
1199 
1200 /* Code executed at the beginning of each rule, after yytext and yyleng
1201  * have been set up.
1202  */
1203 #ifndef YY_USER_ACTION
1204 #define YY_USER_ACTION
1205 #endif
1206 
1207 /* Code executed at the end of each rule. */
1208 #ifndef YY_BREAK
1209 #define YY_BREAK /*LINTED*/break;
1210 #endif
1211 
1212 #define YY_RULE_SETUP \
1213 	YY_USER_ACTION
1214 
1215 /** The main scanner function which does all the work.
1216  */
1217 YY_DECL
1218 {
1219 	yy_state_type yy_current_state;
1220 	char *yy_cp, *yy_bp;
1221 	int yy_act;
1222 
1223 	if ( !(yy_init) )
1224 		{
1225 		(yy_init) = 1;
1226 
1227 #ifdef YY_USER_INIT
1228 		YY_USER_INIT;
1229 #endif
1230 
1231 		if ( ! (yy_start) )
1232 			(yy_start) = 1;	/* first start state */
1233 
1234 		if ( ! yyin )
1235 			yyin = stdin;
1236 
1237 		if ( ! yyout )
1238 			yyout = stdout;
1239 
1240 		if ( ! YY_CURRENT_BUFFER ) {
1241 			yyensure_buffer_stack ();
1242 			YY_CURRENT_BUFFER_LVALUE =
1243 				yy_create_buffer( yyin, YY_BUF_SIZE );
1244 		}
1245 
1246 		yy_load_buffer_state(  );
1247 		}
1248 
1249 	{
1250 #line 42 "quote_fmt_lex.l"
1251 
1252 
1253 
1254 #line 46 "quote_fmt_lex.l"
1255 /*
1256  * NOTES:
1257  * this lex script used to use characters also in use
1258  * by strftime() (which we want to use for custom
1259  * time formats in replies and templates). to circumvent
1260  * this we have to play a little bit with states.
1261  *
1262  * these are the characters we also want to use in the
1263  * %D time customizer:
1264  *
1265  * %a %A %b %B %c %C %d %H %I %j %m %M %p %S %w %x %y %Y %Z
1266  *
1267  * you can use these characters too, but don't forget to
1268  * prepend them with the <S_NORMAL> state.
1269  *
1270  * also there is also work around for resetting the state
1271  * (firsttime variable). this assumes that yylex() will
1272  * always return to S_NORMAL after quote fmt parsing is
1273  * done.
1274  */
1275 
1276 
1277 
1278 	if (quote_fmt_firsttime) {
1279 		BEGIN S_NORMAL;
1280 		quote_fmt_firsttime = 0;
1281 	}
1282 
1283 
1284 #line 1284 "quote_fmt_lex.c"
1285 
1286 	while ( /*CONSTCOND*/1 )		/* loops until end-of-file is reached */
1287 		{
1288 		yy_cp = (yy_c_buf_p);
1289 
1290 		/* Support of yytext. */
1291 		*yy_cp = (yy_hold_char);
1292 
1293 		/* yy_bp points to the position in yy_ch_buf of the start of
1294 		 * the current run.
1295 		 */
1296 		yy_bp = yy_cp;
1297 
1298 		yy_current_state = (yy_start);
1299 yy_match:
1300 		do
1301 			{
1302 			YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1303 			if ( yy_accept[yy_current_state] )
1304 				{
1305 				(yy_last_accepting_state) = yy_current_state;
1306 				(yy_last_accepting_cpos) = yy_cp;
1307 				}
1308 			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1309 				{
1310 				yy_current_state = (int) yy_def[yy_current_state];
1311 				if ( yy_current_state >= 501 )
1312 					yy_c = yy_meta[yy_c];
1313 				}
1314 			yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1315 			++yy_cp;
1316 			}
1317 		while ( yy_current_state != 500 );
1318 		yy_cp = (yy_last_accepting_cpos);
1319 		yy_current_state = (yy_last_accepting_state);
1320 
1321 yy_find_action:
1322 		yy_act = yy_accept[yy_current_state];
1323 
1324 		YY_DO_BEFORE_ACTION;
1325 
1326 do_action:	/* This label is used only to access EOF actions. */
1327 
1328 		switch ( yy_act )
1329 	{ /* beginning of action switch */
1330 			case 0: /* must back up */
1331 			/* undo the effects of YY_DO_BEFORE_ACTION */
1332 			*yy_cp = (yy_hold_char);
1333 			yy_cp = (yy_last_accepting_cpos);
1334 			yy_current_state = (yy_last_accepting_state);
1335 			goto yy_find_action;
1336 
1337 case 1:
1338 YY_RULE_SETUP
1339 #line 75 "quote_fmt_lex.l"
1340 /* cursor pos */ return SET_CURSOR_POS;
1341 	YY_BREAK
1342 case 2:
1343 YY_RULE_SETUP
1344 #line 76 "quote_fmt_lex.l"
1345 /* email address */ return SHOW_MAIL_ADDRESS;
1346 	YY_BREAK
1347 case 3:
1348 YY_RULE_SETUP
1349 #line 77 "quote_fmt_lex.l"
1350 /* cc */ return SHOW_CC;
1351 	YY_BREAK
1352 case 4:
1353 YY_RULE_SETUP
1354 #line 78 "quote_fmt_lex.l"
1355 /* date */ return SHOW_DATE;
1356 	YY_BREAK
1357 case 5:
1358 YY_RULE_SETUP
1359 #line 79 "quote_fmt_lex.l"
1360 /* date */ { BEGIN S_DATE; return SHOW_DATE_EXPR; }
1361 	YY_BREAK
1362 case 6:
1363 YY_RULE_SETUP
1364 #line 80 "quote_fmt_lex.l"
1365 /* from */ return SHOW_FROM;
1366 	YY_BREAK
1367 case 7:
1368 YY_RULE_SETUP
1369 #line 81 "quote_fmt_lex.l"
1370 /* first name */ return SHOW_FIRST_NAME;
1371 	YY_BREAK
1372 case 8:
1373 YY_RULE_SETUP
1374 #line 82 "quote_fmt_lex.l"
1375 /* message-id */ return SHOW_MESSAGEID;
1376 	YY_BREAK
1377 case 9:
1378 YY_RULE_SETUP
1379 #line 83 "quote_fmt_lex.l"
1380 /* initial of sender */ return SHOW_SENDER_INITIAL;
1381 	YY_BREAK
1382 case 10:
1383 YY_RULE_SETUP
1384 #line 84 "quote_fmt_lex.l"
1385 /* message with no signature */ return SHOW_MESSAGE_NO_SIGNATURE;
1386 	YY_BREAK
1387 case 11:
1388 YY_RULE_SETUP
1389 #line 85 "quote_fmt_lex.l"
1390 /* message */ return SHOW_MESSAGE;
1391 	YY_BREAK
1392 case 12:
1393 YY_RULE_SETUP
1394 #line 86 "quote_fmt_lex.l"
1395 /* newsgroups */ return SHOW_NEWSGROUPS;
1396 	YY_BREAK
1397 case 13:
1398 YY_RULE_SETUP
1399 #line 87 "quote_fmt_lex.l"
1400 /* full name */ return SHOW_FULLNAME;
1401 	YY_BREAK
1402 case 14:
1403 YY_RULE_SETUP
1404 #line 88 "quote_fmt_lex.l"
1405 /* last name */ return SHOW_LAST_NAME;
1406 	YY_BREAK
1407 case 15:
1408 YY_RULE_SETUP
1409 #line 89 "quote_fmt_lex.l"
1410 /* references */ return SHOW_REFERENCES;
1411 	YY_BREAK
1412 case 16:
1413 YY_RULE_SETUP
1414 #line 90 "quote_fmt_lex.l"
1415 /* subject */ return SHOW_SUBJECT;
1416 	YY_BREAK
1417 case 17:
1418 YY_RULE_SETUP
1419 #line 91 "quote_fmt_lex.l"
1420 /* to */ return SHOW_TO;
1421 	YY_BREAK
1422 case 18:
1423 YY_RULE_SETUP
1424 #line 92 "quote_fmt_lex.l"
1425 /* current dictionary */ return SHOW_DICT;
1426 	YY_BREAK
1427 case 19:
1428 YY_RULE_SETUP
1429 #line 93 "quote_fmt_lex.l"
1430 /* tags */ return SHOW_TAGS;
1431 	YY_BREAK
1432 case 20:
1433 YY_RULE_SETUP
1434 #line 94 "quote_fmt_lex.l"
1435 /* quoted message */ return SHOW_QUOTED_MESSAGE;
1436 	YY_BREAK
1437 case 21:
1438 YY_RULE_SETUP
1439 #line 95 "quote_fmt_lex.l"
1440 /* quoted message with no signature */ return SHOW_QUOTED_MESSAGE_NO_SIGNATURE;
1441 	YY_BREAK
1442 case 22:
1443 YY_RULE_SETUP
1444 #line 96 "quote_fmt_lex.l"
1445 /* full name in compose account */ return SHOW_ACCOUNT_FULL_NAME;
1446 	YY_BREAK
1447 case 23:
1448 YY_RULE_SETUP
1449 #line 97 "quote_fmt_lex.l"
1450 /* mail address in compose account */ return SHOW_ACCOUNT_MAIL_ADDRESS;
1451 	YY_BREAK
1452 case 24:
1453 YY_RULE_SETUP
1454 #line 98 "quote_fmt_lex.l"
1455 /* compose account name itself */ return SHOW_ACCOUNT_NAME;
1456 	YY_BREAK
1457 case 25:
1458 YY_RULE_SETUP
1459 #line 99 "quote_fmt_lex.l"
1460 /* organization in compose account */ return SHOW_ACCOUNT_ORGANIZATION;
1461 	YY_BREAK
1462 case 26:
1463 YY_RULE_SETUP
1464 #line 100 "quote_fmt_lex.l"
1465 /* signature in compose account */ return SHOW_ACCOUNT_SIG;
1466 	YY_BREAK
1467 case 27:
1468 YY_RULE_SETUP
1469 #line 101 "quote_fmt_lex.l"
1470 /* signature path in compose account */ return SHOW_ACCOUNT_SIGPATH;
1471 	YY_BREAK
1472 case 28:
1473 YY_RULE_SETUP
1474 #line 102 "quote_fmt_lex.l"
1475 /* main dict (if enabled) in compose account */ return SHOW_ACCOUNT_DICT;
1476 	YY_BREAK
1477 case 29:
1478 YY_RULE_SETUP
1479 #line 103 "quote_fmt_lex.l"
1480 /* completion of 'Cc' from the address book */ return SHOW_ADDRESSBOOK_COMPLETION_FOR_CC;
1481 	YY_BREAK
1482 case 30:
1483 YY_RULE_SETUP
1484 #line 104 "quote_fmt_lex.l"
1485 /* completion of 'From' from the address book */ return SHOW_ADDRESSBOOK_COMPLETION_FOR_FROM;
1486 	YY_BREAK
1487 case 31:
1488 YY_RULE_SETUP
1489 #line 105 "quote_fmt_lex.l"
1490 /* completion of 'To' from the address book */ return SHOW_ADDRESSBOOK_COMPLETION_FOR_TO;
1491 	YY_BREAK
1492 case 32:
1493 YY_RULE_SETUP
1494 #line 106 "quote_fmt_lex.l"
1495 /* % */ return SHOW_PERCENT;
1496 	YY_BREAK
1497 case 33:
1498 YY_RULE_SETUP
1499 #line 107 "quote_fmt_lex.l"
1500 /* \ */ return SHOW_BACKSLASH;
1501 	YY_BREAK
1502 case 34:
1503 YY_RULE_SETUP
1504 #line 108 "quote_fmt_lex.l"
1505 /* tab */ return SHOW_TAB;
1506 	YY_BREAK
1507 case 35:
1508 /* rule 35 can match eol */
1509 YY_RULE_SETUP
1510 #line 109 "quote_fmt_lex.l"
1511 /* return */ { line++; return SHOW_EOL; }
1512 	YY_BREAK
1513 case 36:
1514 YY_RULE_SETUP
1515 #line 110 "quote_fmt_lex.l"
1516 /* escaped return */ { if (escaped_string) line++; return SHOW_EOL; }
1517 	YY_BREAK
1518 case 37:
1519 YY_RULE_SETUP
1520 #line 111 "quote_fmt_lex.l"
1521 /* ? */ return SHOW_QUESTION_MARK;
1522 	YY_BREAK
1523 case 38:
1524 YY_RULE_SETUP
1525 #line 112 "quote_fmt_lex.l"
1526 return SHOW_EXCLAMATION_MARK;
1527 	YY_BREAK
1528 case 39:
1529 YY_RULE_SETUP
1530 #line 113 "quote_fmt_lex.l"
1531 return SHOW_PIPE;
1532 	YY_BREAK
1533 case 40:
1534 YY_RULE_SETUP
1535 #line 114 "quote_fmt_lex.l"
1536 return SHOW_OPARENT;
1537 	YY_BREAK
1538 case 41:
1539 YY_RULE_SETUP
1540 #line 115 "quote_fmt_lex.l"
1541 return SHOW_CPARENT;
1542 	YY_BREAK
1543 case 42:
1544 YY_RULE_SETUP
1545 #line 116 "quote_fmt_lex.l"
1546 /* query date */ return QUERY_DATE;
1547 	YY_BREAK
1548 case 43:
1549 YY_RULE_SETUP
1550 #line 117 "quote_fmt_lex.l"
1551 /* query from */ return QUERY_FROM;
1552 	YY_BREAK
1553 case 44:
1554 YY_RULE_SETUP
1555 #line 118 "quote_fmt_lex.l"
1556 /* query from name */ return QUERY_FULLNAME;
1557 	YY_BREAK
1558 case 45:
1559 YY_RULE_SETUP
1560 #line 119 "quote_fmt_lex.l"
1561 /* query subject */ return QUERY_SUBJECT;
1562 	YY_BREAK
1563 case 46:
1564 YY_RULE_SETUP
1565 #line 120 "quote_fmt_lex.l"
1566 /* query to */ return QUERY_TO;
1567 	YY_BREAK
1568 case 47:
1569 YY_RULE_SETUP
1570 #line 121 "quote_fmt_lex.l"
1571 /* query current dictionary set and enabled */ return QUERY_DICT;
1572 	YY_BREAK
1573 case 48:
1574 YY_RULE_SETUP
1575 #line 122 "quote_fmt_lex.l"
1576 /* query cc */ return QUERY_CC;
1577 	YY_BREAK
1578 case 49:
1579 YY_RULE_SETUP
1580 #line 123 "quote_fmt_lex.l"
1581 /* query newsgroups */ return QUERY_NEWSGROUPS;
1582 	YY_BREAK
1583 case 50:
1584 YY_RULE_SETUP
1585 #line 124 "quote_fmt_lex.l"
1586 /* query message-id */ return QUERY_MESSAGEID;
1587 	YY_BREAK
1588 case 51:
1589 YY_RULE_SETUP
1590 #line 125 "quote_fmt_lex.l"
1591 /* query references */ return QUERY_REFERENCES;
1592 	YY_BREAK
1593 case 52:
1594 YY_RULE_SETUP
1595 #line 126 "quote_fmt_lex.l"
1596 /* query full name in compose account */ return QUERY_ACCOUNT_FULL_NAME;
1597 	YY_BREAK
1598 case 53:
1599 YY_RULE_SETUP
1600 #line 127 "quote_fmt_lex.l"
1601 /* query organization in compose account */ return QUERY_ACCOUNT_ORGANIZATION;
1602 	YY_BREAK
1603 case 54:
1604 YY_RULE_SETUP
1605 #line 128 "quote_fmt_lex.l"
1606 /* query signature */ return QUERY_ACCOUNT_SIG;
1607 	YY_BREAK
1608 case 55:
1609 YY_RULE_SETUP
1610 #line 129 "quote_fmt_lex.l"
1611 /* query signature path */ return QUERY_ACCOUNT_SIGPATH;
1612 	YY_BREAK
1613 case 56:
1614 YY_RULE_SETUP
1615 #line 130 "quote_fmt_lex.l"
1616 /* query account main dict enabled */ return QUERY_ACCOUNT_DICT;
1617 	YY_BREAK
1618 case 57:
1619 YY_RULE_SETUP
1620 #line 131 "quote_fmt_lex.l"
1621 /* query completion for 'Cc' in address book */ return QUERY_CC_FOUND_IN_ADDRESSBOOK;
1622 	YY_BREAK
1623 case 58:
1624 YY_RULE_SETUP
1625 #line 132 "quote_fmt_lex.l"
1626 /* query completion for 'From' in address book */ return QUERY_FROM_FOUND_IN_ADDRESSBOOK;
1627 	YY_BREAK
1628 case 59:
1629 YY_RULE_SETUP
1630 #line 133 "quote_fmt_lex.l"
1631 /* query completion for 'To' in address book */ return QUERY_TO_FOUND_IN_ADDRESSBOOK;
1632 	YY_BREAK
1633 case 60:
1634 YY_RULE_SETUP
1635 #line 134 "quote_fmt_lex.l"
1636 /* query not(date) */ return QUERY_NOT_DATE;
1637 	YY_BREAK
1638 case 61:
1639 YY_RULE_SETUP
1640 #line 135 "quote_fmt_lex.l"
1641 /* query not(from) */ return QUERY_NOT_FROM;
1642 	YY_BREAK
1643 case 62:
1644 YY_RULE_SETUP
1645 #line 136 "quote_fmt_lex.l"
1646 /* query not(from name) */ return QUERY_NOT_FULLNAME;
1647 	YY_BREAK
1648 case 63:
1649 YY_RULE_SETUP
1650 #line 137 "quote_fmt_lex.l"
1651 /* query not(subject) */ return QUERY_NOT_SUBJECT;
1652 	YY_BREAK
1653 case 64:
1654 YY_RULE_SETUP
1655 #line 138 "quote_fmt_lex.l"
1656 /* query not(to) */ return QUERY_NOT_TO;
1657 	YY_BREAK
1658 case 65:
1659 YY_RULE_SETUP
1660 #line 139 "quote_fmt_lex.l"
1661 /* query not(current dictionary set and enabled) */ return QUERY_NOT_DICT;
1662 	YY_BREAK
1663 case 66:
1664 YY_RULE_SETUP
1665 #line 140 "quote_fmt_lex.l"
1666 /* query not(cc) */ return QUERY_NOT_CC;
1667 	YY_BREAK
1668 case 67:
1669 YY_RULE_SETUP
1670 #line 141 "quote_fmt_lex.l"
1671 /* query not(newsgroups) */ return QUERY_NOT_NEWSGROUPS;
1672 	YY_BREAK
1673 case 68:
1674 YY_RULE_SETUP
1675 #line 142 "quote_fmt_lex.l"
1676 /* query not(message-id) */ return QUERY_NOT_MESSAGEID;
1677 	YY_BREAK
1678 case 69:
1679 YY_RULE_SETUP
1680 #line 143 "quote_fmt_lex.l"
1681 /* query not(references) */ return QUERY_NOT_REFERENCES;
1682 	YY_BREAK
1683 case 70:
1684 YY_RULE_SETUP
1685 #line 144 "quote_fmt_lex.l"
1686 /* query not(full name in compose account) */ return QUERY_NOT_ACCOUNT_FULL_NAME;
1687 	YY_BREAK
1688 case 71:
1689 YY_RULE_SETUP
1690 #line 145 "quote_fmt_lex.l"
1691 /* query not(organization in compose account) */ return QUERY_NOT_ACCOUNT_ORGANIZATION;
1692 	YY_BREAK
1693 case 72:
1694 YY_RULE_SETUP
1695 #line 146 "quote_fmt_lex.l"
1696 /* query not(signature) */ return QUERY_NOT_ACCOUNT_SIG;
1697 	YY_BREAK
1698 case 73:
1699 YY_RULE_SETUP
1700 #line 147 "quote_fmt_lex.l"
1701 /* query not(signature path) */ return QUERY_NOT_ACCOUNT_SIGPATH;
1702 	YY_BREAK
1703 case 74:
1704 YY_RULE_SETUP
1705 #line 148 "quote_fmt_lex.l"
1706 /* query not(account main dict enabled and set) */ return QUERY_NOT_ACCOUNT_DICT;
1707 	YY_BREAK
1708 case 75:
1709 YY_RULE_SETUP
1710 #line 149 "quote_fmt_lex.l"
1711 /* query not(completion for 'Cc' in address book) */ return QUERY_NOT_CC_FOUND_IN_ADDRESSBOOK;
1712 	YY_BREAK
1713 case 76:
1714 YY_RULE_SETUP
1715 #line 150 "quote_fmt_lex.l"
1716 /* query not(completion for 'From' in address book) */ return QUERY_NOT_FROM_FOUND_IN_ADDRESSBOOK;
1717 	YY_BREAK
1718 case 77:
1719 YY_RULE_SETUP
1720 #line 151 "quote_fmt_lex.l"
1721 /* query not(completion for 'To' in address book) */ return QUERY_NOT_TO_FOUND_IN_ADDRESSBOOK;
1722 	YY_BREAK
1723 case 78:
1724 YY_RULE_SETUP
1725 #line 152 "quote_fmt_lex.l"
1726 /* insert file */ return INSERT_FILE;
1727 	YY_BREAK
1728 case 79:
1729 YY_RULE_SETUP
1730 #line 153 "quote_fmt_lex.l"
1731 /* insert program output */ return INSERT_PROGRAMOUTPUT;
1732 	YY_BREAK
1733 case 80:
1734 YY_RULE_SETUP
1735 #line 154 "quote_fmt_lex.l"
1736 /* insert user input */ return INSERT_USERINPUT;
1737 	YY_BREAK
1738 case 81:
1739 YY_RULE_SETUP
1740 #line 155 "quote_fmt_lex.l"
1741 /* attach file */ return ATTACH_FILE;
1742 	YY_BREAK
1743 case 82:
1744 YY_RULE_SETUP
1745 #line 156 "quote_fmt_lex.l"
1746 /*  file whose name's got from program output */ return ATTACH_PROGRAMOUTPUT;
1747 	YY_BREAK
1748 case 83:
1749 YY_RULE_SETUP
1750 #line 157 "quote_fmt_lex.l"
1751 return OPARENT;
1752 	YY_BREAK
1753 case 84:
1754 YY_RULE_SETUP
1755 #line 158 "quote_fmt_lex.l"
1756 { BEGIN S_NORMAL; return CPARENT; }
1757 	YY_BREAK
1758 case 85:
1759 YY_RULE_SETUP
1760 #line 159 "quote_fmt_lex.l"
1761 return OPARENT;
1762 	YY_BREAK
1763 case 86:
1764 YY_RULE_SETUP
1765 #line 160 "quote_fmt_lex.l"
1766 return CPARENT;
1767 	YY_BREAK
1768 case 87:
1769 YY_RULE_SETUP
1770 #line 161 "quote_fmt_lex.l"
1771 { yylval.chr = yytext[0]; return CHARACTER; }
1772 	YY_BREAK
1773 case 88:
1774 YY_RULE_SETUP
1775 #line 163 "quote_fmt_lex.l"
1776 ECHO;
1777 	YY_BREAK
1778 #line 1778 "quote_fmt_lex.c"
1779 case YY_STATE_EOF(INITIAL):
1780 case YY_STATE_EOF(S_NORMAL):
1781 case YY_STATE_EOF(S_DATE):
1782 	yyterminate();
1783 
1784 	case YY_END_OF_BUFFER:
1785 		{
1786 		/* Amount of text matched not including the EOB char. */
1787 		int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1788 
1789 		/* Undo the effects of YY_DO_BEFORE_ACTION. */
1790 		*yy_cp = (yy_hold_char);
1791 		YY_RESTORE_YY_MORE_OFFSET
1792 
1793 		if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1794 			{
1795 			/* We're scanning a new file or input source.  It's
1796 			 * possible that this happened because the user
1797 			 * just pointed yyin at a new source and called
1798 			 * yylex().  If so, then we have to assure
1799 			 * consistency between YY_CURRENT_BUFFER and our
1800 			 * globals.  Here is the right place to do so, because
1801 			 * this is the first action (other than possibly a
1802 			 * back-up) that will match for the new input source.
1803 			 */
1804 			(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1805 			YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1806 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1807 			}
1808 
1809 		/* Note that here we test for yy_c_buf_p "<=" to the position
1810 		 * of the first EOB in the buffer, since yy_c_buf_p will
1811 		 * already have been incremented past the NUL character
1812 		 * (since all states make transitions on EOB to the
1813 		 * end-of-buffer state).  Contrast this with the test
1814 		 * in input().
1815 		 */
1816 		if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1817 			{ /* This was really a NUL. */
1818 			yy_state_type yy_next_state;
1819 
1820 			(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1821 
1822 			yy_current_state = yy_get_previous_state(  );
1823 
1824 			/* Okay, we're now positioned to make the NUL
1825 			 * transition.  We couldn't have
1826 			 * yy_get_previous_state() go ahead and do it
1827 			 * for us because it doesn't know how to deal
1828 			 * with the possibility of jamming (and we don't
1829 			 * want to build jamming into it because then it
1830 			 * will run more slowly).
1831 			 */
1832 
1833 			yy_next_state = yy_try_NUL_trans( yy_current_state );
1834 
1835 			yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1836 
1837 			if ( yy_next_state )
1838 				{
1839 				/* Consume the NUL. */
1840 				yy_cp = ++(yy_c_buf_p);
1841 				yy_current_state = yy_next_state;
1842 				goto yy_match;
1843 				}
1844 
1845 			else
1846 				{
1847 				yy_cp = (yy_last_accepting_cpos);
1848 				yy_current_state = (yy_last_accepting_state);
1849 				goto yy_find_action;
1850 				}
1851 			}
1852 
1853 		else switch ( yy_get_next_buffer(  ) )
1854 			{
1855 			case EOB_ACT_END_OF_FILE:
1856 				{
1857 				(yy_did_buffer_switch_on_eof) = 0;
1858 
1859 				if ( yywrap(  ) )
1860 					{
1861 					/* Note: because we've taken care in
1862 					 * yy_get_next_buffer() to have set up
1863 					 * yytext, we can now set up
1864 					 * yy_c_buf_p so that if some total
1865 					 * hoser (like flex itself) wants to
1866 					 * call the scanner after we return the
1867 					 * YY_NULL, it'll still work - another
1868 					 * YY_NULL will get returned.
1869 					 */
1870 					(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1871 
1872 					yy_act = YY_STATE_EOF(YY_START);
1873 					goto do_action;
1874 					}
1875 
1876 				else
1877 					{
1878 					if ( ! (yy_did_buffer_switch_on_eof) )
1879 						YY_NEW_FILE;
1880 					}
1881 				break;
1882 				}
1883 
1884 			case EOB_ACT_CONTINUE_SCAN:
1885 				(yy_c_buf_p) =
1886 					(yytext_ptr) + yy_amount_of_matched_text;
1887 
1888 				yy_current_state = yy_get_previous_state(  );
1889 
1890 				yy_cp = (yy_c_buf_p);
1891 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1892 				goto yy_match;
1893 
1894 			case EOB_ACT_LAST_MATCH:
1895 				(yy_c_buf_p) =
1896 				&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1897 
1898 				yy_current_state = yy_get_previous_state(  );
1899 
1900 				yy_cp = (yy_c_buf_p);
1901 				yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1902 				goto yy_find_action;
1903 			}
1904 		break;
1905 		}
1906 
1907 	default:
1908 		YY_FATAL_ERROR(
1909 			"fatal flex scanner internal error--no action found" );
1910 	} /* end of action switch */
1911 		} /* end of scanning one token */
1912 	} /* end of user's declarations */
1913 } /* end of yylex */
1914 
1915 /* yy_get_next_buffer - try to read in a new buffer
1916  *
1917  * Returns a code representing an action:
1918  *	EOB_ACT_LAST_MATCH -
1919  *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1920  *	EOB_ACT_END_OF_FILE - end of file
1921  */
yy_get_next_buffer(void)1922 static int yy_get_next_buffer (void)
1923 {
1924     	char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1925 	char *source = (yytext_ptr);
1926 	int number_to_move, i;
1927 	int ret_val;
1928 
1929 	if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1930 		YY_FATAL_ERROR(
1931 		"fatal flex scanner internal error--end of buffer missed" );
1932 
1933 	if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1934 		{ /* Don't try to fill the buffer, so this is an EOF. */
1935 		if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1936 			{
1937 			/* We matched a single character, the EOB, so
1938 			 * treat this as a final EOF.
1939 			 */
1940 			return EOB_ACT_END_OF_FILE;
1941 			}
1942 
1943 		else
1944 			{
1945 			/* We matched some text prior to the EOB, first
1946 			 * process it.
1947 			 */
1948 			return EOB_ACT_LAST_MATCH;
1949 			}
1950 		}
1951 
1952 	/* Try to read more data. */
1953 
1954 	/* First move last chars to start of buffer. */
1955 	number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1956 
1957 	for ( i = 0; i < number_to_move; ++i )
1958 		*(dest++) = *(source++);
1959 
1960 	if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1961 		/* don't do the read, it's not guaranteed to return an EOF,
1962 		 * just force an EOF
1963 		 */
1964 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1965 
1966 	else
1967 		{
1968 			int num_to_read =
1969 			YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1970 
1971 		while ( num_to_read <= 0 )
1972 			{ /* Not enough room in the buffer - grow it. */
1973 
1974 			/* just a shorter name for the current buffer */
1975 			YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
1976 
1977 			int yy_c_buf_p_offset =
1978 				(int) ((yy_c_buf_p) - b->yy_ch_buf);
1979 
1980 			if ( b->yy_is_our_buffer )
1981 				{
1982 				int new_size = b->yy_buf_size * 2;
1983 
1984 				if ( new_size <= 0 )
1985 					b->yy_buf_size += b->yy_buf_size / 8;
1986 				else
1987 					b->yy_buf_size *= 2;
1988 
1989 				b->yy_ch_buf = (char *)
1990 					/* Include room in for 2 EOB chars. */
1991 					yyrealloc( (void *) b->yy_ch_buf,
1992 							 (yy_size_t) (b->yy_buf_size + 2)  );
1993 				}
1994 			else
1995 				/* Can't grow it, we don't own it. */
1996 				b->yy_ch_buf = NULL;
1997 
1998 			if ( ! b->yy_ch_buf )
1999 				YY_FATAL_ERROR(
2000 				"fatal error - scanner input buffer overflow" );
2001 
2002 			(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2003 
2004 			num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2005 						number_to_move - 1;
2006 
2007 			}
2008 
2009 		if ( num_to_read > YY_READ_BUF_SIZE )
2010 			num_to_read = YY_READ_BUF_SIZE;
2011 
2012 		/* Read in more data. */
2013 		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2014 			(yy_n_chars), num_to_read );
2015 
2016 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2017 		}
2018 
2019 	if ( (yy_n_chars) == 0 )
2020 		{
2021 		if ( number_to_move == YY_MORE_ADJ )
2022 			{
2023 			ret_val = EOB_ACT_END_OF_FILE;
2024 			yyrestart( yyin  );
2025 			}
2026 
2027 		else
2028 			{
2029 			ret_val = EOB_ACT_LAST_MATCH;
2030 			YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2031 				YY_BUFFER_EOF_PENDING;
2032 			}
2033 		}
2034 
2035 	else
2036 		ret_val = EOB_ACT_CONTINUE_SCAN;
2037 
2038 	if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2039 		/* Extend the array by 50%, plus the number we really need. */
2040 		int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2041 		YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
2042 			(void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size  );
2043 		if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2044 			YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2045 		/* "- 2" to take care of EOB's */
2046 		YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
2047 	}
2048 
2049 	(yy_n_chars) += number_to_move;
2050 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2051 	YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2052 
2053 	(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2054 
2055 	return ret_val;
2056 }
2057 
2058 /* yy_get_previous_state - get the state just before the EOB char was reached */
2059 
yy_get_previous_state(void)2060     static yy_state_type yy_get_previous_state (void)
2061 {
2062 	yy_state_type yy_current_state;
2063 	char *yy_cp;
2064 
2065 	yy_current_state = (yy_start);
2066 
2067 	for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2068 		{
2069 		YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2070 		if ( yy_accept[yy_current_state] )
2071 			{
2072 			(yy_last_accepting_state) = yy_current_state;
2073 			(yy_last_accepting_cpos) = yy_cp;
2074 			}
2075 		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2076 			{
2077 			yy_current_state = (int) yy_def[yy_current_state];
2078 			if ( yy_current_state >= 501 )
2079 				yy_c = yy_meta[yy_c];
2080 			}
2081 		yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2082 		}
2083 
2084 	return yy_current_state;
2085 }
2086 
2087 /* yy_try_NUL_trans - try to make a transition on the NUL character
2088  *
2089  * synopsis
2090  *	next_state = yy_try_NUL_trans( current_state );
2091  */
yy_try_NUL_trans(yy_state_type yy_current_state)2092     static yy_state_type yy_try_NUL_trans  (yy_state_type yy_current_state )
2093 {
2094 	int yy_is_jam;
2095     	char *yy_cp = (yy_c_buf_p);
2096 
2097 	YY_CHAR yy_c = 1;
2098 	if ( yy_accept[yy_current_state] )
2099 		{
2100 		(yy_last_accepting_state) = yy_current_state;
2101 		(yy_last_accepting_cpos) = yy_cp;
2102 		}
2103 	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2104 		{
2105 		yy_current_state = (int) yy_def[yy_current_state];
2106 		if ( yy_current_state >= 501 )
2107 			yy_c = yy_meta[yy_c];
2108 		}
2109 	yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2110 	yy_is_jam = (yy_current_state == 500);
2111 
2112 		return yy_is_jam ? 0 : yy_current_state;
2113 }
2114 
2115 #ifndef YY_NO_UNPUT
2116 
2117 #endif
2118 
2119 #ifndef YY_NO_INPUT
2120 #ifdef __cplusplus
yyinput(void)2121     static int yyinput (void)
2122 #else
2123     static int input  (void)
2124 #endif
2125 
2126 {
2127 	int c;
2128 
2129 	*(yy_c_buf_p) = (yy_hold_char);
2130 
2131 	if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2132 		{
2133 		/* yy_c_buf_p now points to the character we want to return.
2134 		 * If this occurs *before* the EOB characters, then it's a
2135 		 * valid NUL; if not, then we've hit the end of the buffer.
2136 		 */
2137 		if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2138 			/* This was really a NUL. */
2139 			*(yy_c_buf_p) = '\0';
2140 
2141 		else
2142 			{ /* need more input */
2143 			int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
2144 			++(yy_c_buf_p);
2145 
2146 			switch ( yy_get_next_buffer(  ) )
2147 				{
2148 				case EOB_ACT_LAST_MATCH:
2149 					/* This happens because yy_g_n_b()
2150 					 * sees that we've accumulated a
2151 					 * token and flags that we need to
2152 					 * try matching the token before
2153 					 * proceeding.  But for input(),
2154 					 * there's no matching to consider.
2155 					 * So convert the EOB_ACT_LAST_MATCH
2156 					 * to EOB_ACT_END_OF_FILE.
2157 					 */
2158 
2159 					/* Reset buffer status. */
2160 					yyrestart( yyin );
2161 
2162 					/*FALLTHROUGH*/
2163 
2164 				case EOB_ACT_END_OF_FILE:
2165 					{
2166 					if ( yywrap(  ) )
2167 						return 0;
2168 
2169 					if ( ! (yy_did_buffer_switch_on_eof) )
2170 						YY_NEW_FILE;
2171 #ifdef __cplusplus
2172 					return yyinput();
2173 #else
2174 					return input();
2175 #endif
2176 					}
2177 
2178 				case EOB_ACT_CONTINUE_SCAN:
2179 					(yy_c_buf_p) = (yytext_ptr) + offset;
2180 					break;
2181 				}
2182 			}
2183 		}
2184 
2185 	c = *(unsigned char *) (yy_c_buf_p);	/* cast for 8-bit char's */
2186 	*(yy_c_buf_p) = '\0';	/* preserve yytext */
2187 	(yy_hold_char) = *++(yy_c_buf_p);
2188 
2189 	return c;
2190 }
2191 #endif	/* ifndef YY_NO_INPUT */
2192 
2193 /** Immediately switch to a different input stream.
2194  * @param input_file A readable stream.
2195  *
2196  * @note This function does not reset the start condition to @c INITIAL .
2197  */
yyrestart(FILE * input_file)2198     void yyrestart  (FILE * input_file )
2199 {
2200 
2201 	if ( ! YY_CURRENT_BUFFER ){
2202         yyensure_buffer_stack ();
2203 		YY_CURRENT_BUFFER_LVALUE =
2204             yy_create_buffer( yyin, YY_BUF_SIZE );
2205 	}
2206 
2207 	yy_init_buffer( YY_CURRENT_BUFFER, input_file );
2208 	yy_load_buffer_state(  );
2209 }
2210 
2211 /** Switch to a different input buffer.
2212  * @param new_buffer The new input buffer.
2213  *
2214  */
yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)2215     void yy_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
2216 {
2217 
2218 	/* TODO. We should be able to replace this entire function body
2219 	 * with
2220 	 *		yypop_buffer_state();
2221 	 *		yypush_buffer_state(new_buffer);
2222      */
2223 	yyensure_buffer_stack ();
2224 	if ( YY_CURRENT_BUFFER == new_buffer )
2225 		return;
2226 
2227 	if ( YY_CURRENT_BUFFER )
2228 		{
2229 		/* Flush out information for old buffer. */
2230 		*(yy_c_buf_p) = (yy_hold_char);
2231 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2232 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2233 		}
2234 
2235 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
2236 	yy_load_buffer_state(  );
2237 
2238 	/* We don't actually know whether we did this switch during
2239 	 * EOF (yywrap()) processing, but the only time this flag
2240 	 * is looked at is after yywrap() is called, so it's safe
2241 	 * to go ahead and always set it.
2242 	 */
2243 	(yy_did_buffer_switch_on_eof) = 1;
2244 }
2245 
yy_load_buffer_state(void)2246 static void yy_load_buffer_state  (void)
2247 {
2248     	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2249 	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2250 	yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2251 	(yy_hold_char) = *(yy_c_buf_p);
2252 }
2253 
2254 /** Allocate and initialize an input buffer state.
2255  * @param file A readable stream.
2256  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2257  *
2258  * @return the allocated buffer state.
2259  */
yy_create_buffer(FILE * file,int size)2260     YY_BUFFER_STATE yy_create_buffer  (FILE * file, int  size )
2261 {
2262 	YY_BUFFER_STATE b;
2263 
2264 	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state )  );
2265 	if ( ! b )
2266 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2267 
2268 	b->yy_buf_size = size;
2269 
2270 	/* yy_ch_buf has to be 2 characters longer than the size given because
2271 	 * we need to put in 2 end-of-buffer characters.
2272 	 */
2273 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
2274 	if ( ! b->yy_ch_buf )
2275 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2276 
2277 	b->yy_is_our_buffer = 1;
2278 
2279 	yy_init_buffer( b, file );
2280 
2281 	return b;
2282 }
2283 
2284 /** Destroy the buffer.
2285  * @param b a buffer created with yy_create_buffer()
2286  *
2287  */
yy_delete_buffer(YY_BUFFER_STATE b)2288     void yy_delete_buffer (YY_BUFFER_STATE  b )
2289 {
2290 
2291 	if ( ! b )
2292 		return;
2293 
2294 	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2295 		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2296 
2297 	if ( b->yy_is_our_buffer )
2298 		yyfree( (void *) b->yy_ch_buf  );
2299 
2300 	yyfree( (void *) b  );
2301 }
2302 
2303 /* Initializes or reinitializes a buffer.
2304  * This function is sometimes called more than once on the same buffer,
2305  * such as during a yyrestart() or at EOF.
2306  */
yy_init_buffer(YY_BUFFER_STATE b,FILE * file)2307     static void yy_init_buffer  (YY_BUFFER_STATE  b, FILE * file )
2308 
2309 {
2310 	int oerrno = errno;
2311 
2312 	yy_flush_buffer( b );
2313 
2314 	b->yy_input_file = file;
2315 	b->yy_fill_buffer = 1;
2316 
2317     /* If b is the current buffer, then yy_init_buffer was _probably_
2318      * called from yyrestart() or through yy_get_next_buffer.
2319      * In that case, we don't want to reset the lineno or column.
2320      */
2321     if (b != YY_CURRENT_BUFFER){
2322         b->yy_bs_lineno = 1;
2323         b->yy_bs_column = 0;
2324     }
2325 
2326         b->yy_is_interactive = 0;
2327 
2328 	errno = oerrno;
2329 }
2330 
2331 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2332  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2333  *
2334  */
yy_flush_buffer(YY_BUFFER_STATE b)2335     void yy_flush_buffer (YY_BUFFER_STATE  b )
2336 {
2337     	if ( ! b )
2338 		return;
2339 
2340 	b->yy_n_chars = 0;
2341 
2342 	/* We always need two end-of-buffer characters.  The first causes
2343 	 * a transition to the end-of-buffer state.  The second causes
2344 	 * a jam in that state.
2345 	 */
2346 	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2347 	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2348 
2349 	b->yy_buf_pos = &b->yy_ch_buf[0];
2350 
2351 	b->yy_at_bol = 1;
2352 	b->yy_buffer_status = YY_BUFFER_NEW;
2353 
2354 	if ( b == YY_CURRENT_BUFFER )
2355 		yy_load_buffer_state(  );
2356 }
2357 
2358 /** Pushes the new state onto the stack. The new state becomes
2359  *  the current state. This function will allocate the stack
2360  *  if necessary.
2361  *  @param new_buffer The new state.
2362  *
2363  */
yypush_buffer_state(YY_BUFFER_STATE new_buffer)2364 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
2365 {
2366     	if (new_buffer == NULL)
2367 		return;
2368 
2369 	yyensure_buffer_stack();
2370 
2371 	/* This block is copied from yy_switch_to_buffer. */
2372 	if ( YY_CURRENT_BUFFER )
2373 		{
2374 		/* Flush out information for old buffer. */
2375 		*(yy_c_buf_p) = (yy_hold_char);
2376 		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2377 		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2378 		}
2379 
2380 	/* Only push if top exists. Otherwise, replace top. */
2381 	if (YY_CURRENT_BUFFER)
2382 		(yy_buffer_stack_top)++;
2383 	YY_CURRENT_BUFFER_LVALUE = new_buffer;
2384 
2385 	/* copied from yy_switch_to_buffer. */
2386 	yy_load_buffer_state(  );
2387 	(yy_did_buffer_switch_on_eof) = 1;
2388 }
2389 
2390 /** Removes and deletes the top of the stack, if present.
2391  *  The next element becomes the new top.
2392  *
2393  */
yypop_buffer_state(void)2394 void yypop_buffer_state (void)
2395 {
2396     	if (!YY_CURRENT_BUFFER)
2397 		return;
2398 
2399 	yy_delete_buffer(YY_CURRENT_BUFFER );
2400 	YY_CURRENT_BUFFER_LVALUE = NULL;
2401 	if ((yy_buffer_stack_top) > 0)
2402 		--(yy_buffer_stack_top);
2403 
2404 	if (YY_CURRENT_BUFFER) {
2405 		yy_load_buffer_state(  );
2406 		(yy_did_buffer_switch_on_eof) = 1;
2407 	}
2408 }
2409 
2410 /* Allocates the stack if it does not exist.
2411  *  Guarantees space for at least one push.
2412  */
yyensure_buffer_stack(void)2413 static void yyensure_buffer_stack (void)
2414 {
2415 	yy_size_t num_to_alloc;
2416 
2417 	if (!(yy_buffer_stack)) {
2418 
2419 		/* First allocation is just for 2 elements, since we don't know if this
2420 		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2421 		 * immediate realloc on the next call.
2422          */
2423       num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
2424 		(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
2425 								(num_to_alloc * sizeof(struct yy_buffer_state*)
2426 								);
2427 		if ( ! (yy_buffer_stack) )
2428 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2429 
2430 		memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2431 
2432 		(yy_buffer_stack_max) = num_to_alloc;
2433 		(yy_buffer_stack_top) = 0;
2434 		return;
2435 	}
2436 
2437 	if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2438 
2439 		/* Increase the buffer to prepare for a possible push. */
2440 		yy_size_t grow_size = 8 /* arbitrary grow size */;
2441 
2442 		num_to_alloc = (yy_buffer_stack_max) + grow_size;
2443 		(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
2444 								((yy_buffer_stack),
2445 								num_to_alloc * sizeof(struct yy_buffer_state*)
2446 								);
2447 		if ( ! (yy_buffer_stack) )
2448 			YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2449 
2450 		/* zero only the new slots.*/
2451 		memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2452 		(yy_buffer_stack_max) = num_to_alloc;
2453 	}
2454 }
2455 
2456 /** Setup the input buffer state to scan directly from a user-specified character buffer.
2457  * @param base the character buffer
2458  * @param size the size in bytes of the character buffer
2459  *
2460  * @return the newly allocated buffer state object.
2461  */
yy_scan_buffer(char * base,yy_size_t size)2462 YY_BUFFER_STATE yy_scan_buffer  (char * base, yy_size_t  size )
2463 {
2464 	YY_BUFFER_STATE b;
2465 
2466 	if ( size < 2 ||
2467 	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
2468 	     base[size-1] != YY_END_OF_BUFFER_CHAR )
2469 		/* They forgot to leave room for the EOB's. */
2470 		return NULL;
2471 
2472 	b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state )  );
2473 	if ( ! b )
2474 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2475 
2476 	b->yy_buf_size = (int) (size - 2);	/* "- 2" to take care of EOB's */
2477 	b->yy_buf_pos = b->yy_ch_buf = base;
2478 	b->yy_is_our_buffer = 0;
2479 	b->yy_input_file = NULL;
2480 	b->yy_n_chars = b->yy_buf_size;
2481 	b->yy_is_interactive = 0;
2482 	b->yy_at_bol = 1;
2483 	b->yy_fill_buffer = 0;
2484 	b->yy_buffer_status = YY_BUFFER_NEW;
2485 
2486 	yy_switch_to_buffer( b  );
2487 
2488 	return b;
2489 }
2490 
2491 /** Setup the input buffer state to scan a string. The next call to yylex() will
2492  * scan from a @e copy of @a str.
2493  * @param yystr a NUL-terminated string to scan
2494  *
2495  * @return the newly allocated buffer state object.
2496  * @note If you want to scan bytes that may contain NUL values, then use
2497  *       yy_scan_bytes() instead.
2498  */
yy_scan_string(const char * yystr)2499 YY_BUFFER_STATE yy_scan_string (const char * yystr )
2500 {
2501 
2502 	return yy_scan_bytes( yystr, (int) strlen(yystr) );
2503 }
2504 
2505 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2506  * scan from a @e copy of @a bytes.
2507  * @param yybytes the byte buffer to scan
2508  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2509  *
2510  * @return the newly allocated buffer state object.
2511  */
yy_scan_bytes(const char * yybytes,int _yybytes_len)2512 YY_BUFFER_STATE yy_scan_bytes  (const char * yybytes, int  _yybytes_len )
2513 {
2514 	YY_BUFFER_STATE b;
2515 	char *buf;
2516 	yy_size_t n;
2517 	int i;
2518 
2519 	/* Get memory for full buffer, including space for trailing EOB's. */
2520 	n = (yy_size_t) (_yybytes_len + 2);
2521 	buf = (char *) yyalloc( n  );
2522 	if ( ! buf )
2523 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2524 
2525 	for ( i = 0; i < _yybytes_len; ++i )
2526 		buf[i] = yybytes[i];
2527 
2528 	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2529 
2530 	b = yy_scan_buffer( buf, n );
2531 	if ( ! b )
2532 		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2533 
2534 	/* It's okay to grow etc. this buffer, and we should throw it
2535 	 * away when we're done.
2536 	 */
2537 	b->yy_is_our_buffer = 1;
2538 
2539 	return b;
2540 }
2541 
2542 #ifndef YY_EXIT_FAILURE
2543 #define YY_EXIT_FAILURE 2
2544 #endif
2545 
yy_fatal_error(const char * msg)2546 static void yynoreturn yy_fatal_error (const char* msg )
2547 {
2548 			fprintf( stderr, "%s\n", msg );
2549 	exit( YY_EXIT_FAILURE );
2550 }
2551 
2552 /* Redefine yyless() so it works in section 3 code. */
2553 
2554 #undef yyless
2555 #define yyless(n) \
2556 	do \
2557 		{ \
2558 		/* Undo effects of setting up yytext. */ \
2559         int yyless_macro_arg = (n); \
2560         YY_LESS_LINENO(yyless_macro_arg);\
2561 		yytext[yyleng] = (yy_hold_char); \
2562 		(yy_c_buf_p) = yytext + yyless_macro_arg; \
2563 		(yy_hold_char) = *(yy_c_buf_p); \
2564 		*(yy_c_buf_p) = '\0'; \
2565 		yyleng = yyless_macro_arg; \
2566 		} \
2567 	while ( 0 )
2568 
2569 /* Accessor  methods (get/set functions) to struct members. */
2570 
2571 /** Get the current line number.
2572  *
2573  */
yyget_lineno(void)2574 int yyget_lineno  (void)
2575 {
2576 
2577     return yylineno;
2578 }
2579 
2580 /** Get the input stream.
2581  *
2582  */
yyget_in(void)2583 FILE *yyget_in  (void)
2584 {
2585         return yyin;
2586 }
2587 
2588 /** Get the output stream.
2589  *
2590  */
yyget_out(void)2591 FILE *yyget_out  (void)
2592 {
2593         return yyout;
2594 }
2595 
2596 /** Get the length of the current token.
2597  *
2598  */
yyget_leng(void)2599 int yyget_leng  (void)
2600 {
2601         return yyleng;
2602 }
2603 
2604 /** Get the current token.
2605  *
2606  */
2607 
yyget_text(void)2608 char *yyget_text  (void)
2609 {
2610         return yytext;
2611 }
2612 
2613 /** Set the current line number.
2614  * @param _line_number line number
2615  *
2616  */
yyset_lineno(int _line_number)2617 void yyset_lineno (int  _line_number )
2618 {
2619 
2620     yylineno = _line_number;
2621 }
2622 
2623 /** Set the input stream. This does not discard the current
2624  * input buffer.
2625  * @param _in_str A readable stream.
2626  *
2627  * @see yy_switch_to_buffer
2628  */
yyset_in(FILE * _in_str)2629 void yyset_in (FILE *  _in_str )
2630 {
2631         yyin = _in_str ;
2632 }
2633 
yyset_out(FILE * _out_str)2634 void yyset_out (FILE *  _out_str )
2635 {
2636         yyout = _out_str ;
2637 }
2638 
yyget_debug(void)2639 int yyget_debug  (void)
2640 {
2641         return yy_flex_debug;
2642 }
2643 
yyset_debug(int _bdebug)2644 void yyset_debug (int  _bdebug )
2645 {
2646         yy_flex_debug = _bdebug ;
2647 }
2648 
yy_init_globals(void)2649 static int yy_init_globals (void)
2650 {
2651         /* Initialization is the same as for the non-reentrant scanner.
2652      * This function is called from yylex_destroy(), so don't allocate here.
2653      */
2654 
2655     (yy_buffer_stack) = NULL;
2656     (yy_buffer_stack_top) = 0;
2657     (yy_buffer_stack_max) = 0;
2658     (yy_c_buf_p) = NULL;
2659     (yy_init) = 0;
2660     (yy_start) = 0;
2661 
2662 /* Defined in main.c */
2663 #ifdef YY_STDINIT
2664     yyin = stdin;
2665     yyout = stdout;
2666 #else
2667     yyin = NULL;
2668     yyout = NULL;
2669 #endif
2670 
2671     /* For future reference: Set errno on error, since we are called by
2672      * yylex_init()
2673      */
2674     return 0;
2675 }
2676 
2677 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
yylex_destroy(void)2678 int yylex_destroy  (void)
2679 {
2680 
2681     /* Pop the buffer stack, destroying each element. */
2682 	while(YY_CURRENT_BUFFER){
2683 		yy_delete_buffer( YY_CURRENT_BUFFER  );
2684 		YY_CURRENT_BUFFER_LVALUE = NULL;
2685 		yypop_buffer_state();
2686 	}
2687 
2688 	/* Destroy the stack itself. */
2689 	yyfree((yy_buffer_stack) );
2690 	(yy_buffer_stack) = NULL;
2691 
2692     /* Reset the globals. This is important in a non-reentrant scanner so the next time
2693      * yylex() is called, initialization will occur. */
2694     yy_init_globals( );
2695 
2696     return 0;
2697 }
2698 
2699 /*
2700  * Internal utility routines.
2701  */
2702 
2703 #ifndef yytext_ptr
yy_flex_strncpy(char * s1,const char * s2,int n)2704 static void yy_flex_strncpy (char* s1, const char * s2, int n )
2705 {
2706 
2707 	int i;
2708 	for ( i = 0; i < n; ++i )
2709 		s1[i] = s2[i];
2710 }
2711 #endif
2712 
2713 #ifdef YY_NEED_STRLEN
yy_flex_strlen(const char * s)2714 static int yy_flex_strlen (const char * s )
2715 {
2716 	int n;
2717 	for ( n = 0; s[n]; ++n )
2718 		;
2719 
2720 	return n;
2721 }
2722 #endif
2723 
yyalloc(yy_size_t size)2724 void *yyalloc (yy_size_t  size )
2725 {
2726 			return malloc(size);
2727 }
2728 
yyrealloc(void * ptr,yy_size_t size)2729 void *yyrealloc  (void * ptr, yy_size_t  size )
2730 {
2731 
2732 	/* The cast to (char *) in the following accommodates both
2733 	 * implementations that use char* generic pointers, and those
2734 	 * that use void* generic pointers.  It works with the latter
2735 	 * because both ANSI C and C++ allow castless assignment from
2736 	 * any pointer type to void*, and deal with argument conversions
2737 	 * as though doing an assignment.
2738 	 */
2739 	return realloc(ptr, size);
2740 }
2741 
yyfree(void * ptr)2742 void yyfree (void * ptr )
2743 {
2744 			free( (char *) ptr );	/* see yyrealloc() for (char *) cast */
2745 }
2746 
2747 #define YYTABLES_NAME "yytables"
2748 
2749 #line 163 "quote_fmt_lex.l"
2750 
2751 
2752