diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2008-02-10 23:30:04 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2008-02-10 23:30:04 -0500 |
commit | acdfec8f90ac4aa21cfc20b6b7ad3ecb7e56ea90 (patch) | |
tree | 86c9e3563afd079f3dde28d94be992c75627c8fa /src/LYReadCFG.c | |
parent | 92e120361baf8d55566015fe7bf09ac91f06a6e6 (diff) | |
download | lynx-snapshots-acdfec8f90ac4aa21cfc20b6b7ad3ecb7e56ea90.tar.gz |
snapshot of project "lynx", label v2-8-7dev_c-pbm
Diffstat (limited to 'src/LYReadCFG.c')
-rw-r--r-- | src/LYReadCFG.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c index f75b9770..f489d88f 100644 --- a/src/LYReadCFG.c +++ b/src/LYReadCFG.c @@ -1,4 +1,4 @@ -/* $LynxId: LYReadCFG.c,v 1.125 2008/01/03 00:50:26 Joey.Schulze Exp $ */ +/* $LynxId: LYReadCFG.c,v 1.126 2008/02/10 22:05:02 tom Exp $ */ #ifndef NO_RULES #include <HTRules.h> #else @@ -1212,6 +1212,18 @@ static int read_htmlsrc_tagname_xform(char *str) } #endif +#ifdef USE_SESSIONS +static int session_limit_fun(char *value) +{ + session_limit = (short) atoi(value); + if (session_limit < 1) + session_limit = 1; + else if (session_limit > MAX_SESSIONS) + session_limit = MAX_SESSIONS; + return 0; +} +#endif /* USE_SESSIONS */ + #if defined(PDCURSES) && defined(PDC_BUILD) && PDC_BUILD >= 2401 static int screen_size_fun(char *value) { @@ -1493,6 +1505,11 @@ static Config_Type Config_Table [] = #endif PARSE_SET(RC_SEEK_FRAG_AREA_IN_CUR, LYSeekFragAREAinCur), PARSE_SET(RC_SEEK_FRAG_MAP_IN_CUR, LYSeekFragMAPinCur), +#ifdef USE_SESSIONS + PARSE_SET(RC_AUTO_SESSION, LYAutoSession), + PARSE_STR(RC_SESSION_FILE, LYSessionFile), + PARSE_FUN(RC_SESSION_LIMIT, session_limit_fun), +#endif PARSE_SET(RC_SET_COOKIES, LYSetCookies), PARSE_SET(RC_SHOW_CURSOR, LYShowCursor), PARSE_STR(RC_SHOW_KB_NAME, LYTransferName), |