PIPS
properties.c
Go to the documentation of this file.
1 
2 #line 3 "<stdout>"
3 
4 #define YY_INT_ALIGNED short int
5 
6 /* A lexical scanner generated by flex */
7 
8 #define yy_create_buffer prop__create_buffer
9 #define yy_delete_buffer prop__delete_buffer
10 #define yy_scan_buffer prop__scan_buffer
11 #define yy_scan_string prop__scan_string
12 #define yy_scan_bytes prop__scan_bytes
13 #define yy_init_buffer prop__init_buffer
14 #define yy_flush_buffer prop__flush_buffer
15 #define yy_load_buffer_state prop__load_buffer_state
16 #define yy_switch_to_buffer prop__switch_to_buffer
17 #define yypush_buffer_state prop_push_buffer_state
18 #define yypop_buffer_state prop_pop_buffer_state
19 #define yyensure_buffer_stack prop_ensure_buffer_stack
20 #define yy_flex_debug prop__flex_debug
21 #define yyin prop_in
22 #define yyleng prop_leng
23 #define yylex prop_lex
24 #define yylineno prop_lineno
25 #define yyout prop_out
26 #define yyrestart prop_restart
27 #define yytext prop_text
28 #define yywrap prop_wrap
29 #define yyalloc prop_alloc
30 #define yyrealloc prop_realloc
31 #define yyfree prop_free
32 
33 #define FLEX_SCANNER
34 #define YY_FLEX_MAJOR_VERSION 2
35 #define YY_FLEX_MINOR_VERSION 6
36 #define YY_FLEX_SUBMINOR_VERSION 4
37 #if YY_FLEX_SUBMINOR_VERSION > 0
38 #define FLEX_BETA
39 #endif
40 
41 #ifdef yy_create_buffer
42 #define prop__create_buffer_ALREADY_DEFINED
43 #else
44 #define yy_create_buffer prop__create_buffer
45 #endif
46 
47 #ifdef yy_delete_buffer
48 #define prop__delete_buffer_ALREADY_DEFINED
49 #else
50 #define yy_delete_buffer prop__delete_buffer
51 #endif
52 
53 #ifdef yy_scan_buffer
54 #define prop__scan_buffer_ALREADY_DEFINED
55 #else
56 #define yy_scan_buffer prop__scan_buffer
57 #endif
58 
59 #ifdef yy_scan_string
60 #define prop__scan_string_ALREADY_DEFINED
61 #else
62 #define yy_scan_string prop__scan_string
63 #endif
64 
65 #ifdef yy_scan_bytes
66 #define prop__scan_bytes_ALREADY_DEFINED
67 #else
68 #define yy_scan_bytes prop__scan_bytes
69 #endif
70 
71 #ifdef yy_init_buffer
72 #define prop__init_buffer_ALREADY_DEFINED
73 #else
74 #define yy_init_buffer prop__init_buffer
75 #endif
76 
77 #ifdef yy_flush_buffer
78 #define prop__flush_buffer_ALREADY_DEFINED
79 #else
80 #define yy_flush_buffer prop__flush_buffer
81 #endif
82 
83 #ifdef yy_load_buffer_state
84 #define prop__load_buffer_state_ALREADY_DEFINED
85 #else
86 #define yy_load_buffer_state prop__load_buffer_state
87 #endif
88 
89 #ifdef yy_switch_to_buffer
90 #define prop__switch_to_buffer_ALREADY_DEFINED
91 #else
92 #define yy_switch_to_buffer prop__switch_to_buffer
93 #endif
94 
95 #ifdef yypush_buffer_state
96 #define prop_push_buffer_state_ALREADY_DEFINED
97 #else
98 #define yypush_buffer_state prop_push_buffer_state
99 #endif
100 
101 #ifdef yypop_buffer_state
102 #define prop_pop_buffer_state_ALREADY_DEFINED
103 #else
104 #define yypop_buffer_state prop_pop_buffer_state
105 #endif
106 
107 #ifdef yyensure_buffer_stack
108 #define prop_ensure_buffer_stack_ALREADY_DEFINED
109 #else
110 #define yyensure_buffer_stack prop_ensure_buffer_stack
111 #endif
112 
113 #ifdef yylex
114 #define prop_lex_ALREADY_DEFINED
115 #else
116 #define yylex prop_lex
117 #endif
118 
119 #ifdef yyrestart
120 #define prop_restart_ALREADY_DEFINED
121 #else
122 #define yyrestart prop_restart
123 #endif
124 
125 #ifdef yylex_init
126 #define prop_lex_init_ALREADY_DEFINED
127 #else
128 #define yylex_init prop_lex_init
129 #endif
130 
131 #ifdef yylex_init_extra
132 #define prop_lex_init_extra_ALREADY_DEFINED
133 #else
134 #define yylex_init_extra prop_lex_init_extra
135 #endif
136 
137 #ifdef yylex_destroy
138 #define prop_lex_destroy_ALREADY_DEFINED
139 #else
140 #define yylex_destroy prop_lex_destroy
141 #endif
142 
143 #ifdef yyget_debug
144 #define prop_get_debug_ALREADY_DEFINED
145 #else
146 #define yyget_debug prop_get_debug
147 #endif
148 
149 #ifdef yyset_debug
150 #define prop_set_debug_ALREADY_DEFINED
151 #else
152 #define yyset_debug prop_set_debug
153 #endif
154 
155 #ifdef yyget_extra
156 #define prop_get_extra_ALREADY_DEFINED
157 #else
158 #define yyget_extra prop_get_extra
159 #endif
160 
161 #ifdef yyset_extra
162 #define prop_set_extra_ALREADY_DEFINED
163 #else
164 #define yyset_extra prop_set_extra
165 #endif
166 
167 #ifdef yyget_in
168 #define prop_get_in_ALREADY_DEFINED
169 #else
170 #define yyget_in prop_get_in
171 #endif
172 
173 #ifdef yyset_in
174 #define prop_set_in_ALREADY_DEFINED
175 #else
176 #define yyset_in prop_set_in
177 #endif
178 
179 #ifdef yyget_out
180 #define prop_get_out_ALREADY_DEFINED
181 #else
182 #define yyget_out prop_get_out
183 #endif
184 
185 #ifdef yyset_out
186 #define prop_set_out_ALREADY_DEFINED
187 #else
188 #define yyset_out prop_set_out
189 #endif
190 
191 #ifdef yyget_leng
192 #define prop_get_leng_ALREADY_DEFINED
193 #else
194 #define yyget_leng prop_get_leng
195 #endif
196 
197 #ifdef yyget_text
198 #define prop_get_text_ALREADY_DEFINED
199 #else
200 #define yyget_text prop_get_text
201 #endif
202 
203 #ifdef yyget_lineno
204 #define prop_get_lineno_ALREADY_DEFINED
205 #else
206 #define yyget_lineno prop_get_lineno
207 #endif
208 
209 #ifdef yyset_lineno
210 #define prop_set_lineno_ALREADY_DEFINED
211 #else
212 #define yyset_lineno prop_set_lineno
213 #endif
214 
215 #ifdef yywrap
216 #define prop_wrap_ALREADY_DEFINED
217 #else
218 #define yywrap prop_wrap
219 #endif
220 
221 #ifdef yyalloc
222 #define prop_alloc_ALREADY_DEFINED
223 #else
224 #define yyalloc prop_alloc
225 #endif
226 
227 #ifdef yyrealloc
228 #define prop_realloc_ALREADY_DEFINED
229 #else
230 #define yyrealloc prop_realloc
231 #endif
232 
233 #ifdef yyfree
234 #define prop_free_ALREADY_DEFINED
235 #else
236 #define yyfree prop_free
237 #endif
238 
239 #ifdef yytext
240 #define prop_text_ALREADY_DEFINED
241 #else
242 #define yytext prop_text
243 #endif
244 
245 #ifdef yyleng
246 #define prop_leng_ALREADY_DEFINED
247 #else
248 #define yyleng prop_leng
249 #endif
250 
251 #ifdef yyin
252 #define prop_in_ALREADY_DEFINED
253 #else
254 #define yyin prop_in
255 #endif
256 
257 #ifdef yyout
258 #define prop_out_ALREADY_DEFINED
259 #else
260 #define yyout prop_out
261 #endif
262 
263 #ifdef yy_flex_debug
264 #define prop__flex_debug_ALREADY_DEFINED
265 #else
266 #define yy_flex_debug prop__flex_debug
267 #endif
268 
269 #ifdef yylineno
270 #define prop_lineno_ALREADY_DEFINED
271 #else
272 #define yylineno prop_lineno
273 #endif
274 
275 /* First, we deal with platform-specific or compiler-specific issues. */
276 
277 /* begin standard C headers. */
278 #include <stdio.h>
279 #include <string.h>
280 #include <errno.h>
281 #include <stdlib.h>
282 
283 /* end standard C headers. */
284 
285 /* flex integer type definitions */
286 
287 #ifndef FLEXINT_H
288 #define FLEXINT_H
289 
290 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
291 
292 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
293 
294 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
295  * if you want the limit (max/min) macros for int types.
296  */
297 #ifndef __STDC_LIMIT_MACROS
298 #define __STDC_LIMIT_MACROS 1
299 #endif
300 
301 #include <inttypes.h>
302 typedef int8_t flex_int8_t;
303 typedef uint8_t flex_uint8_t;
304 typedef int16_t flex_int16_t;
305 typedef uint16_t flex_uint16_t;
306 typedef int32_t flex_int32_t;
307 typedef uint32_t flex_uint32_t;
308 #else
309 typedef signed char flex_int8_t;
310 typedef short int flex_int16_t;
311 typedef int flex_int32_t;
312 typedef unsigned char flex_uint8_t;
313 typedef unsigned short int flex_uint16_t;
314 typedef unsigned int flex_uint32_t;
315 
316 /* Limits of integral types. */
317 #ifndef INT8_MIN
318 #define INT8_MIN (-128)
319 #endif
320 #ifndef INT16_MIN
321 #define INT16_MIN (-32767-1)
322 #endif
323 #ifndef INT32_MIN
324 #define INT32_MIN (-2147483647-1)
325 #endif
326 #ifndef INT8_MAX
327 #define INT8_MAX (127)
328 #endif
329 #ifndef INT16_MAX
330 #define INT16_MAX (32767)
331 #endif
332 #ifndef INT32_MAX
333 #define INT32_MAX (2147483647)
334 #endif
335 #ifndef UINT8_MAX
336 #define UINT8_MAX (255U)
337 #endif
338 #ifndef UINT16_MAX
339 #define UINT16_MAX (65535U)
340 #endif
341 #ifndef UINT32_MAX
342 #define UINT32_MAX (4294967295U)
343 #endif
344 
345 #ifndef SIZE_MAX
346 #define SIZE_MAX (~(size_t)0)
347 #endif
348 
349 #endif /* ! C99 */
350 
351 #endif /* ! FLEXINT_H */
352 
353 /* begin standard C++ headers. */
354 
355 /* TODO: this is always defined, so inline it */
356 #define yyconst const
357 
358 #if defined(__GNUC__) && __GNUC__ >= 3
359 #define yynoreturn __attribute__((__noreturn__))
360 #else
361 #define yynoreturn
362 #endif
363 
364 /* Returned upon end-of-file. */
365 #define YY_NULL 0
366 
367 /* Promotes a possibly negative, possibly signed char to an
368  * integer in range [0..255] for use as an array index.
369  */
370 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
371 
372 /* Enter a start condition. This macro really ought to take a parameter,
373  * but we do it the disgusting crufty way forced on us by the ()-less
374  * definition of BEGIN.
375  */
376 #define BEGIN (yy_start) = 1 + 2 *
377 /* Translate the current start state into a value that can be later handed
378  * to BEGIN to return to the state. The YYSTATE alias is for lex
379  * compatibility.
380  */
381 #define YY_START (((yy_start) - 1) / 2)
382 #define YYSTATE YY_START
383 /* Action number for EOF rule of a given start state. */
384 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
385 /* Special action meaning "start processing a new file". */
386 #define YY_NEW_FILE yyrestart( yyin )
387 #define YY_END_OF_BUFFER_CHAR 0
388 
389 /* Size of default input buffer. */
390 #ifndef YY_BUF_SIZE
391 #ifdef __ia64__
392 /* On IA-64, the buffer size is 16k, not 8k.
393  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
394  * Ditto for the __ia64__ case accordingly.
395  */
396 #define YY_BUF_SIZE 32768
397 #else
398 #define YY_BUF_SIZE 16384
399 #endif /* __ia64__ */
400 #endif
401 
402 /* The state buf must be large enough to hold one state per character in the main buffer.
403  */
404 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
405 
406 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
407 #define YY_TYPEDEF_YY_BUFFER_STATE
409 #endif
410 
411 #ifndef YY_TYPEDEF_YY_SIZE_T
412 #define YY_TYPEDEF_YY_SIZE_T
413 typedef size_t size_t;
414 #endif
415 
416 extern int yyleng;
417 
418 extern FILE *yyin, *yyout;
419 
420 #define EOB_ACT_CONTINUE_SCAN 0
421 #define EOB_ACT_END_OF_FILE 1
422 #define EOB_ACT_LAST_MATCH 2
423 
424  #define YY_LESS_LINENO(n)
425  #define YY_LINENO_REWIND_TO(ptr)
426 
427 /* Return all but the first "n" matched characters back to the input stream. */
428 #define yyless(n) \
429  do \
430  { \
431  /* Undo effects of setting up yytext. */ \
432  int yyless_macro_arg = (n); \
433  YY_LESS_LINENO(yyless_macro_arg);\
434  *yy_cp = (yy_hold_char); \
435  YY_RESTORE_YY_MORE_OFFSET \
436  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
437  YY_DO_BEFORE_ACTION; /* set up yytext again */ \
438  } \
439  while ( 0 )
440 #define unput(c) yyunput( c, (yytext_ptr) )
441 
442 #ifndef YY_STRUCT_YY_BUFFER_STATE
443 #define YY_STRUCT_YY_BUFFER_STATE
444 struct yy_buffer_state
445  {
446  FILE *yy_input_file;
447 
448  char *yy_ch_buf; /* input buffer */
449  char *yy_buf_pos; /* current position in input buffer */
450 
451  /* Size of input buffer in bytes, not including room for EOB
452  * characters.
453  */
454  int yy_buf_size;
455 
456  /* Number of characters read into yy_ch_buf, not including EOB
457  * characters.
458  */
459  int yy_n_chars;
460 
461  /* Whether we "own" the buffer - i.e., we know we created it,
462  * and can realloc() it to grow it, and should free() it to
463  * delete it.
464  */
465  int yy_is_our_buffer;
466 
467  /* Whether this is an "interactive" input source; if so, and
468  * if we're using stdio for input, then we want to use getc()
469  * instead of fread(), to make sure we stop fetching input after
470  * each newline.
471  */
472  int yy_is_interactive;
473 
474  /* Whether we're considered to be at the beginning of a line.
475  * If so, '^' rules will be active on the next match, otherwise
476  * not.
477  */
478  int yy_at_bol;
479 
480  int yy_bs_lineno; /**< The line count. */
481  int yy_bs_column; /**< The column count. */
482 
483  /* Whether to try to fill the input buffer when we reach the
484  * end of it.
485  */
486  int yy_fill_buffer;
487 
488  int yy_buffer_status;
489 
490 #define YY_BUFFER_NEW 0
491 #define YY_BUFFER_NORMAL 1
492  /* When an EOF's been seen but there's still some text to process
493  * then we mark the buffer as YY_EOF_PENDING, to indicate that we
494  * shouldn't try reading from the input source any more. We might
495  * still have a bunch of tokens to match, though, because of
496  * possible backing-up.
497  *
498  * When we actually see the EOF, we change the status to "new"
499  * (via yyrestart()), so that the user can continue scanning by
500  * just pointing yyin at a new input file.
501  */
502 #define YY_BUFFER_EOF_PENDING 2
503 
504  };
505 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
506 
507 /* Stack of input buffers. */
508 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
509 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
510 static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
511 
512 /* We provide macros for accessing buffer states in case in the
513  * future we want to put the buffer states in a more general
514  * "scanner state".
515  *
516  * Returns the top of the stack, or NULL.
517  */
518 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
519  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
520  : NULL)
521 /* Same as previous macro, but useful when we know that the buffer stack is not
522  * NULL or when we need an lvalue. For internal use only.
523  */
524 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
525 
526 /* yy_hold_char holds the character lost when yytext is formed. */
527 static char yy_hold_char;
528 static int yy_n_chars; /* number of characters read into yy_ch_buf */
529 int yyleng;
530 
531 /* Points to current character in buffer. */
532 static char *yy_c_buf_p = NULL;
533 static int yy_init = 0; /* whether we need to initialize */
534 static int yy_start = 0; /* start state number */
535 
536 /* Flag which is used to allow yywrap()'s to do buffer switches
537  * instead of setting up a fresh yyin. A bit of a hack ...
538  */
540 
541 void yyrestart ( FILE *input_file );
543 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
547 void yypop_buffer_state ( void );
548 
549 static void yyensure_buffer_stack ( void );
550 static void yy_load_buffer_state ( void );
551 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
552 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
553 
554 YY_BUFFER_STATE yy_scan_buffer ( char *base, size_t size );
555 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
556 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
557 
558 void *yyalloc ( size_t );
559 void *yyrealloc ( void *, size_t );
560 void yyfree ( void * );
561 
562 #define yy_new_buffer yy_create_buffer
563 #define yy_set_interactive(is_interactive) \
564  { \
565  if ( ! YY_CURRENT_BUFFER ){ \
566  yyensure_buffer_stack (); \
567  YY_CURRENT_BUFFER_LVALUE = \
568  yy_create_buffer( yyin, YY_BUF_SIZE ); \
569  } \
570  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
571  }
572 #define yy_set_bol(at_bol) \
573  { \
574  if ( ! YY_CURRENT_BUFFER ){\
575  yyensure_buffer_stack (); \
576  YY_CURRENT_BUFFER_LVALUE = \
577  yy_create_buffer( yyin, YY_BUF_SIZE ); \
578  } \
579  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
580  }
581 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
582 
583 /* Begin user sect3 */
585 
586 FILE *yyin , *yyout ;
587 
588 typedef int yy_state_type;
589 
590 extern int yylineno;
591 int yylineno = 1;
592 
593 extern char *yytext;
594 #ifdef yytext_ptr
595 #undef yytext_ptr
596 #endif
597 #define yytext_ptr yytext
598 
601 static int yy_get_next_buffer ( void );
602 static void yynoreturn yy_fatal_error ( const char* msg );
603 
604 /* Done after the current pattern has been matched and before the
605  * corresponding action - sets up yytext.
606  */
607 #define YY_DO_BEFORE_ACTION \
608  (yytext_ptr) = yy_bp; \
609  yyleng = (int) (yy_cp - yy_bp); \
610  (yy_hold_char) = *yy_cp; \
611  *yy_cp = '\0'; \
612  (yy_c_buf_p) = yy_cp;
613 #define YY_NUM_RULES 10
614 #define YY_END_OF_BUFFER 11
615 /* This struct is not used in this scanner,
616  but its presence is necessary. */
617 struct yy_trans_info
618  {
621  };
622 static const flex_int16_t yy_accept[34] =
623  { 0,
624  7, 7, 11, 9, 7, 7, 9, 4, 3, 8,
625  4, 4, 4, 7, 9, 7, 0, 5, 4, 3,
626  3, 4, 4, 7, 0, 0, 6, 4, 4, 4,
627  1, 2, 0
628  } ;
629 
630 static const YY_CHAR yy_ec[256] =
631  { 0,
632  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
633  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
634  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
635  1, 2, 1, 4, 5, 1, 1, 1, 1, 1,
636  1, 1, 1, 1, 6, 1, 1, 7, 7, 7,
637  7, 7, 7, 7, 7, 7, 7, 1, 1, 1,
638  8, 1, 1, 1, 9, 10, 10, 10, 11, 12,
639  10, 10, 10, 10, 10, 13, 10, 10, 10, 10,
640  10, 14, 15, 16, 17, 10, 10, 10, 10, 10,
641  1, 1, 1, 1, 10, 1, 10, 10, 10, 10,
642 
643  10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
644  10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
645  10, 10, 1, 1, 1, 1, 1, 1, 1, 1,
646  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
647  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
648  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
649  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
650  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
651  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
652  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
653 
654  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
655  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
656  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
657  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
659  1, 1, 1, 1, 1
660  } ;
661 
662 static const YY_CHAR yy_meta[18] =
663  { 0,
664  1, 1, 1, 1, 1, 2, 2, 1, 2, 2,
665  2, 2, 2, 2, 2, 2, 2
666  } ;
667 
668 static const flex_int16_t yy_base[37] =
669  { 0,
670  0, 16, 50, 51, 17, 20, 45, 41, 40, 51,
671  0, 37, 31, 22, 41, 26, 39, 51, 0, 35,
672  34, 27, 22, 0, 35, 34, 51, 21, 24, 23,
673  0, 0, 51, 29, 24, 31
674  } ;
675 
676 static const flex_int16_t yy_def[37] =
677  { 0,
678  33, 1, 33, 33, 33, 33, 34, 35, 33, 33,
679  35, 35, 35, 33, 36, 33, 34, 33, 35, 35,
680  33, 35, 35, 14, 36, 36, 33, 35, 35, 35,
681  35, 35, 0, 33, 33, 33
682  } ;
683 
684 static const flex_int16_t yy_nxt[69] =
685  { 0,
686  4, 5, 6, 7, 4, 8, 9, 10, 11, 11,
687  11, 12, 11, 11, 11, 13, 11, 14, 16, 16,
688  15, 16, 16, 24, 16, 19, 25, 16, 16, 17,
689  17, 26, 26, 32, 31, 30, 27, 27, 29, 28,
690  21, 20, 18, 27, 23, 22, 21, 20, 18, 33,
691  3, 33, 33, 33, 33, 33, 33, 33, 33, 33,
692  33, 33, 33, 33, 33, 33, 33, 33
693  } ;
694 
695 static const flex_int16_t yy_chk[69] =
696  { 0,
697  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
698  1, 1, 1, 1, 1, 1, 1, 2, 5, 5,
699  2, 6, 6, 14, 14, 35, 14, 16, 16, 34,
700  34, 36, 36, 30, 29, 28, 26, 25, 23, 22,
701  21, 20, 17, 15, 13, 12, 9, 8, 7, 3,
702  33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
703  33, 33, 33, 33, 33, 33, 33, 33
704  } ;
705 
708 
709 extern int yy_flex_debug;
711 
712 /* The intent behind this definition is that it'll catch
713  * any uses of REJECT which flex missed.
714  */
715 #define REJECT reject_used_but_not_detected
716 #define yymore() yymore_used_but_not_detected
717 #define YY_MORE_ADJ 0
718 #define YY_RESTORE_YY_MORE_OFFSET
719 char *yytext;
720 #line 1 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
721 /*
722 
723  $Id: properties.l 23385 2017-06-15 09:11:36Z guillou $
724 
725  Copyright 1989-2016 MINES ParisTech
726 
727  This file is part of PIPS.
728 
729  PIPS is free software: you can redistribute it and/or modify it
730  under the terms of the GNU General Public License as published by
731  the Free Software Foundation, either version 3 of the License, or
732  any later version.
733 
734  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
735  WARRANTY; without even the implied warranty of MERCHANTABILITY or
736  FITNESS FOR A PARTICULAR PURPOSE.
737 
738  See the GNU General Public License for more details.
739 
740  You should have received a copy of the GNU General Public License
741  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
742 
743 */
744 #define YY_NO_INPUT 1
745 #line 28 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
746 #ifdef HAVE_CONFIG_H
747  #include "pips_config.h"
748 #endif
749 /*
750  * - 01/1996: PIPS_PROPERTIESRC added. FC.
751  * - 09/1997: save/load properties in database. FC.
752  */
753 
754 /* The syntax of a property list. */
755 
756 #include <stdio.h>
757 #include <string.h>
758 #include <stdlib.h>
759 
760 #include "genC.h"
761 #include "misc.h" // user_error stuff
762 #include "constants.h" // PROPERTIES_RC & OLD_PROPERTIES_RC
763 #include "naming.h" // get_script_directory_name
764 #include "properties.h"
765 
766 /* FC 2015-07-19
767  * #include "pipsdbm.h"
768  * avoid include cycle pipsdbm -> properties -> pipsdbm
769  * there is still a link cycle.
770  */
771 string db_get_meta_data_directory(void);
772 
773 #define TTRUE 10
774 #define TFALSE 11
775 #define TIDENT 12
776 #define TNUMB 13
777 #define TSTRING 14
778 #define ENDOFLINE 15
779 
780 /* properties are stored in this hash table (string -> property)
781  * for fast accesses.
782  */
783 static hash_table pl = (hash_table) NULL;
784 static bool update_property = false;
785 
786 /* A flag used to avoid infinite recursion in the case of use error here */
787 static size_t pending_errors = false;
788 
789 
790 /* Call pips_user_error and notice it first */ \
791 #define property_user_error(...) do { \
792  pending_errors++; \
793  user_error(__FUNCTION__, __VA_ARGS__); \
794 } while(0)
795 
796 #ifdef FLEX_SCANNER
797 
798 /* We may parse strings or files...
799  */
800 static char * string_to_parse = (char*) 0; /* shared pointer! */
801 
802 #define YY_INPUT(buffer, result, max_size) \
803 { \
804  unsigned int i = 0; \
805  if (string_to_parse) /* we're parsing a string */ \
806  { \
807  while (i<(unsigned int)max_size \
808  && *string_to_parse) \
809  buffer[i++] = *string_to_parse++; \
810  } \
811  else /* it's a file */ \
812  { \
813  int c; \
814  while (i<(unsigned int)max_size \
815  && (c=getc(yyin))!=EOF) \
816  buffer[i++] = (char) c; \
817  } \
818  result = i==0? YY_NULL: i; \
819 }
820 
821 static void parse_properties(bool processing_p);
822 
823 void parse_properties_string(char *s, bool processing_p)
824 {
825  yyrestart(NULL); // In case, lex has been interrupted by an error
826  update_property = true;
827  string_to_parse = s;
828  parse_properties(processing_p);
829  string_to_parse = (char *) 0;
830  update_property = false;
831 }
832 
833 #else /* ATT/POSIX just seem to like parsing yyin... */
834 
835 void parse_properties_string(char *s, bool processing_p)
836 {
837  property_user_error("cannot parse string (%s) without flex\n", s);
838 }
839 
840 #endif /* FLEX_SCANNER */
841 
842 #line 843 "<stdout>"
843 #line 844 "<stdout>"
844 
845 #define INITIAL 0
846 
847 #ifndef YY_NO_UNISTD_H
848 /* Special case for "unistd.h", since it is non-ANSI. We include it way
849  * down here because we want the user's section 1 to have been scanned first.
850  * The user has a chance to override it with an option.
851  */
852 #include <unistd.h>
853 #endif
854 
855 #ifndef YY_EXTRA_TYPE
856 #define YY_EXTRA_TYPE void *
857 #endif
858 
859 static int yy_init_globals ( void );
860 
861 /* Accessor methods to globals.
862  These are made visible to non-reentrant scanners for convenience. */
863 
864 int yylex_destroy ( void );
865 
866 int yyget_debug ( void );
867 
868 void yyset_debug ( int debug_flag );
869 
870 YY_EXTRA_TYPE yyget_extra ( void );
871 
872 void yyset_extra ( YY_EXTRA_TYPE user_defined );
873 
874 FILE *yyget_in ( void );
875 
876 void yyset_in ( FILE * _in_str );
877 
878 FILE *yyget_out ( void );
879 
880 void yyset_out ( FILE * _out_str );
881 
882  int yyget_leng ( void );
883 
884 char *yyget_text ( void );
885 
886 int yyget_lineno ( void );
887 
888 void yyset_lineno ( int _line_number );
889 
890 /* Macros after this point can all be overridden by user definitions in
891  * section 1.
892  */
893 
894 #ifndef YY_SKIP_YYWRAP
895 #ifdef __cplusplus
896 extern "C" int yywrap ( void );
897 #else
898 extern int yywrap ( void );
899 #endif
900 #endif
901 
902 #ifndef YY_NO_UNPUT
903 
904 #endif
905 
906 #ifndef yytext_ptr
907 static void yy_flex_strncpy ( char *, const char *, int );
908 #endif
909 
910 #ifdef YY_NEED_STRLEN
911 static int yy_flex_strlen ( const char * );
912 #endif
913 
914 #ifndef YY_NO_INPUT
915 #ifdef __cplusplus
916 static int yyinput ( void );
917 #else
918 static int input ( void );
919 #endif
920 
921 #endif
922 
923 /* Amount of stuff to slurp up with each read. */
924 #ifndef YY_READ_BUF_SIZE
925 #ifdef __ia64__
926 /* On IA-64, the buffer size is 16k, not 8k */
927 #define YY_READ_BUF_SIZE 16384
928 #else
929 #define YY_READ_BUF_SIZE 8192
930 #endif /* __ia64__ */
931 #endif
932 
933 /* Copy whatever the last rule matched to the standard output. */
934 #ifndef ECHO
935 /* This used to be an fputs(), but since the string might contain NUL's,
936  * we now use fwrite().
937  */
938 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
939 #endif
940 
941 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
942  * is returned in "result".
943  */
944 #ifndef YY_INPUT
945 #define YY_INPUT(buf,result,max_size) \
946  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
947  { \
948  int c = '*'; \
949  int n; \
950  for ( n = 0; n < max_size && \
951  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
952  buf[n] = (char) c; \
953  if ( c == '\n' ) \
954  buf[n++] = (char) c; \
955  if ( c == EOF && ferror( yyin ) ) \
956  YY_FATAL_ERROR( "input in flex scanner failed" ); \
957  result = n; \
958  } \
959  else \
960  { \
961  errno=0; \
962  while ( (result = (int) fread(buf, 1, (size_t) max_size, yyin)) == 0 && ferror(yyin)) \
963  { \
964  if( errno != EINTR) \
965  { \
966  YY_FATAL_ERROR( "input in flex scanner failed" ); \
967  break; \
968  } \
969  errno=0; \
970  clearerr(yyin); \
971  } \
972  }\
973 \
974 
975 #endif
976 
977 /* No semi-colon after return; correct usage is to write "yyterminate();" -
978  * we don't want an extra ';' after the "return" because that will cause
979  * some compilers to complain about unreachable statements.
980  */
981 #ifndef yyterminate
982 #define yyterminate() return YY_NULL
983 #endif
984 
985 /* Number of entries by which start-condition stack grows. */
986 #ifndef YY_START_STACK_INCR
987 #define YY_START_STACK_INCR 25
988 #endif
989 
990 /* Report a fatal error. */
991 #ifndef YY_FATAL_ERROR
992 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
993 #endif
994 
995 /* end tables serialization structures and prototypes */
996 
997 /* Default declaration of generated scanner - a define so the user can
998  * easily add parameters.
999  */
1000 #ifndef YY_DECL
1001 #define YY_DECL_IS_OURS 1
1002 
1003 extern int yylex (void);
1004 
1005 #define YY_DECL int yylex (void)
1006 #endif /* !YY_DECL */
1007 
1008 /* Code executed at the beginning of each rule, after yytext and yyleng
1009  * have been set up.
1010  */
1011 #ifndef YY_USER_ACTION
1012 #define YY_USER_ACTION
1013 #endif
1014 
1015 /* Code executed at the end of each rule. */
1016 #ifndef YY_BREAK
1017 #define YY_BREAK /*LINTED*/break;
1018 #endif
1019 
1020 #define YY_RULE_SETUP \
1021  if ( yyleng > 0 ) \
1022  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1023  (yytext[yyleng - 1] == '\n'); \
1024  YY_USER_ACTION
1025 
1026 /** The main scanner function which does all the work.
1027  */
1029 {
1030  yy_state_type yy_current_state;
1031  char *yy_cp, *yy_bp;
1032  int yy_act;
1033 
1034  if ( !(yy_init) )
1035  {
1036  (yy_init) = 1;
1037 
1038 #ifdef YY_USER_INIT
1039  YY_USER_INIT;
1040 #endif
1041 
1042  if ( ! (yy_start) )
1043  (yy_start) = 1; /* first start state */
1044 
1045  if ( ! yyin )
1046  yyin = stdin;
1047 
1048  if ( ! yyout )
1049  yyout = stdout;
1050 
1051  if ( ! YY_CURRENT_BUFFER ) {
1055  }
1056 
1058  }
1059 
1060  {
1061 #line 126 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1062 
1063 #line 1064 "<stdout>"
1064 
1065  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1066  {
1067  yy_cp = (yy_c_buf_p);
1068 
1069  /* Support of yytext. */
1070  *yy_cp = (yy_hold_char);
1071 
1072  /* yy_bp points to the position in yy_ch_buf of the start of
1073  * the current run.
1074  */
1075  yy_bp = yy_cp;
1076 
1077  yy_current_state = (yy_start);
1078  yy_current_state += YY_AT_BOL();
1079 yy_match:
1080  do
1081  {
1082  YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1083  if ( yy_accept[yy_current_state] )
1084  {
1085  (yy_last_accepting_state) = yy_current_state;
1087  }
1088  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1089  {
1090  yy_current_state = (int) yy_def[yy_current_state];
1091  if ( yy_current_state >= 34 )
1092  yy_c = yy_meta[yy_c];
1093  }
1094  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1095  ++yy_cp;
1096  }
1097  while ( yy_base[yy_current_state] != 51 );
1098 
1099 yy_find_action:
1100  yy_act = yy_accept[yy_current_state];
1101  if ( yy_act == 0 )
1102  { /* have to back up */
1104  yy_current_state = (yy_last_accepting_state);
1105  yy_act = yy_accept[yy_current_state];
1106  }
1107 
1109 
1110 do_action: /* This label is used only to access EOF actions. */
1111 
1112  switch ( yy_act )
1113  { /* beginning of action switch */
1114  case 0: /* must back up */
1115  /* undo the effects of YY_DO_BEFORE_ACTION */
1116  *yy_cp = (yy_hold_char);
1118  yy_current_state = (yy_last_accepting_state);
1119  goto yy_find_action;
1120 
1121 case 1:
1123 #line 127 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1124 { return(TTRUE); }
1125  YY_BREAK
1126 case 2:
1128 #line 128 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1129 { return(TFALSE); }
1130  YY_BREAK
1131 case 3:
1133 #line 129 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1134 { return(TNUMB); }
1135  YY_BREAK
1136 case 4:
1138 #line 130 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1139 { return(TIDENT); }
1140  YY_BREAK
1141 case 5:
1142 /* rule 5 can match eol */
1144 #line 131 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1145 { return(TSTRING); }
1146  YY_BREAK
1147 case 6:
1148 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1149 (yy_c_buf_p) = yy_cp -= 1;
1150 YY_DO_BEFORE_ACTION; /* set up yytext again */
1152 #line 132 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1153 { /* comments are skipped. */ }
1154  YY_BREAK
1155 case 7:
1156 /* rule 7 can match eol */
1158 #line 133 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1159 { /* blanks are skipped. */ }
1160  YY_BREAK
1161 case 8:
1163 #line 134 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1164 { /* ignore =: foo=bla same as foo bla */ }
1165  YY_BREAK
1166 case 9:
1168 #line 135 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1169 { fprintf(stderr, "skipping unexpected char %c (%d)\n",
1170  *yytext, *yytext);
1171  }
1172  YY_BREAK
1173 case 10:
1175 #line 138 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
1176 ECHO;
1177  YY_BREAK
1178 #line 1179 "<stdout>"
1179 case YY_STATE_EOF(INITIAL):
1180  yyterminate();
1181 
1182  case YY_END_OF_BUFFER:
1183  {
1184  /* Amount of text matched not including the EOB char. */
1185  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1186 
1187  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1188  *yy_cp = (yy_hold_char);
1190 
1191  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1192  {
1193  /* We're scanning a new file or input source. It's
1194  * possible that this happened because the user
1195  * just pointed yyin at a new source and called
1196  * yylex(). If so, then we have to assure
1197  * consistency between YY_CURRENT_BUFFER and our
1198  * globals. Here is the right place to do so, because
1199  * this is the first action (other than possibly a
1200  * back-up) that will match for the new input source.
1201  */
1202  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1203  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1204  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1205  }
1206 
1207  /* Note that here we test for yy_c_buf_p "<=" to the position
1208  * of the first EOB in the buffer, since yy_c_buf_p will
1209  * already have been incremented past the NUL character
1210  * (since all states make transitions on EOB to the
1211  * end-of-buffer state). Contrast this with the test
1212  * in input().
1213  */
1214  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1215  { /* This was really a NUL. */
1216  yy_state_type yy_next_state;
1217 
1218  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1219 
1220  yy_current_state = yy_get_previous_state( );
1221 
1222  /* Okay, we're now positioned to make the NUL
1223  * transition. We couldn't have
1224  * yy_get_previous_state() go ahead and do it
1225  * for us because it doesn't know how to deal
1226  * with the possibility of jamming (and we don't
1227  * want to build jamming into it because then it
1228  * will run more slowly).
1229  */
1230 
1231  yy_next_state = yy_try_NUL_trans( yy_current_state );
1232 
1234 
1235  if ( yy_next_state )
1236  {
1237  /* Consume the NUL. */
1238  yy_cp = ++(yy_c_buf_p);
1239  yy_current_state = yy_next_state;
1240  goto yy_match;
1241  }
1242 
1243  else
1244  {
1245  yy_cp = (yy_c_buf_p);
1246  goto yy_find_action;
1247  }
1248  }
1249 
1250  else switch ( yy_get_next_buffer( ) )
1251  {
1252  case EOB_ACT_END_OF_FILE:
1253  {
1255 
1256  if ( yywrap( ) )
1257  {
1258  /* Note: because we've taken care in
1259  * yy_get_next_buffer() to have set up
1260  * yytext, we can now set up
1261  * yy_c_buf_p so that if some total
1262  * hoser (like flex itself) wants to
1263  * call the scanner after we return the
1264  * YY_NULL, it'll still work - another
1265  * YY_NULL will get returned.
1266  */
1268 
1270  goto do_action;
1271  }
1272 
1273  else
1274  {
1275  if ( ! (yy_did_buffer_switch_on_eof) )
1276  YY_NEW_FILE;
1277  }
1278  break;
1279  }
1280 
1281  case EOB_ACT_CONTINUE_SCAN:
1282  (yy_c_buf_p) =
1283  (yytext_ptr) + yy_amount_of_matched_text;
1284 
1285  yy_current_state = yy_get_previous_state( );
1286 
1287  yy_cp = (yy_c_buf_p);
1289  goto yy_match;
1290 
1291  case EOB_ACT_LAST_MATCH:
1292  (yy_c_buf_p) =
1293  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1294 
1295  yy_current_state = yy_get_previous_state( );
1296 
1297  yy_cp = (yy_c_buf_p);
1299  goto yy_find_action;
1300  }
1301  break;
1302  }
1303 
1304  default:
1306  "fatal flex scanner internal error--no action found" );
1307  } /* end of action switch */
1308  } /* end of scanning one token */
1309  } /* end of user's declarations */
1310 } /* end of yylex */
1311 
1312 /* yy_get_next_buffer - try to read in a new buffer
1313  *
1314  * Returns a code representing an action:
1315  * EOB_ACT_LAST_MATCH -
1316  * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1317  * EOB_ACT_END_OF_FILE - end of file
1318  */
1319 static int yy_get_next_buffer (void)
1320 {
1321  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1322  char *source = (yytext_ptr);
1323  int number_to_move, i;
1324  int ret_val;
1325 
1326  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1328  "fatal flex scanner internal error--end of buffer missed" );
1329 
1330  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1331  { /* Don't try to fill the buffer, so this is an EOF. */
1332  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1333  {
1334  /* We matched a single character, the EOB, so
1335  * treat this as a final EOF.
1336  */
1337  return EOB_ACT_END_OF_FILE;
1338  }
1339 
1340  else
1341  {
1342  /* We matched some text prior to the EOB, first
1343  * process it.
1344  */
1345  return EOB_ACT_LAST_MATCH;
1346  }
1347  }
1348 
1349  /* Try to read more data. */
1350 
1351  /* First move last chars to start of buffer. */
1352  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1353 
1354  for ( i = 0; i < number_to_move; ++i )
1355  *(dest++) = *(source++);
1356 
1357  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1358  /* don't do the read, it's not guaranteed to return an EOF,
1359  * just force an EOF
1360  */
1361  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1362 
1363  else
1364  {
1365  int num_to_read =
1366  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1367 
1368  while ( num_to_read <= 0 )
1369  { /* Not enough room in the buffer - grow it. */
1370 
1371  /* just a shorter name for the current buffer */
1373 
1374  int yy_c_buf_p_offset =
1375  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1376 
1377  if ( b->yy_is_our_buffer )
1378  {
1379  int new_size = b->yy_buf_size * 2;
1380 
1381  if ( new_size <= 0 )
1382  b->yy_buf_size += b->yy_buf_size / 8;
1383  else
1384  b->yy_buf_size *= 2;
1385 
1386  b->yy_ch_buf = (char *)
1387  /* Include room in for 2 EOB chars. */
1388  yyrealloc( (void *) b->yy_ch_buf,
1389  (size_t) (b->yy_buf_size + 2) );
1390  }
1391  else
1392  /* Can't grow it, we don't own it. */
1393  b->yy_ch_buf = NULL;
1394 
1395  if ( ! b->yy_ch_buf )
1397  "fatal error - scanner input buffer overflow" );
1398 
1399  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1400 
1401  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1402  number_to_move - 1;
1403 
1404  }
1405 
1406  if ( num_to_read > YY_READ_BUF_SIZE )
1407  num_to_read = YY_READ_BUF_SIZE;
1408 
1409  /* Read in more data. */
1410  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1411  (yy_n_chars), num_to_read );
1412 
1413  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1414  }
1415 
1416  if ( (yy_n_chars) == 0 )
1417  {
1418  if ( number_to_move == YY_MORE_ADJ )
1419  {
1420  ret_val = EOB_ACT_END_OF_FILE;
1421  yyrestart( yyin );
1422  }
1423 
1424  else
1425  {
1426  ret_val = EOB_ACT_LAST_MATCH;
1427  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1429  }
1430  }
1431 
1432  else
1433  ret_val = EOB_ACT_CONTINUE_SCAN;
1434 
1435  if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1436  /* Extend the array by 50%, plus the number we really need. */
1437  int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1438  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1439  (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (size_t) new_size );
1440  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1441  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1442  /* "- 2" to take care of EOB's */
1443  YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1444  }
1445 
1446  (yy_n_chars) += number_to_move;
1449 
1450  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1451 
1452  return ret_val;
1453 }
1454 
1455 /* yy_get_previous_state - get the state just before the EOB char was reached */
1456 
1457  static yy_state_type yy_get_previous_state (void)
1458 {
1459  yy_state_type yy_current_state;
1460  char *yy_cp;
1461 
1462  yy_current_state = (yy_start);
1463  yy_current_state += YY_AT_BOL();
1464 
1465  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1466  {
1467  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1468  if ( yy_accept[yy_current_state] )
1469  {
1470  (yy_last_accepting_state) = yy_current_state;
1472  }
1473  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1474  {
1475  yy_current_state = (int) yy_def[yy_current_state];
1476  if ( yy_current_state >= 34 )
1477  yy_c = yy_meta[yy_c];
1478  }
1479  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1480  }
1481 
1482  return yy_current_state;
1483 }
1484 
1485 /* yy_try_NUL_trans - try to make a transition on the NUL character
1486  *
1487  * synopsis
1488  * next_state = yy_try_NUL_trans( current_state );
1489  */
1490  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1491 {
1492  int yy_is_jam;
1493  char *yy_cp = (yy_c_buf_p);
1494 
1495  YY_CHAR yy_c = 1;
1496  if ( yy_accept[yy_current_state] )
1497  {
1498  (yy_last_accepting_state) = yy_current_state;
1500  }
1501  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1502  {
1503  yy_current_state = (int) yy_def[yy_current_state];
1504  if ( yy_current_state >= 34 )
1505  yy_c = yy_meta[yy_c];
1506  }
1507  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1508  yy_is_jam = (yy_current_state == 33);
1509 
1510  return yy_is_jam ? 0 : yy_current_state;
1511 }
1512 
1513 #ifndef YY_NO_UNPUT
1514 
1515 #endif
1516 
1517 #ifndef YY_NO_INPUT
1518 #ifdef __cplusplus
1519  static int yyinput (void)
1520 #else
1521  static int input (void)
1522 #endif
1523 
1524 {
1525  int c;
1526 
1527  *(yy_c_buf_p) = (yy_hold_char);
1528 
1529  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1530  {
1531  /* yy_c_buf_p now points to the character we want to return.
1532  * If this occurs *before* the EOB characters, then it's a
1533  * valid NUL; if not, then we've hit the end of the buffer.
1534  */
1535  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1536  /* This was really a NUL. */
1537  *(yy_c_buf_p) = '\0';
1538 
1539  else
1540  { /* need more input */
1541  int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1542  ++(yy_c_buf_p);
1543 
1544  switch ( yy_get_next_buffer( ) )
1545  {
1546  case EOB_ACT_LAST_MATCH:
1547  /* This happens because yy_g_n_b()
1548  * sees that we've accumulated a
1549  * token and flags that we need to
1550  * try matching the token before
1551  * proceeding. But for input(),
1552  * there's no matching to consider.
1553  * So convert the EOB_ACT_LAST_MATCH
1554  * to EOB_ACT_END_OF_FILE.
1555  */
1556 
1557  /* Reset buffer status. */
1558  yyrestart( yyin );
1559 
1560  /*FALLTHROUGH*/
1561 
1562  case EOB_ACT_END_OF_FILE:
1563  {
1564  if ( yywrap( ) )
1565  return 0;
1566 
1567  if ( ! (yy_did_buffer_switch_on_eof) )
1568  YY_NEW_FILE;
1569 #ifdef __cplusplus
1570  return yyinput();
1571 #else
1572  return input();
1573 #endif
1574  }
1575 
1576  case EOB_ACT_CONTINUE_SCAN:
1577  (yy_c_buf_p) = (yytext_ptr) + offset;
1578  break;
1579  }
1580  }
1581  }
1582 
1583  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1584  *(yy_c_buf_p) = '\0'; /* preserve yytext */
1585  (yy_hold_char) = *++(yy_c_buf_p);
1586 
1587  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
1588 
1589  return c;
1590 }
1591 #endif /* ifndef YY_NO_INPUT */
1592 
1593 /** Immediately switch to a different input stream.
1594  * @param input_file A readable stream.
1595  *
1596  * @note This function does not reset the start condition to @c INITIAL .
1597  */
1598  void yyrestart (FILE * input_file )
1599 {
1600 
1601  if ( ! YY_CURRENT_BUFFER ){
1605  }
1606 
1607  yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1609 }
1610 
1611 /** Switch to a different input buffer.
1612  * @param new_buffer The new input buffer.
1613  *
1614  */
1615  void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1616 {
1617 
1618  /* TODO. We should be able to replace this entire function body
1619  * with
1620  * yypop_buffer_state();
1621  * yypush_buffer_state(new_buffer);
1622  */
1624  if ( YY_CURRENT_BUFFER == new_buffer )
1625  return;
1626 
1627  if ( YY_CURRENT_BUFFER )
1628  {
1629  /* Flush out information for old buffer. */
1630  *(yy_c_buf_p) = (yy_hold_char);
1631  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1632  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1633  }
1634 
1635  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1637 
1638  /* We don't actually know whether we did this switch during
1639  * EOF (yywrap()) processing, but the only time this flag
1640  * is looked at is after yywrap() is called, so it's safe
1641  * to go ahead and always set it.
1642  */
1644 }
1645 
1646 static void yy_load_buffer_state (void)
1647 {
1648  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1649  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1650  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1651  (yy_hold_char) = *(yy_c_buf_p);
1652 }
1653 
1654 /** Allocate and initialize an input buffer state.
1655  * @param file A readable stream.
1656  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1657  *
1658  * @return the allocated buffer state.
1659  */
1660  YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1661 {
1662  YY_BUFFER_STATE b;
1663 
1664  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1665  if ( ! b )
1666  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1667 
1668  b->yy_buf_size = size;
1669 
1670  /* yy_ch_buf has to be 2 characters longer than the size given because
1671  * we need to put in 2 end-of-buffer characters.
1672  */
1673  b->yy_ch_buf = (char *) yyalloc( (size_t) (b->yy_buf_size + 2) );
1674  if ( ! b->yy_ch_buf )
1675  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1676 
1677  b->yy_is_our_buffer = 1;
1678 
1679  yy_init_buffer( b, file );
1680 
1681  return b;
1682 }
1683 
1684 /** Destroy the buffer.
1685  * @param b a buffer created with yy_create_buffer()
1686  *
1687  */
1689 {
1690 
1691  if ( ! b )
1692  return;
1693 
1694  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1696 
1697  if ( b->yy_is_our_buffer )
1698  yyfree( (void *) b->yy_ch_buf );
1699 
1700  yyfree( (void *) b );
1701 }
1702 
1703 /* Initializes or reinitializes a buffer.
1704  * This function is sometimes called more than once on the same buffer,
1705  * such as during a yyrestart() or at EOF.
1706  */
1707  static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1708 
1709 {
1710  int oerrno = errno;
1711 
1712  yy_flush_buffer( b );
1713 
1714  b->yy_input_file = file;
1715  b->yy_fill_buffer = 1;
1716 
1717  /* If b is the current buffer, then yy_init_buffer was _probably_
1718  * called from yyrestart() or through yy_get_next_buffer.
1719  * In that case, we don't want to reset the lineno or column.
1720  */
1721  if (b != YY_CURRENT_BUFFER){
1722  b->yy_bs_lineno = 1;
1723  b->yy_bs_column = 0;
1724  }
1725 
1726  b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1727 
1728  errno = oerrno;
1729 }
1730 
1731 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1732  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1733  *
1734  */
1736 {
1737  if ( ! b )
1738  return;
1739 
1740  b->yy_n_chars = 0;
1741 
1742  /* We always need two end-of-buffer characters. The first causes
1743  * a transition to the end-of-buffer state. The second causes
1744  * a jam in that state.
1745  */
1748 
1749  b->yy_buf_pos = &b->yy_ch_buf[0];
1750 
1751  b->yy_at_bol = 1;
1753 
1754  if ( b == YY_CURRENT_BUFFER )
1756 }
1757 
1758 /** Pushes the new state onto the stack. The new state becomes
1759  * the current state. This function will allocate the stack
1760  * if necessary.
1761  * @param new_buffer The new state.
1762  *
1763  */
1764 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1765 {
1766  if (new_buffer == NULL)
1767  return;
1768 
1770 
1771  /* This block is copied from yy_switch_to_buffer. */
1772  if ( YY_CURRENT_BUFFER )
1773  {
1774  /* Flush out information for old buffer. */
1775  *(yy_c_buf_p) = (yy_hold_char);
1776  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1777  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1778  }
1779 
1780  /* Only push if top exists. Otherwise, replace top. */
1781  if (YY_CURRENT_BUFFER)
1782  (yy_buffer_stack_top)++;
1783  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1784 
1785  /* copied from yy_switch_to_buffer. */
1788 }
1789 
1790 /** Removes and deletes the top of the stack, if present.
1791  * The next element becomes the new top.
1792  *
1793  */
1794 void yypop_buffer_state (void)
1795 {
1796  if (!YY_CURRENT_BUFFER)
1797  return;
1798 
1800  YY_CURRENT_BUFFER_LVALUE = NULL;
1801  if ((yy_buffer_stack_top) > 0)
1802  --(yy_buffer_stack_top);
1803 
1804  if (YY_CURRENT_BUFFER) {
1807  }
1808 }
1809 
1810 /* Allocates the stack if it does not exist.
1811  * Guarantees space for at least one push.
1812  */
1813 static void yyensure_buffer_stack (void)
1814 {
1815  size_t num_to_alloc;
1816 
1817  if (!(yy_buffer_stack)) {
1818 
1819  /* First allocation is just for 2 elements, since we don't know if this
1820  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1821  * immediate realloc on the next call.
1822  */
1823  num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1825  (num_to_alloc * sizeof(struct yy_buffer_state*)
1826  );
1827  if ( ! (yy_buffer_stack) )
1828  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1829 
1830  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1831 
1832  (yy_buffer_stack_max) = num_to_alloc;
1833  (yy_buffer_stack_top) = 0;
1834  return;
1835  }
1836 
1837  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1838 
1839  /* Increase the buffer to prepare for a possible push. */
1840  size_t grow_size = 8 /* arbitrary grow size */;
1841 
1842  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1844  ((yy_buffer_stack),
1845  num_to_alloc * sizeof(struct yy_buffer_state*)
1846  );
1847  if ( ! (yy_buffer_stack) )
1848  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1849 
1850  /* zero only the new slots.*/
1851  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1852  (yy_buffer_stack_max) = num_to_alloc;
1853  }
1854 }
1855 
1856 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1857  * @param base the character buffer
1858  * @param size the size in bytes of the character buffer
1859  *
1860  * @return the newly allocated buffer state object.
1861  */
1862 YY_BUFFER_STATE yy_scan_buffer (char * base, size_t size )
1863 {
1864  YY_BUFFER_STATE b;
1865 
1866  if ( size < 2 ||
1867  base[size-2] != YY_END_OF_BUFFER_CHAR ||
1868  base[size-1] != YY_END_OF_BUFFER_CHAR )
1869  /* They forgot to leave room for the EOB's. */
1870  return NULL;
1871 
1872  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1873  if ( ! b )
1874  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1875 
1876  b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
1877  b->yy_buf_pos = b->yy_ch_buf = base;
1878  b->yy_is_our_buffer = 0;
1879  b->yy_input_file = NULL;
1880  b->yy_n_chars = b->yy_buf_size;
1881  b->yy_is_interactive = 0;
1882  b->yy_at_bol = 1;
1883  b->yy_fill_buffer = 0;
1885 
1886  yy_switch_to_buffer( b );
1887 
1888  return b;
1889 }
1890 
1891 /** Setup the input buffer state to scan a string. The next call to yylex() will
1892  * scan from a @e copy of @a str.
1893  * @param yystr a NUL-terminated string to scan
1894  *
1895  * @return the newly allocated buffer state object.
1896  * @note If you want to scan bytes that may contain NUL values, then use
1897  * yy_scan_bytes() instead.
1898  */
1899 YY_BUFFER_STATE yy_scan_string (const char * yystr )
1900 {
1901 
1902  return yy_scan_bytes( yystr, (int) strlen(yystr) );
1903 }
1904 
1905 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1906  * scan from a @e copy of @a bytes.
1907  * @param yybytes the byte buffer to scan
1908  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1909  *
1910  * @return the newly allocated buffer state object.
1911  */
1912 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
1913 {
1914  YY_BUFFER_STATE b;
1915  char *buf;
1916  size_t n;
1917  int i;
1918 
1919  /* Get memory for full buffer, including space for trailing EOB's. */
1920  n = (size_t) (_yybytes_len + 2);
1921  buf = (char *) yyalloc( n );
1922  if ( ! buf )
1923  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1924 
1925  for ( i = 0; i < _yybytes_len; ++i )
1926  buf[i] = yybytes[i];
1927 
1928  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1929 
1930  b = yy_scan_buffer( buf, n );
1931  if ( ! b )
1932  YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1933 
1934  /* It's okay to grow etc. this buffer, and we should throw it
1935  * away when we're done.
1936  */
1937  b->yy_is_our_buffer = 1;
1938 
1939  return b;
1940 }
1941 
1942 #ifndef YY_EXIT_FAILURE
1943 #define YY_EXIT_FAILURE 2
1944 #endif
1945 
1946 static void yynoreturn yy_fatal_error (const char* msg )
1947 {
1948  fprintf( stderr, "%s\n", msg );
1949  exit( YY_EXIT_FAILURE );
1950 }
1951 
1952 /* Redefine yyless() so it works in section 3 code. */
1953 
1954 #undef yyless
1955 #define yyless(n) \
1956  do \
1957  { \
1958  /* Undo effects of setting up yytext. */ \
1959  int yyless_macro_arg = (n); \
1960  YY_LESS_LINENO(yyless_macro_arg);\
1961  yytext[yyleng] = (yy_hold_char); \
1962  (yy_c_buf_p) = yytext + yyless_macro_arg; \
1963  (yy_hold_char) = *(yy_c_buf_p); \
1964  *(yy_c_buf_p) = '\0'; \
1965  yyleng = yyless_macro_arg; \
1966  } \
1967  while ( 0 )
1968 
1969 /* Accessor methods (get/set functions) to struct members. */
1970 
1971 /** Get the current line number.
1972  *
1973  */
1974 int yyget_lineno (void)
1975 {
1976 
1977  return yylineno;
1978 }
1979 
1980 /** Get the input stream.
1981  *
1982  */
1983 FILE *yyget_in (void)
1984 {
1985  return yyin;
1986 }
1987 
1988 /** Get the output stream.
1989  *
1990  */
1991 FILE *yyget_out (void)
1992 {
1993  return yyout;
1994 }
1995 
1996 /** Get the length of the current token.
1997  *
1998  */
1999 int yyget_leng (void)
2000 {
2001  return yyleng;
2002 }
2003 
2004 /** Get the current token.
2005  *
2006  */
2007 
2008 char *yyget_text (void)
2009 {
2010  return yytext;
2011 }
2012 
2013 /** Set the current line number.
2014  * @param _line_number line number
2015  *
2016  */
2017 void yyset_lineno (int _line_number )
2018 {
2019 
2020  yylineno = _line_number;
2021 }
2022 
2023 /** Set the input stream. This does not discard the current
2024  * input buffer.
2025  * @param _in_str A readable stream.
2026  *
2027  * @see yy_switch_to_buffer
2028  */
2029 void yyset_in (FILE * _in_str )
2030 {
2031  yyin = _in_str ;
2032 }
2033 
2034 void yyset_out (FILE * _out_str )
2035 {
2036  yyout = _out_str ;
2037 }
2038 
2039 int yyget_debug (void)
2040 {
2041  return yy_flex_debug;
2042 }
2043 
2044 void yyset_debug (int _bdebug )
2045 {
2046  yy_flex_debug = _bdebug ;
2047 }
2048 
2049 static int yy_init_globals (void)
2050 {
2051  /* Initialization is the same as for the non-reentrant scanner.
2052  * This function is called from yylex_destroy(), so don't allocate here.
2053  */
2054 
2055  (yy_buffer_stack) = NULL;
2056  (yy_buffer_stack_top) = 0;
2057  (yy_buffer_stack_max) = 0;
2058  (yy_c_buf_p) = NULL;
2059  (yy_init) = 0;
2060  (yy_start) = 0;
2061 
2062 /* Defined in main.c */
2063 #ifdef YY_STDINIT
2064  yyin = stdin;
2065  yyout = stdout;
2066 #else
2067  yyin = NULL;
2068  yyout = NULL;
2069 #endif
2070 
2071  /* For future reference: Set errno on error, since we are called by
2072  * yylex_init()
2073  */
2074  return 0;
2075 }
2076 
2077 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2078 int yylex_destroy (void)
2079 {
2080 
2081  /* Pop the buffer stack, destroying each element. */
2082  while(YY_CURRENT_BUFFER){
2084  YY_CURRENT_BUFFER_LVALUE = NULL;
2086  }
2087 
2088  /* Destroy the stack itself. */
2089  yyfree((yy_buffer_stack) );
2090  (yy_buffer_stack) = NULL;
2091 
2092  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2093  * yylex() is called, initialization will occur. */
2094  yy_init_globals( );
2095 
2096  return 0;
2097 }
2098 
2099 /*
2100  * Internal utility routines.
2101  */
2102 
2103 #ifndef yytext_ptr
2104 static void yy_flex_strncpy (char* s1, const char * s2, int n )
2105 {
2106 
2107  int i;
2108  for ( i = 0; i < n; ++i )
2109  s1[i] = s2[i];
2110 }
2111 #endif
2112 
2113 #ifdef YY_NEED_STRLEN
2114 static int yy_flex_strlen (const char * s )
2115 {
2116  int n;
2117  for ( n = 0; s[n]; ++n )
2118  ;
2119 
2120  return n;
2121 }
2122 #endif
2123 
2124 void *yyalloc (size_t size )
2125 {
2126  return malloc(size);
2127 }
2128 
2129 void *yyrealloc (void * ptr, size_t size )
2130 {
2131 
2132  /* The cast to (char *) in the following accommodates both
2133  * implementations that use char* generic pointers, and those
2134  * that use void* generic pointers. It works with the latter
2135  * because both ANSI C and C++ allow castless assignment from
2136  * any pointer type to void*, and deal with argument conversions
2137  * as though doing an assignment.
2138  */
2139  return realloc(ptr, size);
2140 }
2141 
2142 void yyfree (void * ptr )
2143 {
2144  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2145 }
2146 
2147 #define YYTABLES_NAME "yytables"
2148 
2149 #line 138 "/home/fabien/NIGHT/prod/pips/src/Libs/properties/properties.l"
2150 
2151 
2152 int yywrap(void)
2153 { return 1;}
2154 
2155 static bool property_equal_p(property p1, property p2)
2156 {
2157  bool equal_p = (property_tag(p1)==property_tag(p2));
2158 
2159  if(equal_p) {
2160  switch(property_tag(p1)) {
2161  case is_property_int:
2162  equal_p = (property_int(p1)==property_int(p2));
2163  break;
2164  case is_property_bool:
2165  equal_p = (property_bool(p1)==property_bool(p2));
2166  break;
2167  case is_property_string:
2168  equal_p = (strcmp(property_string(p1),property_string(p2))==0);
2169  break;
2170  default:
2171  property_user_error("illegal tag %d\n", property_tag(p1));
2172  }
2173  }
2174 
2175  return equal_p;
2176 }
2177 
2178 static string property_tag_to_string(tag t)
2179 {
2180  switch (t) {
2181  case is_property_int: return "int";
2182  case is_property_bool: return "bool";
2183  case is_property_string: return "string";
2184  default: return "UNKNOW property type";
2185  }
2186 }
2187 
2188 static void parse_properties(bool processing_p)
2189 {
2190  int tok;
2191  property pr = property_undefined, opr;
2192 
2193  if (!pl) pl = hash_table_make(hash_string, 0); /* lazy init */
2194 
2195  while ((tok = yylex()))
2196  {
2197  string n;
2198 
2199  if (tok != TIDENT) {
2200  property_user_error("Syntax error: ident expected, got %d for -%s-.\n", tok, yytext);
2201  return;
2202  }
2203 
2204  n = strdup(yytext);
2205 
2207  // property_user_error("Unknown property \"%s\" to update\n", n);
2208  pending_errors++; \
2209  user_error(__FUNCTION__, "Unknown property \"%s\" to update\n", n);
2210  free(n);
2211  return;
2212  }
2213 
2214  switch (tok = yylex())
2215  {
2216  case TTRUE:
2217  pr = make_property_bool(true);
2218  break;
2219  case TFALSE:
2220  pr = make_property_bool(false);
2221  break;
2222  case TNUMB:
2223  pr = make_property_int(atol(yytext));
2224  break;
2225  case TSTRING: {
2226  /* GO: We need to free(s) so the skeep now
2227  the quote and do not use s+1 anymore*/
2228  char *s = strdup(yytext + 1);
2229  char *q = strrchr(s, '"'); // "
2230  if (q == NULL) {
2231  property_user_error("Ill. string : \"%s\".\n", yytext);
2232  free(n);
2233  return;
2234  }
2235  *q = '\0';
2236  pr = make_property_string(s);
2237  break;
2238  }
2239  default:
2240  property_user_error("Unknown value \"%s\" for property \"%s\". Check the tpips script that is used.\n", yytext, n);
2241  return;
2242  }
2243 
2244  if ((opr = (property) hash_get(pl, n)) !=
2246  {
2247  if (property_tag(opr)!=property_tag(pr))
2248  {
2249  property_user_error("cannot change type from %s to %s "
2250  "when updating property %s\n",
2251  property_tag_to_string(property_tag(opr)),
2252  property_tag_to_string(property_tag(pr)),
2253  n);
2254  free_property(pr);
2255  }
2256  else if(processing_p
2257  && strcmp(n, "CONSISTENCY_ENFORCED_P")==0
2258  && !property_equal_p(pr, opr))
2259  {
2260  property_user_error("Property %s cannot be redefined when "
2261  "processing is started because consistenty "
2262  "can no longer be enforced. Move the set "
2263  "property command earlier in the compilaton "
2264  "process.\n", n);
2265  free_property(pr);
2266  }
2267  else
2268  {
2269  hash_update(pl, n, (char *) pr);
2270  if(!property_equal_p(pr, opr))
2271  pips_debug(1,"property %s redefined\n", n);
2272  free_property(opr);
2273  }
2274  }
2275  else
2276  hash_put(pl, n, (char *) pr);
2277  free(n);
2278  }
2279 }
2280 
2281 static void parse_properties_file(FILE * fd)
2282 {
2283  string_to_parse = NULL;
2284  update_property = false; // FI: Tpips/property.tpips, to survive
2285  // the open after the close
2286  yyrestart(fd);
2287  // FI: we assume no PIPS database is open when parsing a property file
2288  parse_properties(false);
2289 }
2290 
2291 static void read_properties(void)
2292 {
2293  _UNUSED_ void * ignore_me = (void*) prop_get_leng;
2294 
2295  // avoid unused function warning...
2296  FILE * old_prop = NULL;
2297 
2298  if (pl != (hash_table) NULL)
2299  return;
2300  /* else */
2302  update_property = false;
2303 
2304  /* Default properties:
2305  *
2306  * if the variable PIPS_PROPERTIESRC is defined in the environment,
2307  * it contains the absolute property file name to use;
2308  *
2309  * else: ${PIPS_ROOT}/etc/properties.rc
2310  */
2311  if( (prop_in = fopen_config(PROPERTIES_RC,NULL,"PIPS_PROPERTIESRC")) )
2312  {
2313  parse_properties_file(prop_in);
2314  fclose(prop_in), prop_in = (FILE*) NULL;
2315  }
2316 
2317  /* An older version of properties.rc might be useful for the current
2318  * PIPS execution. This is used to maintain backward compatibility
2319  * for old non-regression tests.
2320  */
2321  string pfn = string_undefined;
2322  string sdn = get_script_directory_name();
2323  pfn = strdup(concatenate(sdn, "/", OLD_PROPERTIES_RC, NULL));
2324  if ((old_prop = fopen(pfn, "r")) != NULL) {
2325  char opfn[100];
2326  int stat = fscanf(old_prop, "%s", opfn);
2327  assert(stat != EOF);
2328 
2329  if ((prop_in = fopen_config(opfn, NULL, NULL)) != NULL) {
2330  parse_properties_file(prop_in);
2331  fclose(prop_in), prop_in = (FILE*) NULL;
2332  }
2333  fclose(old_prop), old_prop = (FILE*) NULL;
2334  }
2335  free(pfn);
2336 
2337  /* Update the standard properties with a locally defined ./properties.rc
2338  * Is . the cwd or the directory where the .tpips script has been found?
2339  */
2340  if ((prop_in = fopen(PROPERTIES_RC, "r")) != NULL) {
2341  parse_properties_file(prop_in);
2342  fclose(prop_in), prop_in = (FILE*) NULL;
2343  }
2344 }
2345 
2346 bool properties_initialized_p(void)
2347 {
2348  return pl != NULL;
2349 }
2350 
2351 /* Test if we have too many property errors pending
2352 
2353  It is useful in pips_user_error to avoid infinite recursion where
2354  properties are used there to change the behaviour of pips_user_error...
2355  */
2357 {
2358  /* Well, this limit should depend on the actual implementation of
2359  user_error, that may change in tpips, pyps, wpips... It should be
2360  configurable... */
2361  return pending_errors > 3;
2362 }
2363 
2364 
2365 /* Reset the pending stuff in case we where able to cope with... */
2366 void reset_property_error() {
2367  pending_errors = 0;
2368 }
2369 
2370 
2371 /* Get a property
2372 
2373  @param[in] name is the name of the property to look-up
2374 
2375  @param[in] cool is a bool setting the behaviour if the property does
2376  not exist. If the property does not exist and cool is true, it return
2377  property_undefined but if false it aborts
2378 
2379  @return the property or abort() if it does not exist and cool is false
2380 */
2381 property get_property(const char* name, bool cool)
2382 {
2383  property p = property_undefined;
2384  property u = (property) HASH_UNDEFINED_VALUE;
2385 
2386  if (!pl)
2387  read_properties(); /* rather lazy... */
2388 
2389  p = (property) hash_get(pl, name);
2390 
2391  if (p == u) {
2392  if (!cool) {
2393  property_user_error("unknown property: --%s--\n", name);
2394  }
2395  /* else since error does not return */
2396  p = property_undefined;
2397  }
2398  return p;
2399 }
2400 
2401 
2402 /* Get the value of a bool property
2403 
2404  @param[in] name is the name of the property to look-up
2405 
2406  @return the bool value
2407 */
2408 bool get_bool_property(const char* name)
2409 {
2410  property p = get_property(name, false);
2411  if (! property_bool_p(p)) {
2412  // FI: Could be an internal error...
2413  property_user_error("Property \"%s\" is not boolean.\n", name);
2414  }
2415  return(property_bool(p));
2416 }
2417 
2418 
2419 /* Set the value of a bool property
2420 
2421  @param[in] name is the name of the property to set
2422 
2423  @param[in] b is the value to store in the property
2424 */
2425 void set_bool_property(const char* name, bool b)
2426 {
2427  property p = get_property(name, false);
2428  if (! property_bool_p(p))
2429  property_user_error("property %s is not bool\n", name);
2430  property_bool(p) = b;
2431 }
2432 
2433 
2434 /* Get the value of a string property
2435 
2436  @param[in] name is the name of the property to look-up
2437 
2438  @return the string value, not to be freed
2439 */
2440 const char* get_string_property(const char* name)
2441 {
2442  property p = get_property(name, false);
2443  if (! property_string_p(p))
2444  property_user_error("property %s is not string\n", name);
2445  return property_string(p);
2446 }
2447 
2448 
2449 /* Get the value of a string property or ask to the user if it does not
2450  has a non null string value
2451 
2452  @param[in] name is the name of the property to look-up
2453 
2454  @param[in] question is the sentence to display when asking for a value
2455  because the property has no valid string value
2456 
2457  @return the string value, not to be freed
2458 */
2459 const char* get_string_property_or_ask(const char* name,const char question[])
2460 {
2461  property p = get_property(name, false);
2462  if (! property_string_p(p))
2463  property_user_error("property %s is not string\n", name);
2464  string s = property_string(p);
2465  while(!s || string_undefined_p(s) || s[0] == '\0' )
2466  s = user_request(question);
2467 
2468  return s;
2469 }
2470 
2471 
2472 /* Set the value of a string property
2473 
2474  @param[in] name is the name of the property to set
2475 
2476  @param[in] s is the value to store in the property. This string is
2477  strdup()ed in this function
2478 */
2479 void set_string_property(const char* name, const char* s)
2480 {
2481  property p = get_property(name, false);
2482  if (! property_string_p(p))
2483  property_user_error("property %s is not string\n", name);
2484  free(property_string(p));
2485  property_string(p) = strdup(s);
2486 }
2487 
2488 
2489 /* Get the value of an integer property
2490 
2491  @param[in] name is the name of the property to look-up
2492 
2493  @return the integer value
2494 */
2495 int
2496 get_int_property(const char* name)
2497 {
2498  property p = get_property(name, false);
2499  if (! property_int_p(p))
2500  property_user_error("property %s is not int\n", name);
2501  return property_int(p);
2502 }
2503 
2504 
2505 /* Set the value of an integer property
2506 
2507  @param[in] name is the name of the property to set
2508 
2509  @param[in] i is the value to store in the property
2510 */
2511 void set_int_property(const char* name, int i)
2512 {
2513  property p = get_property(name, false);
2514  if (! property_int_p(p))
2515  property_user_error("property %s is not int\n", name);
2516  property_int(p) = i;
2517 }
2518 
2519 void fprint_property_direct(FILE * fd, const char* pname)
2520 {
2521  property p = get_property(pname, true);
2522  if (property_undefined_p(p))
2523  fprintf(fd, "# undefined property %s\n", pname);
2524  else
2525  switch (property_tag(p)) {
2526  case is_property_bool:
2527  fprintf(fd, "%s", property_bool(p)? "TRUE": "FALSE");
2528  break;
2529  case is_property_int:
2530  fprintf(fd, "%td", property_int(p));
2531  break;
2532  case is_property_string:
2533  fprintf(fd, "%s", property_string(p));
2534  break;
2535  default:
2536  fprintf(fd, "# bad property type for %s\n", pname);
2537  }
2538 
2539 }
2540 
2541 void fprint_property(FILE * fd, const char* pname)
2542 {
2543  property p = get_property(pname, true);
2544  if (property_undefined_p(p))
2545  fprintf(fd, "# undefined property %s\n", pname);
2546  else
2547  switch (property_tag(p)) {
2548  case is_property_bool:
2549  fprintf(fd, "%s %s\n", pname, property_bool(p)? "TRUE": "FALSE");
2550  break;
2551  case is_property_int:
2552  fprintf(fd, "%s %td\n", pname, property_int(p));
2553  break;
2554  case is_property_string:
2555  fprintf(fd, "%s \"%s\"\n", pname, property_string(p));
2556  break;
2557  default:
2558  fprintf(fd, "# bad property type for %s\n", pname);
2559  }
2560 }
2561 
2562 void fprint_properties(FILE * fd)
2563 {
2564  if (pl)
2565  { // dump all sorted properties in fd.
2567  fprintf(fd, "# PIPS PROPERTIES\n");
2568  HASH_MAP(name, p, gen_array_dupappend(array, name), pl);
2570  GEN_ARRAY_FOREACH(string, name, array)
2571  fprint_property(fd, name);
2573  }
2574  else fprintf(fd, "# NO PIPS PROPERTIES...\n");
2575 }
2576 
2577 /******************************************************* TOP-LEVEL INTERFACE */
2578 
2579 static string get_property_file_name(void)
2580 {
2581  string dir_name = db_get_meta_data_directory(),name;
2582  int stat = asprintf(&name,"%s/properties",dir_name);
2583  assert(stat != -1);
2584  free(dir_name); return name;
2585 }
2586 
2587 /* when opening a workspace, retrieve the properties.
2588  * @return whether okay
2589  */
2590 bool open_properties(void)
2591 {
2592  string file_name = get_property_file_name();
2593  FILE * file = check_fopen(file_name, "r");
2594  if (!file) return false;
2595  if (pl) hash_table_free(pl), pl = (hash_table) NULL; /* lazy clean... */
2596  parse_properties_file(file);
2597  safe_fclose(file, file_name);
2598  free(file_name);
2599  return true;
2600 }
2601 
2602 /* on close, save the properties in the current workspace.
2603  * this is called from close_workspace, so there is some current one.
2604  */
2605 void save_properties(void)
2606 {
2607  string file_name = get_property_file_name();
2608  FILE * file = safe_fopen(file_name, "w");
2609  fprint_properties(file);
2610  safe_fclose(file, file_name);
2611  free(file_name);
2612 }
2613 
2614 /* the creation is demand driven from get_property...
2615  */
2616 
bool too_many_property_errors_pending_p(void)
int get_int_property(const string)
bool properties_initialized_p(void)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
property make_property_bool(bool _field_)
Definition: property.c:66
property make_property_int(intptr_t _field_)
Definition: property.c:63
property make_property_string(string _field_)
Definition: property.c:69
void free_property(property p)
Definition: property.c:19
void const char const char const int
void gen_array_full_free(gen_array_t a)
Definition: array.c:77
gen_array_t gen_array_make(size_t size)
declarations...
Definition: array.c:40
void gen_array_sort(gen_array_t a)
Definition: array.c:164
void gen_array_dupappend(gen_array_t a, void *what)
Definition: array.c:117
bdt base
Current expression.
Definition: bdt_read_paf.c:100
static Value offset
Definition: translation.c:283
FILE * safe_fopen(const char *filename, const char *what)
Definition: file.c:67
char * get_string_property(const char *)
int safe_fclose(FILE *stream, const char *filename)
Definition: file.c:77
FILE * fopen_config(const char *canonical_name, const char *cproperty, const char *cenv)
Definition: file.c:952
FILE * check_fopen(const char *file, const char *mode)
file.c
Definition: file.c:56
bool get_bool_property(const string)
FC 2015-07-20: yuk, moved out to prevent an include cycle dependency include "properties....
string get_script_directory_name(void)
Definition: file_names.c:110
unsigned char flex_uint8_t
Definition: genread_lex.c:312
static int input(void)
short int flex_int16_t
Definition: genread_lex.c:310
int flex_int32_t
Definition: genread_lex.c:311
int yy_state_type
Definition: genread_lex.c:588
flex_uint8_t YY_CHAR
Begin user sect3.
Definition: genread_lex.c:584
void * malloc(YYSIZE_T)
void free(void *)
hash_table hash_table_make(hash_key_type key_type, size_t size)
Definition: hash.c:294
void * hash_get(const hash_table htp, const void *key)
this function retrieves in the hash table pointed to by htp the couple whose key is equal to key.
Definition: hash.c:449
void hash_put(hash_table htp, const void *key, const void *val)
This functions stores a couple (key,val) in the hash table pointed to by htp.
Definition: hash.c:364
void hash_update(hash_table htp, const void *key, const void *val)
update key->val in htp, that MUST be pre-existent.
Definition: hash.c:491
void hash_table_free(hash_table htp)
this function deletes a hash table that is no longer useful.
Definition: hash.c:327
void * memset(void *str, int c, size_t len)
memset.c – set an area of memory to a given value Copyright (C) 1991, 2003, 2009-2011 Free Software F...
Definition: memset.c:23
#define _UNUSED_
Definition: misc-local.h:232
#define pips_debug
these macros use the GNU extensions that allow variadic macros, including with an empty list.
Definition: misc-local.h:145
#define asprintf
Definition: misc-local.h:225
#define exit(code)
Definition: misc-local.h:54
string user_request(const char *,...)
#define GEN_ARRAY_FOREACH(type, s, array)
Definition: newgen_array.h:50
#define assert(ex)
Definition: newgen_assert.h:41
string concatenate(const char *,...)
Return the concatenation of the given strings.
Definition: string.c:183
#define HASH_MAP(k, v, code, ht)
Definition: newgen_hash.h:60
@ hash_string
Definition: newgen_hash.h:32
#define HASH_UNDEFINED_VALUE
value returned by hash_get() when the key is not found; could also be called HASH_KEY_NOT_FOUND,...
Definition: newgen_hash.h:56
struct __hash_table * hash_table
Define hash_table structure which is hidden.
Definition: newgen_hash.h:43
int tag
TAG.
Definition: newgen_types.h:92
#define string_undefined
Definition: newgen_types.h:40
#define string_undefined_p(s)
Definition: newgen_types.h:41
void reset_property_error(void)
#define YY_INPUT(buffer, result, max_size)
shared pointer!
Definition: properties.c:802
#define yy_load_buffer_state
Definition: properties.c:15
#define YY_NEW_FILE
Special action meaning "start processing a new file".
Definition: properties.c:386
#define yyset_extra
Definition: properties.c:164
static hash_table pl
properties are stored in this hash table (string -> property) for fast accesses.
Definition: properties.c:783
#define yytext
Definition: properties.c:27
unsigned char flex_uint8_t
Definition: properties.c:312
#define yyset_lineno
Definition: properties.c:212
static char yy_hold_char
yy_hold_char holds the character lost when yytext is formed.
Definition: properties.c:527
static const YY_CHAR yy_meta[18]
Definition: properties.c:662
static yy_state_type yy_last_accepting_state
Definition: properties.c:706
#define yyrestart
Definition: properties.c:26
static bool update_property
Definition: properties.c:784
#define yyset_debug
Definition: properties.c:152
static void yynoreturn yy_fatal_error(const char *msg)
#define YY_EXTRA_TYPE
Special case for "unistd.h", since it is non-ANSI.
Definition: properties.c:856
static const flex_int16_t yy_def[37]
Definition: properties.c:676
static int yy_start
whether we need to initialize
Definition: properties.c:534
short int flex_int16_t
Definition: properties.c:310
#define yy_flex_debug
Definition: properties.c:20
static const flex_int16_t yy_nxt[69]
Definition: properties.c:684
#define yyget_out
Definition: properties.c:182
#define TIDENT
Definition: properties.c:775
#define property_user_error(...)
Call pips_user_error and notice it first.
Definition: properties.c:791
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: properties.c:510
unsigned int flex_uint32_t
Definition: properties.c:314
static int yy_get_next_buffer(void)
#define yy_scan_bytes
Definition: properties.c:12
#define YY_BREAK
Code executed at the end of each rule.
Definition: properties.c:1017
static char * string_to_parse
We may parse strings or files...
Definition: properties.c:800
static size_t yy_buffer_stack_max
capacity of stack.
Definition: properties.c:509
#define yynoreturn
Definition: properties.c:361
static void parse_properties(bool processing_p)
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define yyget_debug
Definition: properties.c:146
int yy_act
Definition: properties.c:1032
#define yypush_buffer_state
Definition: properties.c:17
struct yy_buffer_state * YY_BUFFER_STATE
Definition: properties.c:408
#define yyfree
Definition: properties.c:31
#define yyout
Definition: properties.c:25
#define YY_BUFFER_NEW
Definition: properties.c:490
#define yyget_lineno
Definition: properties.c:206
#define yylex
Definition: properties.c:23
#define YY_RESTORE_YY_MORE_OFFSET
Definition: properties.c:718
static int yy_did_buffer_switch_on_eof
start state number
Definition: properties.c:539
static int yy_init_globals(void)
#define yyget_text
Definition: properties.c:200
#define YY_BUFFER_NORMAL
Definition: properties.c:491
static size_t pending_errors
A flag used to avoid infinite recursion in the case of use error here.
Definition: properties.c:787
char * yy_cp
Definition: properties.c:1031
#define yyensure_buffer_stack
Definition: properties.c:19
#define yy_scan_buffer
Definition: properties.c:10
void parse_properties_string(char *s, bool processing_p)
properties.c
Definition: properties.c:823
#define YY_MORE_ADJ
Definition: properties.c:717
#define YY_RULE_SETUP
Definition: properties.c:1020
#define yy_scan_string
Definition: properties.c:11
static const flex_int16_t yy_chk[69]
Definition: properties.c:695
#define YY_AT_BOL()
Definition: properties.c:581
#define TSTRING
Definition: properties.c:777
#define yytext_ptr
Definition: properties.c:597
signed char flex_int8_t
C99 systems have <inttypes.h>.
Definition: properties.c:309
static const flex_int16_t yy_accept[34]
Definition: properties.c:622
#define yyget_leng
Definition: properties.c:194
#define EOB_ACT_END_OF_FILE
Definition: properties.c:421
#define yyalloc
Definition: properties.c:29
#define yypop_buffer_state
Definition: properties.c:18
#define YY_CURRENT_BUFFER_LVALUE
Same as previous macro, but useful when we know that the buffer stack is not NULL or when we need an ...
Definition: properties.c:524
int flex_int32_t
Definition: properties.c:311
#define YY_START
Translate the current start state into a value that can be later handed to BEGIN to return to the sta...
Definition: properties.c:381
#define yy_switch_to_buffer
Definition: properties.c:16
string db_get_meta_data_directory(void)
The syntax of a property list.
Definition: workspace.c:139
int yy_state_type
Definition: properties.c:588
#define TNUMB
Definition: properties.c:776
#define YY_CURRENT_BUFFER
We provide macros for accessing buffer states in case in the future we want to put the buffer states ...
Definition: properties.c:518
#define yy_init_buffer
Definition: properties.c:13
#define INITIAL
FLEX_SCANNER.
Definition: properties.c:845
#define yyget_extra
Definition: properties.c:158
char * yy_bp
Definition: properties.c:1031
#define yyin
Definition: properties.c:21
static int yy_n_chars
Definition: properties.c:528
#define YY_READ_BUF_SIZE
Amount of stuff to slurp up with each read.
Definition: properties.c:929
#define TFALSE
Definition: properties.c:774
#define ECHO
ia64
Definition: properties.c:938
#define yy_flush_buffer
Definition: properties.c:14
#define yyrealloc
Definition: properties.c:30
#define YY_END_OF_BUFFER
Definition: properties.c:614
#define YY_STATE_EOF(state)
Action number for EOF rule of a given start state.
Definition: properties.c:384
#define TTRUE
Definition: properties.c:773
#define YY_END_OF_BUFFER_CHAR
Definition: properties.c:387
static const flex_int16_t yy_base[37]
Definition: properties.c:668
#define YY_FATAL_ERROR(msg)
Report a fatal error.
Definition: properties.c:992
#define yyterminate()
Gets input and stuffs it into "buf".
Definition: properties.c:982
unsigned short int flex_uint16_t
Definition: properties.c:313
#define yywrap
Macros after this point can all be overridden by user definitions in section 1.
Definition: properties.c:28
#define yy_create_buffer
A lexical scanner generated by flex.
Definition: properties.c:8
flex_uint8_t YY_CHAR
Begin user sect3.
Definition: properties.c:584
#define YY_DO_BEFORE_ACTION
Done after the current pattern has been matched and before the corresponding action - sets up yytext.
Definition: properties.c:607
#define yy_delete_buffer
Definition: properties.c:9
#define EOB_ACT_LAST_MATCH
Definition: properties.c:422
#define yyget_in
Definition: properties.c:170
#define YY_BUFFER_EOF_PENDING
When an EOF's been seen but there's still some text to process then we mark the buffer as YY_EOF_PEND...
Definition: properties.c:502
#define yylineno
Definition: properties.c:24
static yy_state_type yy_get_previous_state(void)
static const YY_CHAR yy_ec[256]
Definition: properties.c:630
#define yylex_destroy
Accessor methods to globals.
Definition: properties.c:140
#define yyset_out
Definition: properties.c:188
static char * yy_c_buf_p
Points to current character in buffer.
Definition: properties.c:532
#define EOB_ACT_CONTINUE_SCAN
Definition: properties.c:420
static size_t yy_buffer_stack_top
!YY_STRUCT_YY_BUFFER_STATE
Definition: properties.c:508
#define YY_DECL
Definition: properties.c:1005
#define YY_BUF_SIZE
Size of default input buffer.
Definition: properties.c:398
#define YY_EXIT_FAILURE
static int yy_init
Definition: properties.c:533
#define YY_SC_TO_UI(c)
Promotes a possibly negative, possibly signed char to an integer in range [0..255] for use as an arra...
Definition: properties.c:370
size_t size_t
Definition: properties.c:413
#define yyleng
Definition: properties.c:22
static char * yy_last_accepting_cpos
Definition: properties.c:707
#define yyset_in
Definition: properties.c:176
FILE * prop_in
void set_bool_property(const char *, bool)
property get_property(const char *, bool)
void fprint_property_direct(FILE *, const char *)
void save_properties(void)
void set_int_property(const char *, int)
void fprint_properties(FILE *)
const char * get_string_property_or_ask(const char *, const char[])
void fprint_property(FILE *, const char *)
int prop_get_leng(void)
bool open_properties(void)
void set_string_property(const char *, const char *)
#define property_string(x)
Definition: property.h:71
#define property_bool(x)
Definition: property.h:68
@ is_property_string
Definition: property.h:43
@ is_property_bool
Definition: property.h:42
@ is_property_int
Definition: property.h:41
#define property_undefined_p(x)
Definition: property.h:27
#define property_int(x)
Definition: property.h:65
#define property_undefined
Definition: property.h:26
#define property_int_p(x)
Definition: property.h:63
struct _newgen_struct_property_ * property
Definition: property.h:15
#define property_string_p(x)
Definition: property.h:69
#define property_tag(x)
Definition: property.h:62
#define property_bool_p(x)
Definition: property.h:66
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
char * strdup()
s1
Definition: set.c:247
static entity array
static char buf[BSZ]
Definition: split_file.c:157
#define uint32_t
Definition: stdint.in.h:156
#define int32_t
Definition: stdint.in.h:155
#define uint16_t
Definition: stdint.in.h:149
#define int8_t
Definition: stdint.in.h:141
#define uint8_t
Definition: stdint.in.h:142
#define int16_t
Definition: stdint.in.h:148
int yy_n_chars
Number of characters read into yy_ch_buf, not including EOB characters.
Definition: genread_lex.c:459
int yy_bs_column
The column count.
Definition: genread_lex.c:481
FILE * yy_input_file
Definition: genread_lex.c:446
int yy_buf_size
current position in input buffer
Definition: genread_lex.c:454
int yy_fill_buffer
Whether to try to fill the input buffer when we reach the end of it.
Definition: genread_lex.c:486
int yy_is_our_buffer
Whether we "own" the buffer - i.e., we know we created it, and can realloc() it to grow it,...
Definition: genread_lex.c:465
int yy_bs_lineno
The line count.
Definition: genread_lex.c:480
char * yy_buf_pos
input buffer
Definition: genread_lex.c:449
int yy_at_bol
Whether we're considered to be at the beginning of a line.
Definition: genread_lex.c:478
int yy_is_interactive
Whether this is an "interactive" input source; if so, and if we're using stdio for input,...
Definition: genread_lex.c:472
This struct is not used in this scanner, but its presence is necessary.
Definition: genread_lex.c:618
flex_int32_t yy_verify
Definition: genread_lex.c:619
flex_int32_t yy_nxt
Definition: genread_lex.c:620
static string file_name