Jonas Fonseca
1b999c9b6a
Remove .vimrc files; use the Vim ftplugin instead
2006-01-29 10:45:22 +01:00
Laurent MONIN
0983c5c764
Fix a memleak that may occur on systems without alloca(), backport from
...
gettext 0.14.5.
2006-01-29 10:27:41 +01:00
Laurent MONIN
9c767f491f
Upgrade config.charset to latest version from gnu gettext.
2006-01-29 10:27:27 +01:00
Jonas Fonseca
f19aa38e1f
Fix typo
2006-01-29 10:25:18 +01:00
Jonas Fonseca
d7571e313c
Cleanup SGML info backends #includes and description
2006-01-29 10:25:03 +01:00
Laurent MONIN
1f7bc476c6
Add a comment about CONFIG_TCP_INTERLINK.
2006-01-29 10:22:30 +01:00
Laurent MONIN
92387e4478
Store lib.o name in a variable named LIB_O_NAME.
2006-01-29 10:22:19 +01:00
Jonas Fonseca
a456cdbea3
Include osdep/stat.h to get S_* macros
2006-01-29 10:17:37 +01:00
Jonas Fonseca
d80b072e1b
Compile fix after check_uri_file() after the cleanup
2006-01-29 10:15:16 +01:00
Laurent MONIN
e03aacf5d3
Complete the list of S_I* macros.
2006-01-29 10:02:55 +01:00
Laurent MONIN
1c95d6c2af
Simplify secure_open() call, make it a wrapper around secure_open_umask().
2006-01-29 10:02:46 +01:00
Laurent MONIN
5fd2b6228f
Prefer S_I?USR and S_IRWXU over obsolete S_IREAD, S_IWRITE, S_IEXEC.
2006-01-29 10:01:30 +01:00
Laurent MONIN
347b3530a1
Use mode_t and mode macros everywhere.
2006-01-29 09:59:09 +01:00
Jonas Fonseca
2d95ad040c
As a stop gap measure avoid using NULL entry->nonce and realms
...
Reported by xmath. Obviously needs to be looked into.
2006-01-10 16:09:04 +01:00
Jonas Fonseca
8a8ef8ae6a
This years batch of Gopher fixes
...
Two crash fixes, and really make the directory 'view' the default.
2006-01-10 16:07:17 +01:00
Kalle Olavi Niemitalo
63797ae9b3
Don't include <sys/param.h> in util/math for MAX/MIN
...
<sys/param.h> includes <linux/param.h>, which includes <asm/param.h>, which
includes <asm-i486/param.h>, which includes <linux/config.h>, which
includes <linux/autoconf.h>, which includes <asm-i486/autoconf.h>, which
undefines CONFIG_IPV6.
2006-01-10 16:06:09 +01:00
Laurent MONIN
857138d391
check_uri_file(): use strcspn().
2006-01-10 16:03:49 +01:00
Miciah Dashiel Butler Masters
b4edfc977d
Fix add_document_to_string to add all chars in a line, not just the first
...
Revision 1.82 of src/scripting/lua/core.c and revision 1.42
of src/viewer/dump/dump.c (2 years, 2 months ago), which moved
add_document_to_string from the former to the latter, introduced
a logic error: the local variable pos was set in the outer loop,
which iterates thru the lines in the document, whereas it should be
(and had been) set in the inner loop, which iterates thru the columns.
This brings us all the way back to a working current_document_formatted
for Lua scripts.
2006-01-10 16:00:12 +01:00
Miciah Dashiel Butler Masters
2011629449
Fix add_document_to_string to actually add stuff
...
Revision 1.147 (14 months, 2 weeks ago) broke the logic so that only
frame characters were added. This fixes that change, getting us halfway
back to a working current_document_formatted function for Lua.
2006-01-10 16:00:03 +01:00
Laurent MONIN
bba44965bf
check_uri_file(): optimize by not using strlen() more than needed.
2006-01-10 15:59:39 +01:00
Laurent MONIN
0ca96e9ae9
check_whether_file_exists(): optimize by not using strlen() more than
...
needed.
2006-01-10 15:59:32 +01:00
Jonas Fonseca
3a6d465d94
Use check_whether_file_exists() when encoding a file URI string
...
The file URI encoding is done in translate_url() immediately after the call
to find_uri_protocol() [which also uses check_whether_file_exists()]. So it
only makes sense to use check_whether_file_exists() also here since this is
a potential ambiguous URL from the user.
This fixes handling of files like 'a?b' given the command line, reported by
rrowan. It broke (for the n-th time ;) in CVS version 1.317->1.318 back in
August. The fix preserves the intend of that patch, namely the intend to
optimize the number of calls to file_exists().
2006-01-10 15:58:50 +01:00
Jonas Fonseca
1a1bf9960d
Add a simple test script of the mailcap cache
...
It has a few nasty hacks to reduce the dependencies on defined symbols.
2006-01-10 15:58:06 +01:00
Jonas Fonseca
754d56b451
Realign the test docs with reality
2006-01-10 15:48:48 +01:00
Jonas Fonseca
da9c03b278
Use get_opt_codepage_tree() and kill warning
2006-01-10 15:47:18 +01:00
Laurent MONIN
daef63dd27
Define EL_PF_INET and EL_PF_INET6 to identify protocol in use instead
...
of numeric values.
2006-01-10 15:47:10 +01:00
Laurent MONIN
d9b56bad7d
Use PF_* instead of AF_* as first parameter of socket(2).
2006-01-10 15:46:57 +01:00
Jonas Fonseca
4035b6ba66
Drop unneeded -b arg to cmp, which isn't available in FreeBSD's version
2006-01-10 15:46:41 +01:00
Jonas Fonseca
4cbaad6f8d
Improve support for running 'make test' when srcdir != builddir
...
Additionally, also make TESTDEPS conditionally contain memdebug object
binary only if CONFIG_DEBUG is yes.
2006-01-10 15:44:29 +01:00
Jonas Fonseca
46922582a8
Rbuild the entity table with Unicode/gen-ent
2006-01-10 14:38:54 +01:00
Jonas Fonseca
2abfbda9d9
Merge in the 0x???? chars and fix some incomplete descriptions
...
Skip entities with unknown unicode (0x????) in gen-ent. Thanks to Miciah
for noticing a missing description part.
2006-01-10 14:22:00 +01:00
Laurent MONIN
19c7196c05
Update year to 2006 in Copying message.
2006-01-10 14:13:11 +01:00
Laurent MONIN
43d47ade42
Let ftp-parser displays usage information when called with no arg or
...
empty string, instead of core dump in debug mode.
2006-01-10 14:13:01 +01:00
Jonas Fonseca
065b8f405a
Drop empty lines from option descriptions; doc/tools/help2doc don't like em
2006-01-10 14:12:06 +01:00
Jonas Fonseca
fa23a65b81
Add support for recursively running all tests
2006-01-10 14:10:08 +01:00
Jonas Fonseca
d048bb4888
Make a test-ftp-parser test script and remove the 'built-in' one
2006-01-10 14:09:49 +01:00
Jonas Fonseca
9debe3b3ae
Move the 'make test' handling to Makefile.lib
...
The test rule is defined when TEST_PROGS is defined. Users should also set
TESTDEPS to get the correct object files linked in.
2006-01-10 14:06:17 +01:00
Jonas Fonseca
b52baed88f
Move src/dom/test/libtest test/libtest.sh, put path to it in TEST_LIB
2006-01-10 14:05:58 +01:00
Miciah Dashiel Butler Masters
d4cceb5f0e
Check for hooks.js before trying to load it.
...
Check file_exists(path) before calling smjs_do_file(path)
in smjs_load_hooks to fix an error message when there is no hooks.js,
reported by zas.
2006-01-10 14:03:32 +01:00
Laurent MONIN
9d287c24ae
Add missing b flag to fopen() call.
2006-01-10 14:01:46 +01:00
Jonas Fonseca
6e24450bdf
Improve (or rather fix) how document types are matched in the DOM renderer
2006-01-10 14:01:22 +01:00
Jonas Fonseca
9e7d920663
Use the simpler strcasecmp() instead of strcaselcmp()
2006-01-10 14:01:14 +01:00
Jonas Fonseca
b01c1a6361
Also highlight HTML if the MIME type is application/xhtml+xml
2006-01-10 14:01:03 +01:00
Jonas Fonseca
dabe0816fb
Fix more problems when $(srcdir) is empty
...
Thanks to Kalle Olavi Niemitalo and Adam Golebiowski.
2006-01-10 14:00:11 +01:00
Miciah Dashiel Butler Masters
637fc46281
Change the keyboard accelerator for the cookie browser's Clear button
...
from C to L for great consistency.
2006-01-10 13:55:35 +01:00
Jonas Fonseca
6b62e0cb77
Declare struct sgml_parser_state above struct sgml_parser
...
... and describe the info member.
2005-12-31 20:02:39 +01:00
Jonas Fonseca
f0148c2ecf
Keep struct sgml_parsing_state private to the parser
2005-12-31 19:59:11 +01:00
Jonas Fonseca
4a766f350b
Just for fun also parse <?xml-stylesheet attributes
2005-12-31 03:13:39 +01:00
Jonas Fonseca
a578ed4667
Make the SGML scanner (optionally) keep track of line numbers
...
A new line is either \n or \f. The main logic for counting lines is in
skip_sgml{,_chars,_space}. For the general case where line numbers are not
wanted the code tries to avoid the extra checks for newlines.
This will be useful for reporting errors when loading the XBEL file.
2005-12-31 02:46:56 +01:00
Jonas Fonseca
b23beed031
Rename skip_comment() and skip_cdata_section() to conform to skip_sgml_*()
2005-12-31 02:00:09 +01:00