diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-12-31 19:44:05 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-12-31 19:44:05 +0000 |
commit | 419cae0a458826eae34d29b3216f453957074d16 (patch) | |
tree | bd1f5c0469cfdbd95d70462b4823f16e352fe8ab /WWW/Library/Implementation | |
parent | 6866375a78820eee78ed9d82a8ba2fb3fa2ce8e4 (diff) | |
download | lynx-snapshots-419cae0a458826eae34d29b3216f453957074d16.tar.gz |
snapshot of project "lynx", label v2-9-0dev_4h
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTParse.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/WWW/Library/Implementation/HTParse.c b/WWW/Library/Implementation/HTParse.c index 1e6a3d56..36777249 100644 --- a/WWW/Library/Implementation/HTParse.c +++ b/WWW/Library/Implementation/HTParse.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTParse.c,v 1.88 2019/08/17 00:58:20 tom Exp $ + * $LynxId: HTParse.c,v 1.89 2019/12/31 19:18:16 tom Exp $ * * Parse HyperText Document Address HTParse.c * ================================ @@ -822,7 +822,8 @@ void HTSimplify(char *filename, BOOL absolute) { #define MY_FMT "HTParse HTSimplify\t(%s)" #ifdef NO_LYNX_TRACE -#define debug_at() /* nothing */ +#define debug_at(at) /* nothing */ +#define atln "?" #else const char *atln; @@ -844,7 +845,7 @@ void HTSimplify(char *filename, BOOL absolute) for (p = filename; *p; ++p) { if (*p == '?' || *p == '#') { - limit = (size_t)(p - filename); + limit = (size_t) (p - filename); break; } } @@ -889,7 +890,7 @@ void HTSimplify(char *filename, BOOL absolute) if (trim) { CTRACE2(TRACE_HTPARSE, (tfp, MY_FMT " trim %lu/%lu (%.*s) '%.*s' @%s\n", - mark, (unsigned long)trim, (unsigned long)limit, + mark, (unsigned long) trim, (unsigned long) limit, (int) trim, p + skip, (int) limit, p, atln)); } if (last) { @@ -902,8 +903,8 @@ void HTSimplify(char *filename, BOOL absolute) } } if (prior != filename) { - trim += (size_t)(filename - prior); - limit += (size_t)(filename - prior); + trim += (size_t) (filename - prior); + limit += (size_t) (filename - prior); filename = p = prior; CTRACE2(TRACE_HTPARSE, (tfp, MY_FMT " TRIM %lu/%lu (%.*s)\n", |