|
Dillo v3.2.0-93-g6a586845
|
Preferences parser. More...
#include <sys/types.h>#include <stdlib.h>#include <locale.h>#include <math.h>#include <limits.h>#include "prefs.h"#include "misc.h"#include "msg.h"#include "colors.h"#include "prefsparser.hh"
Go to the source code of this file.
Enumerations | |
| enum | PrefType_t { PREFS_BOOL , PREFS_COLOR , PREFS_STRING , PREFS_STRINGS , PREFS_URL , PREFS_INT32 , PREFS_DOUBLE , PREFS_FRACTION_100 , PREFS_GEOMETRY , PREFS_PANEL_SIZE } |
Functions | |
| static int | parseOption (char *name, char *value, SymNode_t *symbols, int n_symbols) |
| Parse a name/value pair and set preferences accordingly. | |
Preferences parser.
Definition in file prefsparser.cc.
| enum PrefType_t |
| Enumerator | |
|---|---|
| PREFS_BOOL | |
| PREFS_COLOR | |
| PREFS_STRING | |
| PREFS_STRINGS | |
| PREFS_URL | |
| PREFS_INT32 | |
| PREFS_DOUBLE | |
| PREFS_FRACTION_100 | |
| PREFS_GEOMETRY | |
| PREFS_PANEL_SIZE | |
Definition at line 31 of file prefsparser.cc.
|
static |
Parse a name/value pair and set preferences accordingly.
Definition at line 54 of file prefsparser.cc.
References a_Color_parse(), a_Misc_parse_geometry(), a_Url_free(), a_Url_new(), dFree(), dList_append(), dList_length(), dList_nth_data(), dList_remove(), dStrAsciiCasecmp(), dStrdup(), DilloPrefs::height, MSG, MSG_WARN, P_medium, P_small, P_tiny, DilloPrefs::panel_size, prefs, PREFS_BOOL, PREFS_COLOR, PREFS_DOUBLE, PREFS_FRACTION_100, PREFS_GEOMETRY, PREFS_INT32, PREFS_PANEL_SIZE, PREFS_STRING, PREFS_STRINGS, PREFS_URL, DilloPrefs::width, DilloPrefs::xpos, and DilloPrefs::ypos.