#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <qfileinfo.h>
#include <qdir.h>
#include <qtextstream.h>
#include <qregexp.h>
#include <qstack.h>
#include <qglobal.h>
#include "config.h"
#include "version.h"
#include "portable.h"
#include "util.h"
#include "message.h"
#include "lang_cfg.h"
#include "configoptions.h"
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | ConfigFileState |
Typedefs | |
typedef signed char | flex_int8_t |
typedef short int | flex_int16_t |
typedef int | flex_int32_t |
typedef unsigned char | flex_uint8_t |
typedef unsigned short int | flex_uint16_t |
typedef unsigned int | flex_uint32_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 144 of file config.cpp.
Definition at line 664 of file config.cpp.
Definition at line 663 of file config.cpp.
Definition at line 661 of file config.cpp.
Definition at line 662 of file config.cpp.
Definition at line 660 of file config.cpp.
#define configYYwrap | ( | n | ) | 1 |
Definition at line 354 of file config.cpp.
#define ECHO do { if (fwrite( configYYtext, configYYleng, 1, configYYout )) {} } while (0) |
Definition at line 1324 of file config.cpp.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 179 of file config.cpp.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 180 of file config.cpp.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 181 of file config.cpp.
#define FLEX_BETA |
Definition at line 33 of file config.cpp.
#define FLEX_SCANNER |
Definition at line 28 of file config.cpp.
#define FLEXINT_H |
Definition at line 49 of file config.cpp.
#define GetBool 6 |
Definition at line 1233 of file config.cpp.
#define GetEnvVar 9 |
Definition at line 1236 of file config.cpp.
#define GetQuotedString 8 |
Definition at line 1235 of file config.cpp.
#define GetString 5 |
Definition at line 1232 of file config.cpp.
#define GetStrList 7 |
Definition at line 1234 of file config.cpp.
#define Include 10 |
Definition at line 1237 of file config.cpp.
#define INITIAL 0 |
Definition at line 1227 of file config.cpp.
#define INT16_MAX (32767) |
Definition at line 92 of file config.cpp.
#define INT16_MIN (-32767-1) |
Definition at line 83 of file config.cpp.
#define INT32_MAX (2147483647) |
Definition at line 95 of file config.cpp.
#define INT32_MIN (-2147483647-1) |
Definition at line 86 of file config.cpp.
#define INT8_MAX (127) |
Definition at line 89 of file config.cpp.
#define INT8_MIN (-128) |
Definition at line 80 of file config.cpp.
#define MAX_INCLUDE_DEPTH 10 |
Definition at line 689 of file config.cpp.
#define PreStart 1 |
Definition at line 1228 of file config.cpp.
#define REJECT reject_used_but_not_detected |
Definition at line 605 of file config.cpp.
#define SkipComment 3 |
Definition at line 1230 of file config.cpp.
#define SkipInvalid 4 |
Definition at line 1231 of file config.cpp.
#define Start 2 |
Definition at line 1229 of file config.cpp.
#define UINT16_MAX (65535U) |
Definition at line 101 of file config.cpp.
#define UINT32_MAX (4294967295U) |
Definition at line 104 of file config.cpp.
#define UINT8_MAX (255U) |
Definition at line 98 of file config.cpp.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 199 of file config.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 350 of file config.cpp.
#define YY_BREAK break; |
Definition at line 1403 of file config.cpp.
#define YY_BUF_SIZE 16384 |
Definition at line 163 of file config.cpp.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 266 of file config.cpp.
#define YY_BUFFER_NEW 0 |
Definition at line 254 of file config.cpp.
#define YY_BUFFER_NORMAL 1 |
Definition at line 255 of file config.cpp.
#define yy_create_buffer configYY_create_buffer |
Definition at line 9 of file config.cpp.
#define YY_CURRENT_BUFFER |
Definition at line 282 of file config.cpp.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 289 of file config.cpp.
#define YY_DECL int configYYlex (void) |
Definition at line 1391 of file config.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 1387 of file config.cpp.
#define yy_delete_buffer configYY_delete_buffer |
Definition at line 10 of file config.cpp.
#define YY_DO_BEFORE_ACTION |
Definition at line 378 of file config.cpp.
#define YY_END_OF_BUFFER 28 |
Definition at line 386 of file config.cpp.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 159 of file config.cpp.
#define YY_EXIT_FAILURE 2 |
Definition at line 2650 of file config.cpp.
#define YY_EXTRA_TYPE void * |
Definition at line 1248 of file config.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 1378 of file config.cpp.
#define yy_flex_debug configYY_flex_debug |
Definition at line 11 of file config.cpp.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 29 of file config.cpp.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 30 of file config.cpp.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 31 of file config.cpp.
#define yy_flush_buffer configYY_flush_buffer |
Definition at line 13 of file config.cpp.
#define YY_FLUSH_BUFFER configYY_flush_buffer(YY_CURRENT_BUFFER ) |
Definition at line 318 of file config.cpp.
#define yy_init_buffer configYY_init_buffer |
Definition at line 12 of file config.cpp.
Definition at line 1059 of file config.cpp.
#define YY_INT_ALIGNED short int |
Definition at line 5 of file config.cpp.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 183 of file config.cpp.
#define yy_load_buffer_state configYY_load_buffer_state |
Definition at line 14 of file config.cpp.
#define YY_MORE_ADJ 0 |
Definition at line 607 of file config.cpp.
#define YY_NEVER_INTERACTIVE 1 |
Definition at line 690 of file config.cpp.
#define yy_new_buffer configYY_create_buffer |
Definition at line 328 of file config.cpp.
#define YY_NEW_FILE configYYrestart(configYYin ) |
Definition at line 157 of file config.cpp.
#define YY_NO_INPUT 1 |
Definition at line 656 of file config.cpp.
#define YY_NO_UNISTD_H 1 |
Definition at line 657 of file config.cpp.
#define YY_NULL 0 |
Definition at line 131 of file config.cpp.
#define YY_NUM_RULES 27 |
Definition at line 385 of file config.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 1316 of file config.cpp.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 608 of file config.cpp.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 1406 of file config.cpp.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 138 of file config.cpp.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 340 of file config.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 330 of file config.cpp.
#define YY_SKIP_YYWRAP |
Definition at line 355 of file config.cpp.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 150 of file config.cpp.
#define YY_START_STACK_INCR 25 |
Definition at line 1373 of file config.cpp.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 168 of file config.cpp.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 154 of file config.cpp.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 207 of file config.cpp.
#define yy_switch_to_buffer configYY_switch_to_buffer |
Definition at line 15 of file config.cpp.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 171 of file config.cpp.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 202 of file config.cpp.
#define YY_USER_ACTION |
Definition at line 1398 of file config.cpp.
#define yyalloc configYYalloc |
Definition at line 24 of file config.cpp.
#define yyconst |
Definition at line 127 of file config.cpp.
#define yyfree configYYfree |
Definition at line 26 of file config.cpp.
#define yyin configYYin |
Definition at line 16 of file config.cpp.
#define yyleng configYYleng |
Definition at line 17 of file config.cpp.
#define yyless | ( | n | ) |
Definition at line 2662 of file config.cpp.
#define yyless | ( | n | ) |
Definition at line 2662 of file config.cpp.
#define yylex configYYlex |
Definition at line 18 of file config.cpp.
#define yylineno configYYlineno |
Definition at line 19 of file config.cpp.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 606 of file config.cpp.
#define yyout configYYout |
Definition at line 20 of file config.cpp.
#define yyrealloc configYYrealloc |
Definition at line 25 of file config.cpp.
#define yyrestart configYYrestart |
Definition at line 21 of file config.cpp.
#define YYSTATE YY_START |
Definition at line 151 of file config.cpp.
#define YYTABLES_NAME "yytables" |
Definition at line 2852 of file config.cpp.
Definition at line 1368 of file config.cpp.
#define yytext configYYtext |
Definition at line 22 of file config.cpp.
#define yytext_ptr configYYtext |
Definition at line 368 of file config.cpp.
#define yywrap configYYwrap |
Definition at line 23 of file config.cpp.
typedef short int flex_int16_t |
Definition at line 71 of file config.cpp.
typedef int flex_int32_t |
Definition at line 72 of file config.cpp.
typedef signed char flex_int8_t |
Definition at line 70 of file config.cpp.
typedef unsigned short int flex_uint16_t |
Definition at line 74 of file config.cpp.
typedef unsigned int flex_uint32_t |
Definition at line 75 of file config.cpp.
typedef unsigned char flex_uint8_t |
Definition at line 73 of file config.cpp.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 172 of file config.cpp.
typedef unsigned char YY_CHAR |
Definition at line 357 of file config.cpp.
typedef size_t yy_size_t |
Definition at line 203 of file config.cpp.
typedef int yy_state_type |
Definition at line 361 of file config.cpp.
|
static |
Definition at line 1122 of file config.cpp.
|
static |
Definition at line 3037 of file config.cpp.
void config_err | ( | const char * | fmt, |
... | |||
) |
Definition at line 669 of file config.cpp.
void config_warn | ( | const char * | fmt, |
... | |||
) |
Definition at line 676 of file config.cpp.
|
static |
Definition at line 3648 of file config.cpp.
|
static |
Definition at line 1083 of file config.cpp.
YY_BUFFER_STATE configYY_create_buffer | ( | FILE * | file, |
int | size | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
Definition at line 2367 of file config.cpp.
void configYY_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with configYY_create_buffer() |
Definition at line 2395 of file config.cpp.
void configYY_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 2442 of file config.cpp.
|
static |
Definition at line 2414 of file config.cpp.
|
static |
Definition at line 2353 of file config.cpp.
YY_BUFFER_STATE configYY_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
Setup the input buffer state to scan directly from a user-specified character buffer.
base | the character buffer |
size | the size in bytes of the character buffer |
Definition at line 2569 of file config.cpp.
YY_BUFFER_STATE configYY_scan_bytes | ( | yyconst char * | yybytes, |
int | _yybytes_len | ||
) |
Setup the input buffer state to scan the given bytes. The next call to configYYlex() will scan from a copy of bytes.
bytes | the byte buffer to scan |
len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 2619 of file config.cpp.
YY_BUFFER_STATE configYY_scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string. The next call to configYYlex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
Definition at line 2606 of file config.cpp.
void configYY_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 2322 of file config.cpp.
void * configYYalloc | ( | yy_size_t | size | ) |
Definition at line 2830 of file config.cpp.
|
static |
Definition at line 2520 of file config.cpp.
void configYYfree | ( | void * | ptr | ) |
Definition at line 2847 of file config.cpp.
int configYYget_debug | ( | void | ) |
Definition at line 2746 of file config.cpp.
YY_EXTRA_TYPE configYYget_extra | ( | void | ) |
FILE * configYYget_in | ( | void | ) |
Get the input stream.
Definition at line 2690 of file config.cpp.
int configYYget_leng | ( | void | ) |
Get the length of the current token.
Definition at line 2706 of file config.cpp.
int configYYget_lineno | ( | void | ) |
FILE * configYYget_out | ( | void | ) |
Get the output stream.
Definition at line 2698 of file config.cpp.
char * configYYget_text | ( | void | ) |
Get the current token.
Definition at line 2715 of file config.cpp.
int configYYlex | ( | void | ) |
int configYYlex_destroy | ( | void | ) |
Definition at line 2785 of file config.cpp.
void configYYpop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 2501 of file config.cpp.
void configYYpush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.
new_buffer | The new state. |
Definition at line 2471 of file config.cpp.
void * configYYrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 2835 of file config.cpp.
void configYYrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 2305 of file config.cpp.
void configYYset_debug | ( | int | debug_flag | ) |
Definition at line 2751 of file config.cpp.
void configYYset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void configYYset_in | ( | FILE * | in_str | ) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 2736 of file config.cpp.
void configYYset_lineno | ( | int | line_number | ) |
void configYYset_out | ( | FILE * | out_str | ) |
Definition at line 2741 of file config.cpp.
Definition at line 694 of file config.cpp.
|
static |
Definition at line 1144 of file config.cpp.
if | ( | ! | yy_init | ) |
Definition at line 1422 of file config.cpp.
|
static |
Definition at line 1166 of file config.cpp.
|
static |
Definition at line 2897 of file config.cpp.
|
static |
Definition at line 2918 of file config.cpp.
|
static |
Definition at line 1128 of file config.cpp.
while | ( | 1 | ) |
Definition at line 1448 of file config.cpp.
|
static |
|
static |
Definition at line 2653 of file config.cpp.
|
static |
Definition at line 2000 of file config.cpp.
|
static |
Definition at line 2134 of file config.cpp.
|
static |
Definition at line 2756 of file config.cpp.
|
static |
Definition at line 2166 of file config.cpp.
|
static |
Definition at line 1061 of file config.cpp.
|
static |
|
static |
Definition at line 2189 of file config.cpp.
|
static |
Definition at line 1043 of file config.cpp.
|
static |
Definition at line 1054 of file config.cpp.
Definition at line 1050 of file config.cpp.
int configYY_flex_debug = 0 |
Definition at line 600 of file config.cpp.
FILE * configYYin = (FILE *) 0 |
Definition at line 359 of file config.cpp.
int configYYleng |
Definition at line 294 of file config.cpp.
int configYYlineno = 1 |
Definition at line 365 of file config.cpp.
FILE * configYYout = (FILE *) 0 |
Definition at line 359 of file config.cpp.
char * configYYtext |
Definition at line 609 of file config.cpp.
|
static |
Definition at line 1046 of file config.cpp.
|
static |
Definition at line 1052 of file config.cpp.
|
static |
Definition at line 667 of file config.cpp.
|
static |
Definition at line 1049 of file config.cpp.
|
static |
Definition at line 1047 of file config.cpp.
|
static |
Definition at line 1048 of file config.cpp.
|
static |
Definition at line 1038 of file config.cpp.
|
static |
Definition at line 1037 of file config.cpp.
|
static |
Definition at line 1044 of file config.cpp.
|
static |
Definition at line 1045 of file config.cpp.
|
static |
Definition at line 1042 of file config.cpp.
|
static |
Definition at line 1041 of file config.cpp.
|
static |
Definition at line 666 of file config.cpp.
|
static |
Definition at line 394 of file config.cpp.
register int yy_act |
Definition at line 1415 of file config.cpp.
|
static |
Definition at line 450 of file config.cpp.
register char * yy_bp |
Definition at line 1414 of file config.cpp.
|
static |
Stack as an array.
Definition at line 274 of file config.cpp.
|
static |
capacity of stack.
Definition at line 273 of file config.cpp.
|
static |
index of top of stack.
Definition at line 272 of file config.cpp.
|
static |
Definition at line 297 of file config.cpp.
|
static |
Definition at line 541 of file config.cpp.
register char* yy_cp |
Definition at line 1414 of file config.cpp.
YY_DECL |
The main scanner function which does all the work.
Definition at line 1412 of file config.cpp.
|
static |
Definition at line 468 of file config.cpp.
|
static |
Definition at line 304 of file config.cpp.
|
static |
Definition at line 411 of file config.cpp.
|
static |
Definition at line 292 of file config.cpp.
|
static |
Definition at line 298 of file config.cpp.
|
static |
Definition at line 597 of file config.cpp.
|
static |
Definition at line 596 of file config.cpp.
|
static |
Definition at line 443 of file config.cpp.
|
static |
Definition at line 293 of file config.cpp.
|
static |
Definition at line 486 of file config.cpp.
|
static |
Definition at line 299 of file config.cpp.
|
static |
Definition at line 1040 of file config.cpp.
|
static |
Definition at line 1039 of file config.cpp.