Kalle Olavi Niemitalo
12b9e0cd00
Tell xgettext which functions pass through format strings.
...
These are the same functions whose argument strings xgettext should
add to elinks.pot. I also searched for uses of the functions that are
known to take format strings, in case the callers might take the
format string from the result of another function, but didn't find any
new ones.
2007-05-01 20:04:43 +02:00
Kalle Olavi Niemitalo
d00d702e7d
Fix compiler errors without HAVE_VARIADIC_MACROS.
2007-05-01 20:04:10 +02:00
Kalle Olavi Niemitalo
24ba641743
Tell xgettext which functions expect format strings.
...
I constructed the list by grepping for "..." and looking for related
macros and va_list functions. Also grepped for "*fmt", and "*format"
but the extra functions found that way (add_date_to_string,
format_command, subst_user_agent, etc.) handle format strings that
don't have the same syntax as in printf: in particular, type safety
does not depend on the order of format specifiers like it does in
printf. Therefore, these format strings should not be subjected to
the "c-format" checks of msgfmt.
2007-05-01 19:59:18 +02:00
Kalle Olavi Niemitalo
2e3ebffcd3
string_assert: First arg of elinks_internal is a format string.
2007-05-01 19:59:04 +02:00
Kalle Olavi Niemitalo
b0bc06d050
XBEL: Fix us-ascii charset lookup.
...
Previously, print_xml_entities did look up the charset, but did not
save the result anywhere and just used 0, leading to further lookups
in subsequent calls. It worked by accident though, because the
codepage index of us-ascii currently is 0.
2007-05-01 19:58:50 +02:00
Kalle Olavi Niemitalo
d2e806b611
textarea_edit: Cast size_t fx_maxlength to match "%u".
2007-05-01 19:58:35 +02:00
Kalle Olavi Niemitalo
5692746935
menu_leds_info: Revert the previous change.
...
Revert commit 2380ea9f1b
,
"menu_leds_info: Don't call msg_text." MSGBOX_SCROLLABLE requires
a modifiable copy of the string, and msg_text provides that. To
reproduce the crash, run ELinks in a small window, select the English
language, and choose Help -> LED indicators.
2007-05-01 19:58:22 +02:00
Kalle Olavi Niemitalo
6c33b4ecf8
menu_leds_info: Don't call msg_text.
2007-05-01 19:58:10 +02:00
Kalle Olavi Niemitalo
9a930fefe1
Type-check button arguments of msg_box.
...
Don't cast function pointers; calling functions via pointers of
incorrect types is not guaranteed to work. Instead, define the
functions with the desired types, and make them cast the incoming
parameters. Or define wrapper functions if the return types don't
match.
really_exit_prog wasn't being used outside src/dialogs/menu.c,
and I had to change its parameter type, so it's now static.
2007-05-01 19:57:52 +02:00
Kalle Olavi Niemitalo
c2570007c1
OS/2: Ensure correct type of NULL pointer for variadic spawnlp.
2007-05-01 19:57:31 +02:00
Laurent MONIN
8931ec44f2
French translation was updated.
2007-05-01 19:56:09 +02:00
Jonas Fonseca
1991e481f3
release.txt: remember to add version number to NEWS file
...
Thanks to kahmalo.
2007-05-01 19:55:55 +02:00
Jonas Fonseca
7fd92f31ee
Add .mailmap file to help git-shortlog
2007-05-01 19:55:40 +02:00
Witold Filipczyk
17ef838be7
DOM renderer: off by one error.
2007-04-29 21:06:03 +02:00
Witold Filipczyk
71c13ecbdb
test: scroll.html tests setTimeout and clearTimeout.
2007-04-26 22:37:09 +02:00
Witold Filipczyk
6d4828440e
ecmascript: Added clearTimeout.
2007-04-26 22:36:02 +02:00
Witold Filipczyk
05d40f6a63
ecmascript: Added ecmascript_clear_timeout.
2007-04-26 21:04:30 +02:00
Witold Filipczyk
f047c7c5fc
ecmascript: ecmascript_set_timeout returns pointer.
...
This pointer will be used later by clearTimeout.
2007-04-26 21:00:50 +02:00
Witold Filipczyk
479f63036a
ecmascript: Handle multiple setTimeout simultaneously.
2007-04-26 20:49:56 +02:00
Witold Filipczyk
2a3be5260a
forms: Buttons should not submit forms.
...
This reverts Commit: 6fe1a431f1
Sometimes scripts submit forms using buttons
I don't remember why I did previous change, but it was broken.
2007-04-18 16:19:18 +02:00
Witold Filipczyk
df36759e80
SEE: Report errors.
2007-04-15 17:57:30 +02:00
Witold Filipczyk
bcb22e301f
SEE: Simplification.
2007-04-15 16:59:04 +02:00
Witold Filipczyk
b5c3baf910
SEE: Renamed ELinks functions with the "SEE" prefix to distinguish them
...
from SEE functions.
2007-04-15 16:53:14 +02:00
Witold Filipczyk
c5b102ba08
SEE: added forms to the global object.
...
Avoid dangerous document.forms = ...
2007-04-14 23:49:43 +02:00
Witold Filipczyk
cd982d7d65
SEE: do not do check_class for alert, open and setTimeout.
...
Do not do check_class when functions called by the global object.
2007-04-14 23:32:14 +02:00
Witold Filipczyk
182812352b
bug 620: reset forms before reload, not after.
...
The idea by Kalle Olavi Niemitalo.
2007-03-26 19:21:23 +02:00
Witold Filipczyk
1655de5699
BUILD_ID: Use cg-object-id when there is no cg-commit-id
2007-03-23 19:01:21 +01:00
Witold Filipczyk
00037979d2
check_html_form_hierarchy: Old code was buggy.
...
Old code caused the assertion failure on the shutdownday's page.
2007-03-23 13:16:39 +01:00
Witold Filipczyk
55c00e0a12
memdebug: Show the previous address of the allocated memory (mem_realloc).
...
Without this tracking of the memory allocation is IMHO impossible.
2007-03-22 10:05:47 +01:00
Witold Filipczyk
426e5f2b3b
ecamscript: Delayed submit_given_form.
...
This probably fixes many bugs.
2007-03-22 09:52:52 +01:00
Witold Filipczyk
8c30a2a6c7
bug 620: added the field 'reload' to the struct document_view.
...
Changed the type of 'used' to unsigned int:1.
Resetting of forms is done only once. It wasn't tested.
2007-03-20 16:23:48 +01:00
Witold Filipczyk
1a8aae50fb
speech: Ignore frame chars.
2007-03-19 18:00:59 +01:00
Witold Filipczyk
208a3e99fc
decompress_data: Copied from master.
...
The previous decompress_data was buggy.
2007-03-19 17:54:54 +01:00
Witold Filipczyk
f0aa3909b1
Revert "decompress_data: count bytes written to the pipe"
...
This reverts commit da5eed4dba
.
2007-03-19 17:28:42 +01:00
Witold Filipczyk
c1992b2f3d
Revert "decompress_data: Run read_encoded in loop while BIG_READ bytes is read."
...
This reverts commit 991427f967
.
2007-03-19 17:27:51 +01:00
Witold Filipczyk
0b8e906e3c
bug 944: Sometimes there is no document yet, so title is unavailable.
...
It fixes bug 944, but I don't know if the page is added to the globhist.
2007-03-18 21:08:45 +01:00
Witold Filipczyk
6605f4c471
read_special: s/foreachback/foreach/
2007-03-15 12:41:18 +01:00
Witold Filipczyk
823c26748a
delayed_goto_uri: Do not segfault when there is no location yet.
...
The segfault was while reading the "copiousoutput" document on startup.
2007-03-14 14:00:22 +01:00
Witold Filipczyk
82a408da28
read_special: Added no-cache.
2007-03-14 13:53:22 +01:00
Witold Filipczyk
fbc51b3991
read_special: reorganization of code.
2007-03-14 13:40:11 +01:00
Witold Filipczyk
b9c409c3b9
I forgot about conn->popen.
2007-03-13 22:41:58 +01:00
Witold Filipczyk
fc2a402059
copiousoutput: Allow read only registered file descriptors.
2007-03-13 22:39:13 +01:00
Witold Filipczyk
7ab5b8d57e
Do not let reading from /dev/stdin and /dev/fd/0.
2007-03-13 22:09:41 +01:00
Witold Filipczyk
a494f376f9
copiousoutput: Use current frame.
...
Use the current frame instead full screen. Do not add the "zombie"
popen_data in case of the memory allocation error.
2007-03-13 21:10:21 +01:00
Witold Filipczyk
b6e862f539
forms: allow submit empty forms
...
Empty forms like this:
<form name="aaa" action="tralalala"></form>
is used by www.mbank.com.pl.
2007-03-13 13:53:46 +01:00
Witold Filipczyk
bd0aa20c9c
Grammar.
2007-03-13 13:10:16 +01:00
Witold Filipczyk
6a77f68c63
mime: Check whether % is enclosed by apostrophes
2007-03-12 22:10:48 +01:00
Witold Filipczyk
8b900203b7
test: onchange.html adjusted to the ELinks
2007-03-12 21:14:32 +01:00
Witold Filipczyk
0f58529b7d
ecmascript: Added onchange hook for SELECT.
...
It works, but not for test case yet.
2007-03-12 21:03:24 +01:00
Witold Filipczyk
95b5e67bd9
The test case for the onChange event.
2007-03-12 19:01:50 +01:00