Kalle Olavi Niemitalo
368a749123
fsp: Comment about not freeing memory in the child process.
2007-03-05 20:48:17 +02:00
Kalle Olavi Niemitalo
3ba31763a9
fsp: Call close_socket(socket) rather than close(socket->fd).
2007-03-05 20:46:15 +02:00
Kalle Olavi Niemitalo
fb184a4cd0
fsp: prompt_username_pw is in the parent process.
2007-03-05 20:21:24 +02:00
Kalle Olavi Niemitalo
1ad016bdd5
fsp: Comment and FIXME about closing file descriptors.
2007-03-05 20:20:04 +02:00
Kalle Olavi Niemitalo
c3a6ca3ef0
fsp: Don't cast the qsort comparison function pointer.
...
Cast the parameters of the function instead. The C standard does not
guarantee that a function can be properly called via a pointer of a
different type.
2007-03-05 20:18:59 +02:00
Kalle Olavi Niemitalo
c06d6ba5d0
fsp: More const.
2007-03-05 20:01:14 +02:00
Kalle Olavi Niemitalo
d17005e23f
encode_uri_string: Let name point to const.
2007-03-05 19:59:17 +02:00
Kalle Olavi Niemitalo
ab92c38ca2
add_html_to_string: Let src (aka html) point to const.
2007-03-05 19:35:29 +02:00
Kalle Olavi Niemitalo
80a3019a2f
fsp: Comment about connection.data_socket.
2007-03-05 19:34:19 +02:00
Kalle Olavi Niemitalo
136ff42bb1
fsp: Comments about interprocess communication.
2007-03-05 19:32:55 +02:00
Witold Filipczyk
e34d646f1a
fsp: remember the username and the password given in the uri.
...
[ This is half of commit c7f6f76951
from the witekfl branch. The SMB half is in commit
a0db520267
. --KON ]
2007-03-03 17:26:19 +02:00
Witold Filipczyk
05b19b05e6
fsp: call find_auth in both cases.
...
When the username and the password were given in the uri and when
they weren't. I'm not sure if it changes anything.
2007-03-03 17:25:00 +02:00
Witold Filipczyk
636f4e6aa4
fsp: used strings, encode and decode filenames with spaces.
2007-03-03 17:24:26 +02:00
Witold Filipczyk
93f3dc3bbf
fsp: set_nonblocking_fd
...
[ This is part of commit 71adb0e6cc
from the witekfl branch. The SMB part is in commit
36477ffa45
. The CGI part will
come later. --KON ]
2007-03-03 17:24:07 +02:00
Witold Filipczyk
6cf69b2948
fsp: abort connection on empty files.
...
Empty files were causing 'read from socket' errors.
[ This is half of commit eef1c17dce
from the witekfl branch. The SMB half is in commit
916b5cf545
. --KON ]
2007-03-03 17:20:41 +02:00
Witold Filipczyk
8c5ef76e52
fsp: prompt for password when the authentication fails.
...
It works only for directory listings.
2007-03-03 17:17:33 +02:00
Witold Filipczyk
a020450830
Removed unneded header file accidentally included by the previous commit.
2007-03-03 17:17:21 +02:00
Witold Filipczyk
ff087c3e06
fsp: Pass the filesize by ctype (stderr).
2007-03-03 17:17:13 +02:00
Witold Filipczyk
b517367cc8
dup2 closes given descriptors, so no need for the explicit close.
2007-03-03 17:17:00 +02:00
Witold Filipczyk
bef03e6106
FSP: The preparation for the error handling.
...
Numeric codes are returned instead of a plain text in the event
of the fsp error.
2007-03-03 17:15:21 +02:00
Miciah Dashiel Butler Masters
1a89589b13
menu_handler: Don't call get_parent_ptr for redraw events
...
Only call get_parent_ptr for resize events so that the menu isn't moved
to the cursor position for normal redraw events.
2007-03-03 12:44:45 +00:00
Kalle Olavi Niemitalo
3602899e3e
palette.inc: Comment fixes.
2007-03-03 09:46:51 +02:00
Miciah Dashiel Butler Masters
e95c5c7d30
Document that document.cache.revalidation_interval is in seconds
...
At Kalle Olavi Niemitalo's suggestion.
2007-03-02 23:46:18 +00:00
Miciah Dashiel Butler Masters
6d4496b521
document.cache.revalidation_interval: document that a value of -1 disables automatic revalidation
2007-02-28 20:22:40 +00:00
Kalle Olavi Niemitalo
0bd0dd160e
palette256: Comment about "web-safe" colors.
2007-02-27 10:31:18 +02:00
Kalle Olavi Niemitalo
76be98030a
Bug 890, palette256: Change colors 0-15 to match xterm defaults.
2007-02-27 03:56:43 +02:00
Kalle Olavi Niemitalo
174a6459e6
Bug 844: Remove src/protocol/smb/smb.c, superseded by smb2.c.
2007-02-25 23:53:53 +02:00
Kalle Olavi Niemitalo
0212ba7e93
Bug 844, SMB: EACCES from smbc_opendir beats ENOENT from smbc_open.
2007-02-25 23:40:43 +02:00
Kalle Olavi Niemitalo
8a25be932b
Bug 844, SMB: HTML-encode file names and comments.
...
This probably does the wrong thing with non-ASCII characters.
That's just because libsmbclient does not document which charset
it uses: it even reads smb.conf, which then may affect the choice.
2007-02-25 23:28:02 +02:00
Kalle Olavi Niemitalo
11e6aa8d97
Bug 944, SMB: Fix leaks and libsmbclient 3.0.10 compatibility.
2007-02-25 21:15:46 +02:00
Witold Filipczyk
5289a840d8
smb2: Do not use smb_options.
2007-02-25 16:53:54 +02:00
Witold Filipczyk
546a52597f
Typo.
2007-02-25 16:53:45 +02:00
Witold Filipczyk
a0db520267
smb: remember the username and the password given in the uri.
...
[ This is half of commit c7f6f76951
from the witekfl branch. The FSP half will come later. --KON ]
2007-02-25 16:53:35 +02:00
Witold Filipczyk
0c1371b161
smb: minor optimisation.
2007-02-25 16:52:25 +02:00
Witold Filipczyk
0cf6f91394
smb: Encode and decode spaces in filenames.
2007-02-25 16:52:19 +02:00
Witold Filipczyk
28fcc17564
smb: Do not encode ' ' as %20 in base href.
2007-02-25 16:52:07 +02:00
Witold Filipczyk
36477ffa45
smb: set_nonblocking_fd
...
[ This is part of commit 71adb0e6cc
from
the witekfl branch. The FSP and CGI parts will come later. --KON ]
2007-02-25 16:51:53 +02:00
Witold Filipczyk
c828cda079
smb: used string functions in place of printf and puts.
2007-02-25 16:50:22 +02:00
Witold Filipczyk
916b5cf545
smb: abort connection on empty files.
...
Empty files were causing 'read from socket' errors.
[ This is half of commit eef1c17dce
from the witekfl branch. The FSP half will come later. --KON ]
2007-02-25 16:50:02 +02:00
Witold Filipczyk
f70196dde8
smb: used string functions instead of snprintf.
2007-02-25 16:47:21 +02:00
Witold Filipczyk
a584aacb26
smb2: show comments.
2007-02-25 16:47:06 +02:00
Witold Filipczyk
d399c809f7
The SMB protocol handling using libsmbclient.
2007-02-25 16:46:55 +02:00
Kalle Olavi Niemitalo
927f08ec6a
Revert 5f36ad302e
, to make bug 534 less likely to occur.
...
Revert commit 5f36ad302e
,
"Decompression: write PIPE_BUF bytes to the pipe at once if possible."
Without this reversion, <http://blogs.msdn.com/ > displays as garbage.
It has Content-Encoding: gzip and Transfer-Encoding: chunked.
2007-02-25 16:09:25 +02:00
Kalle Olavi Niemitalo
4d7d8acaf5
Bug 937, http_send_header: indentation fix
2007-02-25 15:14:18 +02:00
Kalle Olavi Niemitalo
4e4dddb4cc
Bug 937, http_send_header: Don't send all headers to CONNECT proxy.
2007-02-25 12:49:56 +02:00
Witold Filipczyk
27a66f59d9
Fix the memleak. Part II of the 927 bugfix.
2007-02-25 11:02:53 +02:00
Witold Filipczyk
e01785e462
The fix for the bug 927.
...
When tables were rendered first time html_format_part was called with
document==NULL. <meta http-equiv=Refresh.../> was inside a table,
so document was NULL. Second time the table knew its dimensions
and document was not NULL.
2007-02-25 11:02:48 +02:00
Witold Filipczyk
2bf5372a29
stpcpy was not used in this file.
2007-02-25 11:02:28 +02:00
Kalle Olavi Niemitalo
0e5b6af9b0
Various comments and tweaks in bzip2 decoding.
...
Do not assume that memset(ptr, 0, size) clears pointers to NULL.
The length of decoded data can be read in two ways; assert they match.
2007-02-24 23:03:47 +02:00
Kalle Olavi Niemitalo
a75302caf2
More const in encoding backends.
2007-02-24 23:03:39 +02:00
Kalle Olavi Niemitalo
20ba46ddde
Remove decode_encoded and associated backend functions.
...
This function was unused and only the dummy backend implemented it
correctly. Fixing bug 534 will probably require adding this function
back again, but I think it will be easier to do it from scratch than
fix the bogus implementations we had here.
2007-02-24 23:03:24 +02:00
Witold Filipczyk
1e7f26c33d
bzip2: buf must be the last.
2007-02-24 16:13:03 +02:00
Witold Filipczyk
728c97556d
bzip2: Used the patch from bug the 517.
...
Removed the bzip2-pipe.patch from contrib.
2007-02-24 16:12:49 +02:00
Witold Filipczyk
0fe90d6ac6
bzip2: added the configure option --enable-bzip2-encoding
...
Use it with the patched bzlib. The patch in contrib.
Added the bzip2-pipe.patch.README.
2007-02-24 16:12:39 +02:00
Witold Filipczyk
cc28da68a7
bzip2: removed unclean my BZ2_bzRead2.
...
Use the patched bzlib instead. I put the bzip2-pipe.patch
in the contrib directory.
2007-02-24 16:12:31 +02:00
Witold Filipczyk
5f36ad302e
Decompression: write PIPE_BUF bytes to the pipe at once if possible.
2007-02-24 16:12:24 +02:00
Witold Filipczyk
86b352fecc
Simplification. bzf->handle is the same as data->file.
2007-02-24 16:12:17 +02:00
Witold Filipczyk
24a96717a6
BZ_bzRead2 is based on BZ_bzRead from the bzlib library.
...
Slightly modified to handle reading from the pipe. This fixes the bug 517.
2007-02-24 16:12:11 +02:00
Witold Filipczyk
573bd43e0c
The gzip decompression simplification. gzclearerr does the job.
2007-02-24 16:12:02 +02:00
Witold Filipczyk
cf86e2e72f
Added SEE_CFLAGS to the Makefile.config. Use SEE_CFLAGS only when necessary.
2007-02-18 17:09:32 +02:00
Kalle Olavi Niemitalo
3651a53e58
do_real_lookup: Assert that ai_addrlen <= sizeof(struct sockaddr_storage).
2007-02-17 22:21:56 +02:00
Kalle Olavi Niemitalo
cf32aba65f
BFU doc: Comment on what widget_data.cdata means for WIDGET_TEXT.
...
Inspired by bug 935.
2007-02-17 14:17:24 +02:00
Kalle Olavi Niemitalo
315f4e0342
doc: cut-clipboard does not merely delete text from clipboard.
2007-02-11 23:34:44 +02:00
Kalle Olavi Niemitalo
763f03f146
get_clipboard_text: Disable pasting from GNU Screen's clipboard.
2007-02-11 20:56:41 +02:00
Miciah Dashiel Butler Masters
93aea42b96
Unhighlight previously selected link when using goto-mark
...
In goto_mark, copy the current_link of the old view state to the
old_current_link of the new view state so that clear_link will properly
clear the highlight for that link.
This fixes a bug introduced with the removal of link_bg in commit
c91c763d49
.
2007-02-04 23:13:39 +00:00
Kalle Olavi Niemitalo
a565365a8d
do_type_query: Make known_types[] const.
2007-02-04 15:32:35 +02:00
Kalle Olavi Niemitalo
c62e9f9eae
check_http_server_bugs: Make buggy_servers[] const.
2007-02-04 15:30:51 +02:00
Kalle Olavi Niemitalo
c8a57c562f
Make http_code[] const; make http_code[].str point to const.
2007-02-04 15:18:45 +02:00
Kalle Olavi Niemitalo
d7e4b57146
Make instances of struct listbox_ops const.
2007-02-04 15:17:49 +02:00
Kalle Olavi Niemitalo
a5e321cb2b
Make instances of struct hierbox_browser_button const.
...
And explicitly disable the "Save" buttons in anonymous mode,
even though they are currently inside #if 0.
2007-02-04 13:54:07 +02:00
Kalle Olavi Niemitalo
31dc108c73
end_with_known_tld: Make tld[] const.
2007-02-04 13:46:45 +02:00
Kalle Olavi Niemitalo
543b0f6768
Make msg_dsc[] static const.
2007-02-04 13:40:46 +02:00
Kalle Olavi Niemitalo
68b069a657
Make MIME backend metadata const.
2007-02-04 13:34:48 +02:00
Kalle Olavi Niemitalo
a6886634bc
Make unicode_7b[] static const.
...
The .data section of src/intl/charsets.o is only 40 bytes now.
Inspired by bug 381.
2007-02-03 23:25:16 +02:00
Kalle Olavi Niemitalo
974a5cdffd
Make entities[] static const.
...
Inspired by bug 381.
2007-02-03 19:51:45 +02:00
Kalle Olavi Niemitalo
408d86f2b1
Remove temporary indentation left in the previous commit.
2007-01-30 10:27:57 +02:00
Kalle Olavi Niemitalo
ebf549ba77
Fix document.html.wrap_nbsp in UTF-8 terminals.
...
!CONFIG_UTF8, ISO-8859-1 doc, ASCII terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, A0 ok
!CONFIG_UTF8, ISO-8859-1 doc, ISO-8859-1 terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, A0 ok
!CONFIG_UTF8, UTF-8 doc, ASCII terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, C2 A0 fail (drawn as "\001").
!CONFIG_UTF8, UTF-8 doc, ISO-8859-1 terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, C2 A0 fail (not wrapped).
CONFIG_UTF8, ISO-8859-1 doc, ASCII terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, A0 ok
CONFIG_UTF8, ISO-8859-1 doc, ISO-8859-1 terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, A0 ok
CONFIG_UTF8, ISO-8859-1 doc, UTF-8 terminal, UTF-8 I/O:
all fail (not wrapped); after patch all ok.
CONFIG_UTF8, UTF-8 doc, ASCII terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, C2 A0 fail (drawn as "\001").
CONFIG_UTF8, UTF-8 doc, ISO-8859-1 terminal, UTF-8 or unibyte I/O:
ok,   ok,   ok, C2 A0 fail (not wrapped)
CONFIG_UTF8, UTF-8 doc, UTF-8 terminal, UTF-8 I/O:
all fail (not wrapped); after patch all ok.
2007-01-30 10:21:12 +02:00
Kalle Olavi Niemitalo
419857dce6
set_hline: Add some comments.
2007-01-29 21:07:13 +02:00
Kalle Olavi Niemitalo
ae5fe80100
Document that NBSP_CHAR is not used in UTF-8 strings.
2007-01-29 20:57:37 +02:00
Witold Filipczyk
f2a3983389
Limit the timeout to one second only under Windows.
2007-01-28 18:29:14 +02:00
Witold Filipczyk
b81bcd8307
Removed the buggy code.
2007-01-28 17:45:24 +02:00
Kalle Olavi Niemitalo
7185e926e6
"Do not show anymore" resets ui.success_msgbox, instead of toggling it.
...
Normally, the success msgbox is shown only if the ui.success_msgbox
option is set as 1, and clicking "Do not show anymore" would then
toggle the option to 0, and no more such msgboxes would appear.
However, if there already are two success msgboxes being displayed
(most likely in different terminals), then clicking "Do not show
anymore" in the first of them would reset the option to 0, but doing
the same in the second of them would toggle the option back to 1.
Rename toggle_success_msgbox to disable_success_msgbox, and make it
always reset the option to 0, regardless of the previous value.
2007-01-28 16:14:10 +02:00
Kalle Olavi Niemitalo
5b6dbcc879
default_listbox_ops_messages: Make static and const.
2007-01-28 14:52:09 +02:00
Kalle Olavi Niemitalo
da759b10f0
add_dlg_button_do: Let file point to const.
2007-01-28 14:44:24 +02:00
Kalle Olavi Niemitalo
be9660f7d0
Make all instances of struct widget_ops const.
...
And widget_type_to_ops[] too.
2007-01-28 14:41:40 +02:00
Kalle Olavi Niemitalo
d40cccef0f
Make widget.ops point to const.
2007-01-28 14:38:53 +02:00
Kalle Olavi Niemitalo
3756bec9e0
get_opt_rec, get_opt_rec_real: Let name point to const.
2007-01-28 14:01:24 +02:00
Kalle Olavi Niemitalo
33b2db7053
toggle_success_msgbox: Call option_changed; was a TODO.
...
This change assumes that option change hooks allow a NULL session.
The only one that did not was change_hook_css, which I fixed in
commit 4adcae682f
.
2007-01-28 14:00:14 +02:00
Kalle Olavi Niemitalo
ff4c103a78
Bug 827, display_codepage: Call option_changed.
...
This change allows screen_driver_change_hook to detect that the
charset has been changed to UTF-8 and set screen_driver.utf8 = 1.
redraw_screen then calls get_screen_driver, which propagates the flag
to terminal.utf8. That in turn avoids an assertion failure in
handle_interlink_event.
2007-01-28 14:00:06 +02:00
Kalle Olavi Niemitalo
5367209702
mem_align_alloc__, add_bytes_to_string__: Let file point to const.
2007-01-28 02:12:39 +02:00
Kalle Olavi Niemitalo
fd27919f91
add_format_to_string: Let format point to const.
2007-01-28 02:05:52 +02:00
Kalle Olavi Niemitalo
a4293ed606
string_concat: Assume all variadic arguments point to const.
2007-01-28 02:04:00 +02:00
Kalle Olavi Niemitalo
66614acbc0
add_file_to_string: Let filename point to const.
2007-01-28 01:50:06 +02:00
Kalle Olavi Niemitalo
f47bdd76d6
init_string__: Let the file parameter point to const.
2007-01-28 01:46:30 +02:00
Kalle Olavi Niemitalo
0ba497b0d4
xstrcmp: Make both parameters point to const.
2007-01-28 01:43:49 +02:00
Kalle Olavi Niemitalo
0ee76a0ef3
straconcat: Assume all arguments point to const.
2007-01-28 01:42:08 +02:00
Kalle Olavi Niemitalo
03ccf0b2b1
add_to_strn: Let the src parameter point to const.
2007-01-28 01:39:45 +02:00
Kalle Olavi Niemitalo
ac339cf5e5
elinks_ulongcat: Make the static strings const.
...
And simplify an expression to avoid a cast.
2007-01-28 01:28:44 +02:00
Kalle Olavi Niemitalo
ada3858372
color_specs: Make const.
2007-01-28 01:13:53 +02:00
Kalle Olavi Niemitalo
0484f68b69
get_color_string: Return a pointer to const.
2007-01-28 00:52:21 +02:00
Kalle Olavi Niemitalo
add2a5d1b5
add_quoted_to_string: Make the src parameter point to const.
2007-01-28 00:20:59 +02:00
Kalle Olavi Niemitalo
4adcae682f
change_hook_css: Don't use the ses parameter.
...
It might be NULL.
2007-01-27 22:33:02 +02:00
Kalle Olavi Niemitalo
233c59b9c2
l_set_option: Correct the args to option_changed().
...
Should have been in commit 2e5488ba3d
.
2007-01-27 22:31:47 +02:00
Kalle Olavi Niemitalo
90f1fc5a62
src/Makefile: Add a TAGS target.
2007-01-27 21:03:09 +02:00
Kalle Olavi Niemitalo
6a1d21441e
Document the parameters of change_hook_T.
2007-01-27 20:34:18 +02:00
Kalle Olavi Niemitalo
2e5488ba3d
option_changed: Merge the 2nd and 3rd parameter.
...
All callers were passing the same value for both.
2007-01-27 19:52:49 +02:00
Kalle Olavi Niemitalo
7bfd9703d9
toggle_option: Remove an obsolete comment.
...
option_changed already calls the change hooks so there's no need to
have a TODO comment about calling them.
2007-01-27 19:49:19 +02:00
Kalle Olavi Niemitalo
22f7468013
Make arrays of option change hooks const.
2007-01-27 19:00:47 +02:00
Kalle Olavi Niemitalo
ba5f683dcb
l_set_option: Use option_changed() instead of inline code.
2007-01-27 18:41:57 +02:00
Kalle Olavi Niemitalo
f4709c3794
Bug 882: Replace C1 controls with spaces in UTF-8 to the terminal.
2007-01-27 11:12:22 +02:00
Kalle Olavi Niemitalo
564a6b9602
Bug 882, add_char_data: Document the charsets being used.
2007-01-27 10:25:51 +02:00
Kalle Olavi Niemitalo
65645624b4
cp1250, cp1257: Don't map undefined bytes to U+0000.
2007-01-27 09:58:18 +02:00
Kalle Olavi Niemitalo
5882ec0ce7
Make color256_seqs and color_true_seqs const.
2007-01-25 01:04:19 +02:00
Kalle Olavi Niemitalo
649f470fe5
add_string_to_string: Make the "from" string const.
2007-01-25 00:33:17 +02:00
Kalle Olavi Niemitalo
61520b9040
Make inactive screen drivers const.
2007-01-25 00:21:45 +02:00
Kalle Olavi Niemitalo
11006800b5
Make struct strings const in underline mode setup and teardown.
2007-01-25 00:11:38 +02:00
Kalle Olavi Niemitalo
c62e23c161
Make struct strings const in frame mode setup and teardown.
2007-01-25 00:09:07 +02:00
Kalle Olavi Niemitalo
8dd400d49f
Make frame translation tables const.
2007-01-25 00:05:36 +02:00
Kalle Olavi Niemitalo
34c636026d
draw_line: Make it more obvious that line points into an array.
2007-01-24 23:15:07 +02:00
Kalle Olavi Niemitalo
3b7c021254
Comment changes only (about charsets in terminals).
2007-01-24 23:11:17 +02:00
Kalle Olavi Niemitalo
448f1b55cd
Make some small arrays const.
2007-01-24 23:08:25 +02:00
Kalle Olavi Niemitalo
18771fdedb
Bug 924, my_timegm: Added a comment about 2100 not being a leap year.
2007-01-13 15:38:02 +02:00
Kalle Olavi Niemitalo
01fdf6c4d3
Bug 923: Added comments about potential time_t truncation.
...
And removed Miciah's portability question; MSVC++2005 already
has a time_t longer than long, so assuming that time_t is long
is surely not portable.
2007-01-13 15:26:21 +02:00
Kalle Olavi Niemitalo
9385c93ffd
Move README.timegm to the same directory as date.c.
2007-01-13 10:01:51 +02:00
Kalle Olavi Niemitalo
f0dfd0504f
Route time_t-to-string conversions via time_print_T and TIME_PRINT_FORMAT.
...
The previous code just printed time_t directly with "%ld". Now it
instead first casts to time_print_T (currently long) and then formats
with TIME_PRINT_FORMAT (currently "ld"). So the varargs will now
always match with the format string, even if time_t is longer than
long. This still doesn't correctly format time_t values larger than
LONG_MAX, though. But now it is at least easier to find some of the
places that need to be changed to support that.
I located these time_t-to-string conversions by searching for
str_to_time_t, expires, and last_visit. There are still more places
that assume every interesting time_t value fits either in 32 bits or
in a long, e.g. in the cookie editor and in the ECMAScript interface.
Inspired by bug 6.
2007-01-12 23:47:45 +02:00
Kalle Olavi Niemitalo
f796051b4c
Bug 921, add_document_to_string: Fixed the UTF-8 half of the code.
...
* Recompute the pos variable for each cell, rather than just once per line.
This fixes the bug that only the first cell was being examined.
* Moved the bulk of the code outside the "if (frame && data >= 176 &&
data < 224)" conditional. This fixes the bug that only frame
characters were being added to the string.
* If the cell has UCS_NO_CHAR in it, don't add that to the string.
* Call encode_utf8 even for characters that originated from a frame.
This does not matter yet but will be correct if the function is
later changed to use the Unicode line-drawing characters for frames.
2007-01-07 00:09:34 +02:00
Kalle Olavi Niemitalo
06f058f5e8
Bug 752: Rearrange the docstrings of color-mode options.
...
In the elinks.conf.5 manual page, the text below the list of modes was
getting included in the last list item. This appears to be a design
error in AsciiDoc. Work around it by moving the text above the list.
2007-01-06 23:40:18 +02:00
Witold Filipczyk
1e8f8aa4a6
warning: ctext is used only with CONFIG_UTF8.
2007-01-03 21:55:39 +02:00
Kalle Olavi Niemitalo
a577455b24
Revise comments in struct codepage_desc and struct conv_table.
2007-01-03 07:32:00 +02:00
Kalle Olavi Niemitalo
455ea77ead
Make strings[] and no_str[] const.
2007-01-02 21:40:14 +02:00
Kalle Olavi Niemitalo
1668d78998
Make cp2utf8 return a pointer to const.
2007-01-02 21:39:34 +02:00
Kalle Olavi Niemitalo
62d321fb31
Make add_utf8 accept a pointer to const.
2007-01-02 21:36:03 +02:00
Kalle Olavi Niemitalo
176bbe83b6
Make input data and source file names const in memacpy and stracpy.
2007-01-02 21:26:55 +02:00
Kalle Olavi Niemitalo
882d179fc8
Make many string parameters const in the memory leak detector.
2007-01-02 21:25:20 +02:00
Kalle Olavi Niemitalo
251dcb7f9f
Make errfile point to const.
2007-01-02 21:22:51 +02:00
Kalle Olavi Niemitalo
ef96caad01
Make u2cp and u2cp_no_nbsp return a pointer to const.
2007-01-02 20:08:59 +02:00
Kalle Olavi Niemitalo
712803bbeb
Make entity_cache.result point to const.
2007-01-02 20:08:25 +02:00
Kalle Olavi Niemitalo
d314348e92
Make get_entity_string return a pointer to const.
2007-01-02 08:29:08 +02:00
Kalle Olavi Niemitalo
83f753f750
conv_table.u.str points to const.
2007-01-02 01:31:22 +02:00
Kalle Olavi Niemitalo
2434c180f2
Make no_str in charsets.c an array rather than a pointer variable.
...
This ensures that no other string can have the same address. It
probably never was a problem though, because the strings to which it
can be compared either are allocated from the heap or are in
strings[][] which already has unshared storage.
2007-01-02 01:07:57 +02:00
Kalle Olavi Niemitalo
161b46a479
Make table[] in charsets.c static.
...
There is no extern declaration for it anywhere.
2007-01-02 00:58:38 +02:00
Kalle Olavi Niemitalo
9d14ea4e5a
Document some variables in charsets.c.
2007-01-02 00:54:14 +02:00
Kalle Olavi Niemitalo
068663783c
insert_in_string: Let the seq parameter point to const.
...
It is the data to be inserted into the other string.
2007-01-02 00:47:38 +02:00
Kalle Olavi Niemitalo
10f1bd0efc
Document struct conv_table.
2007-01-01 21:11:46 +02:00
M. Levinson
26473f72f5
Python: Give goto_url_hook only one argument, like follow_url_hook.
...
On Dec 31, 2006, at 11:30am, Kalle Olavi Niemitalo writes:
>src/scripting/python/hooks.c (script_hook_url) calls hooks as
>goto_url_hook(new-url, current-url) and follow_url_hook(new-url).
>It has a comment saying that the current-url parameter exists
>only for compatibility and that the script can instead use
>elinks.current_url(). However, the current-url parameter was
>added in commit 87e27b9b3e
and is
>not in ELinks 0.11.2, so any compatibility problems would only
>hit people who have been using 0.12.GIT snapshots. Can we remove
>the second parameter now before releasing ELinks 0.12pre1?
The decision isn't up to me, but I think this is a good idea. Here's a
patch that would update the documentation and hooks.py, as well as hooks.c.
FYI, if this patch is applied then anyone who's still trying to use a
goto_url_hook that expects a second argument will get a "Browser scripting
error" dialog box that says:
An error occurred while running a Python script:
TypeError: goto_url_hook() takes exactly 2 arguments (1 given)
2007-01-01 17:45:36 +02:00
Kalle Olavi Niemitalo
e45f5a8915
utf8char_len_tab[] is const.
...
This change moves 256 bytes of data into a read-only section, perhaps
reducing memory consumption when multiple ELinks processes run in parallel.
2007-01-01 17:18:05 +02:00
Kalle Olavi Niemitalo
4ae90c798c
Bug 919, mem_mmap_realloc: Don't overflow the buffer when shrinking it.
...
The bug was possible only #ifndef HAVE_MREMAP, thus not on Linux.
2006-12-31 09:49:13 +02:00
Miciah Dashiel Butler Masters
4d10c3fb8c
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-12-30 11:22:34 +00:00
M. Levinson
e978853f63
Use document->cached in the Python scripting backend
...
As commit 7db8abf6e7
does for Lua
and the document info box, change the Python scripting backend's
current_document and current_header APIs to use document->cached
instead of find_in_cached so the currently displayed document
will be used rather than the latest version of the document.
2006-12-30 11:20:30 +00:00
Miciah Dashiel Butler Masters
896cdab771
Re-use @fs in activate_link instead of introducing a new local variable
...
This optimisation is made possible by commit
15dce57bc9
.
2006-12-30 11:17:43 +00:00