1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00
Commit Graph

2292 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
042f9bade4 Rewrite wiki to en.wikipedia.org, avoid server bug.
<http://www.wikipedia.org/w/wiki.phtml?search=sue%20lawley>
incorrectly redirects to
<http://en.wikipedia.org/w/wiki.phtml?search=sue%2520lawley>
which searches for "sue%20lawley" rather than "sue lawley".
By using en.wikipedia.org directly, we avoid the server bug.
Prompted by an elinks-users post on 2007-07-27.

I asked on #wikimedia-tech, and www.wikipedia.org does always
redirect to en.wikipedia.org; it does not guess any other
language based on headers or IP addresses or such.  Also, the
redirection exists only for compatibility, and skipping it
avoids a few roundtrips to the server.  So this change is good
even if the server is eventually fixed.
2007-07-31 18:44:09 +02:00
Kalle Olavi Niemitalo
db13653fb0 Bug 968: Don't use copy_chars in justify_line.
All the needed memory has been allocated before the loop so we can use
copy_screen_chars() directly.  This avoids the assertion failure in
copy_chars() for width==0 and should be a bit faster too.  According
to ISO/IEC 9899:1999 7.21.1p2, memcpy() doesn't copy anything if n==0
(but the pointers must be valid).
2007-07-30 19:00:42 +02:00
Witold Filipczyk
eecba4a96c Revert "bug 968: fixed."
This reverts commit cd8008225c.
2007-07-30 19:00:21 +02:00
Kalle Olavi Niemitalo
0afe741ac0 Doxygen: Define CONFIG_ECMASCRIPT and CONFIG_ECMASCRIPT_SEE. 2007-07-30 18:59:25 +02:00
Witold Filipczyk
cd8008225c bug 968: fixed. 2007-07-29 16:17:11 +02:00
Kalle Olavi Niemitalo
8ff098573d Doxygen: more links in terminal/screen.c 2007-07-29 15:45:17 +02:00
Kalle Olavi Niemitalo
f0c32905de TAGS: recognize static INIT_LIST_OF 2007-07-29 15:45:11 +02:00
Kalle Olavi Niemitalo
3eb4b8cecb Doxygen: expand INIT_LIST_OF 2007-07-29 15:45:05 +02:00
Kalle Olavi Niemitalo
d524b6ee6d const in css_appliers[] 2007-07-28 12:56:08 +02:00
Kalle Olavi Niemitalo
880747575a Doxygenate src/document/css/ 2007-07-28 12:56:02 +02:00
Kalle Olavi Niemitalo
9254af74ed Doxygenate src/document/ (but not subdirs)
[ With some adjustments for my branch --witekfl ]
2007-07-28 12:55:55 +02:00
Witold Filipczyk
91e143efb2 Removed one line to let the patch apply. 2007-07-28 12:55:52 +02:00
Witold Filipczyk
0e2d5fadbc Ecmascript: Use LIST_OF for timeouts. 2007-07-28 12:43:05 +02:00
Kalle Olavi Niemitalo
61b0fd7d97 Doxygen: minor fixes in handle_trm 2007-07-28 12:29:43 +02:00
Kalle Olavi Niemitalo
00946a4d61 Doxygen: rename struct key to reduce spurious links
Rename struct key to struct named_key, use more const, change the num
member from int to term_event_key_T, and put a KBD_UNDEF at the end of
the array (even though it won't be read).
2007-07-27 20:23:17 +02:00
Kalle Olavi Niemitalo
403d6bdbd0 Doxygen: document text parameter of format_text{,utf8} 2007-07-27 20:23:12 +02:00
Kalle Olavi Niemitalo
faa2790700 Doxygenate src/terminal/ 2007-07-27 20:23:05 +02:00
Kalle Olavi Niemitalo
87189c33f9 Doxygen: Define CONFIG_UTF8. 2007-07-27 20:22:58 +02:00
Witold Filipczyk
5eb3c3274e Compilation fix. 2007-07-27 19:05:43 +02:00
Kalle Olavi Niemitalo
6beb55c145 Doxygen: @relates 2007-07-27 18:55:26 +02:00
Kalle Olavi Niemitalo
7dba2fd844 Doxygenate src/viewer/text/ 2007-07-27 18:55:11 +02:00
Kalle Olavi Niemitalo
d3cd3cace6 Doxygenate src/util/ 2007-07-27 18:54:49 +02:00
Kalle Olavi Niemitalo
35a0e25fe1 Doxygen: Disable many slow features. 2007-07-27 18:54:41 +02:00
Kalle Olavi Niemitalo
aeee1b70b0 Add src/Doxyfile for the whole ELinks. 2007-07-27 18:54:33 +02:00
Kalle Olavi Niemitalo
012674d8eb Doxygenate src/session/ 2007-07-27 18:54:26 +02:00
Kalle Olavi Niemitalo
646e6b5c49 Declare element types of lists. 2007-07-27 18:54:13 +02:00
Kalle Olavi Niemitalo
93f8ea24f7 New macro LIST_OF for better Doxygen support. 2007-07-27 18:53:58 +02:00
Kalle Olavi Niemitalo
a08d74042e Delete unused keybinding_dialog_list. 2007-07-27 18:53:49 +02:00
Witold Filipczyk
499cdfd842 buttons: Fixed all issues related to buttons.
Forms are not submitted when clicking on normal buttons.
Button's value is not added to the URI.
2007-07-27 12:39:38 +02:00
Kalle Olavi Niemitalo
31dc46544d Doxygen syntax fixes
Fix warnings:
dom/stack.h:70: Warning: explicit link request to 'pop_dom_node' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_nodes' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_state' could not be resolved
dom/stack.h:115: Warning: explicit link request to 'done_dom_node' could not be resolved

Use @returns instead of \return in src/document/css/parser.c,
and other such things.
2007-07-26 20:04:08 +02:00
Jonas Fonseca
b2b11886d9 Bug 723: Always get the current frame when loading frame files
This cleans up and changes the calling convention of
load_additional_file(), so that it now grab its own doc_view using
current_frame() and the struct session pointer in the file_to_load
object. By always looking up the current frame, corruption of doc_view
due to rerendering of the upper frame document is avoided.

The fix extends commit 6afdbf608f by
Witold, which moved the getting of doc_view in the other caller of
load_additional_file(). The additional clean up ensures that any future
users of load_additional_file() will not reintroduce a similar bug.

A possible future optimization would be to change load_additional_file()
to take the referrer as an argument.

[ One hunk removed, because it did not apply. --witekfl ]
2007-07-26 20:03:52 +02:00
Jonas Fonseca
8911b9283c Bug 896: use safe_strncpy when initializing the program field
This cleans up the previous fix and also fixes the problem mentioned
regarding ELinks still crashing when the first character is removed.
2007-07-26 19:56:05 +02:00
Witold Filipczyk
07b0598064 scan_http_equiv: Added missing CRLF to the header.
Noticed when viewing Russian docs of the flac.
2007-07-26 13:14:20 +02:00
Witold Filipczyk
d83989343a configure.in, lua: check for lua51 first. When both lua50 and lua51
are installed lua51 is preferred.
2007-07-22 22:43:24 +02:00
Kalle Olavi Niemitalo
ef198d2105 CSS: Count nested blocks when skipping.
When skipping "@media print { #foo {bar: baz} pre {white-space: normal} }",
the previous code would look for the first "{" and then the first "}", and
fail to skip the "pre" rule.  Seen at support.microsoft.com.

I originally posted this change as part of attachment 383 to bug 722.
2007-07-22 18:32:07 +02:00
Kalle Olavi Niemitalo
175e26c4ea Preserve underlines in links when justifying. 2007-07-20 21:12:58 +02:00
Kalle Olavi Niemitalo
54178b189f Bug 744: Consume semicolons and fix parameters of stubs.
Most stub protocol handlers were protocol_external_handler_T when they
should have been protocol_handler_T.
2007-07-19 18:25:58 +02:00
Jonas Fonseca
22cfb0b71c Add stub.o to cleaned files and more protocol module and handler stubs 2007-07-19 18:25:52 +02:00
Kalle Olavi Niemitalo
fd9468f0b6 Bug 744: More tests and fix failures. 2007-07-19 18:25:47 +02:00
Kalle Olavi Niemitalo
fa289ee12a Bug 744: Add tests. There are four failures. 2007-07-19 18:25:42 +02:00
Jonas Fonseca
fa786070f0 Remove normalization of "//" to "/"
This patch changes normalize_uri() to no replace "//" with "/" in URIs. This
fixed this bug but will also lead to possibility that duplicate entries can
exist in ELinks' cache. ELinks might be able to detect in another way by
hashing the content or something.

[ From attachment 310 of bug 744.  --KON ]
2007-07-19 18:25:38 +02:00
Kalle Olavi Niemitalo
d5e57fc2dd Added TODO comments about TERM_EXEC_NEWWIN. 2007-07-18 20:37:40 +02:00
Kalle Olavi Niemitalo
44fb868897 Win32: Get socklen_t from <ws2tcpip.h>. 2007-07-18 20:37:15 +02:00
Kalle Olavi Niemitalo
5b08cc5a5b Win32: Put .elinks in Application Data if %HOME% is undefined. 2007-07-18 20:37:10 +02:00
Kalle Olavi Niemitalo
fa33920da2 Win32: Don't check file_is_dir if name ends with backslash. 2007-07-18 20:37:04 +02:00
Kalle Olavi Niemitalo
b787dc49d0 Win32: End local subdir HREFs with "/" not "\".
The href attribute is supposed to be URL and so the directory
separator should not depend on the conventions of the local operating
system.
2007-07-18 20:36:59 +02:00
Witold Filipczyk
e6e8b3407d IPC: added the prefix 'my' to the semaphore functions.
sem_wait is already in libc (/usr/include/semaphore.h).
shmat returns -1 on failure, so check for it.
2007-07-16 23:18:05 +02:00
Witold Filipczyk
ca69d121d1 Last part of previous commit, which didn't apply cleanly. 2007-07-16 22:14:30 +02:00
Kalle Olavi Niemitalo
6503ebf8a3 Name the exec_on_terminal() fg values. 2007-07-16 22:08:50 +02:00
Kalle Olavi Niemitalo
b7618e7335 CSS bug 766: Parse the id and class attributes in advance.
time elinks -no-connect -no-home 'http://rss.slashdot.org/Slashdot/slashdot/to?m=5878'
Wait until finished loading, then press q and Enter.

before	19.96user 0.16system 0:25.97elapsed 77%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3630minor)pagefaults 0swaps
after	6.46user 0.12system 0:12.66elapsed 52%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3630minor)pagefaults 0swaps
before	18.02user 0.19system 0:23.86elapsed 76%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3572minor)pagefaults 0swaps
after	5.73user 0.15system 0:10.02elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3628minor)pagefaults 0swaps
before	19.80user 0.15system 0:25.14elapsed 79%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3461minor)pagefaults 0swaps
after	6.28user 0.13system 0:11.91elapsed 53%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3626minor)pagefaults 0swaps
2007-07-16 21:57:39 +02:00
Witold Filipczyk
8e7daa1a29 mailcap on slave: Fixed memleak. 2007-07-16 17:09:02 +02:00
Witold Filipczyk
40d3102bc7 Avoid races. 2007-07-16 11:37:28 +02:00
Kalle Olavi Niemitalo
8785ffc980 CSS: Document reparent_selector and make it static. 2007-07-16 11:32:08 +02:00
Kalle Olavi Niemitalo
abd900eeff CSS: Don't call list_empty within args of DBG. 2007-07-16 11:32:03 +02:00
Kalle Olavi Niemitalo
83d870a6d9 CSS: Move /* #define DEBUG_CSS */ to stylesheet.h.
That's where src/document/css/README says it should be.
2007-07-16 11:31:58 +02:00
Witold Filipczyk
4cf3130b53 IPC: simplification. Only one semaphore is required. 2007-07-15 16:35:12 +02:00
Witold Filipczyk
ab4e622452 Revert "IPC: slave_sem initialized to 1."
This reverts commit 539ed3a513.
2007-07-15 16:14:55 +02:00
Witold Filipczyk
539ed3a513 IPC: slave_sem initialized to 1. 2007-07-15 14:28:35 +02:00
Witold Filipczyk
c246b67ff9 Compilation fix, a bit ugly. 2007-07-15 14:07:19 +02:00
Witold Filipczyk
4a3559e0b2 IPC: Check headers. 2007-07-15 14:00:24 +02:00
Witold Filipczyk
f45d4c1782 Mailcap on slave terminals seems to work right.
Mailcap is AFAIK specific to UNIX like systems, so using shared memory
and semaphores is allowed. Using IPC it was easy.
IMHO, without shared memory it is much harder to do.
The code needs clenup, checking for header files etc.
2007-07-15 00:33:06 +02:00
Witold Filipczyk
6913f1b4f7 mime: Pass @term to the get_mime_handler.
@term will be used by proper mailcap handling on slave terminals.
2007-07-14 22:24:20 +02:00
Witold Filipczyk
199232b501 ipc: Added two semaphores and a shared memory block.
They will be used by mailcap on slave terminals.
2007-07-14 21:47:04 +02:00
Witold Filipczyk
9729ab5a58 Semaphores: The code taken from "UNIX Network Programming"
by W. Richard Stevens.
2007-07-14 20:02:59 +02:00
Witold Filipczyk
92f2e793e8 interlink: exported get_sun_path.
It will be used by semaphores and a shared memory in the future.
2007-07-14 16:45:32 +02:00
Witold Filipczyk
b196d8ee01 bug 181: Simplification. Reverted changes causing incompatibility. 2007-07-13 19:28:45 +02:00
Witold Filipczyk
6bc992250b bug 181: Allow edit textareas using an external editor on slave terminals.
Added EVENT_TEXTAREA used to notify the master terminal
about end of execution of an external program on a slave terminal.
The format of data sent to the master terminal by exec_on_slave_terminal
has changed. Now after 0, fg the value of term is sent.
Therfore this release of ELinks is incompatible with previous releases.
2007-07-12 21:20:58 +02:00
Kalle Olavi Niemitalo
4cca8f1a2c http doc: "e.g." rather than "ie." when it's an example 2007-07-12 18:25:21 +02:00
Kalle Olavi Niemitalo
3071f2b60b Bug 960: Redefine LOADMSGCAT_USE_MMAP instead of HAVE_MMAP.
And add a prominent notice as stipulated in GNU GPL version 2 section 2a.

[ From commit ba54124f16 in ELinks
  0.11.3.GIT.  --KON ]
2007-07-03 07:59:36 +02:00
Kalle Olavi Niemitalo
e2ce792ec9 Bug 957: if_assert_failed in ecmascript_put_interpreter.
[ Forward ported from commit 566039624f
  in ELinks 0.11.3.GIT.  --KON ]
2007-07-03 07:59:30 +02:00
Witold Filipczyk
82c832f514 DOM ecmascript: Removed unused functions. register_row does the job. 2007-07-02 11:46:01 +02:00
Witold Filipczyk
1db5affa6d DOM Ecmascript: Compilation fix when compiled --with-see. 2007-07-01 12:54:05 +02:00
Witold Filipczyk
f0c720c19b DOM ecmascript: Defined getElementById. 2007-06-29 17:37:33 +02:00
Witold Filipczyk
fc8c5fa024 DOM ecmascript: register/unregister anchors, applets, forms, images and links. 2007-06-28 15:25:45 +02:00
Witold Filipczyk
6efff6f21d DOM ecmascript: Defined properties of HTMLDocument. 2007-06-28 14:47:35 +02:00
Witold Filipczyk
6949b91db1 DOM ecmascript: moved the ecmascript_ctx to the struct dom_node.
JSContext is accessible from every node.
2007-06-28 14:17:17 +02:00
Kalle Olavi Niemitalo
4c81e5e1c8 Bug 755: Save the form_state index in a reserved slot, not as private data.
The previous code cast the integer (long actually) to void * and gave
that to JS_SetPrivate.  This did not work because JS_SetPrivate
expects pointers to be aligned and replaces the least significant bit
with a tag.  By using JS_SetReservedSlot instead, we get control of
the jsval conversions and can store the integer properly.
2007-06-25 18:42:05 +02:00
Kalle Olavi Niemitalo
af2f6e995a Bug 920, move_download: Sort the queue before calling cancel_download. 2007-06-24 11:59:30 +02:00
Kalle Olavi Niemitalo
712ffb13ee Change connection.pri[] to int, reverting part of 7215c964e4.
Revert part of commit 7215c964e40afe953787d7831b04182fbaba4662,
"Use real types (enum connection_{state,priority})." of 2005-06-14.

connection.pri[] is indexed by enum connection_priority, but its
elements are merely reference counts; they are never assigned from
or compared to enum connection_priority.  Defining the elements
as int will result in more readable output from GDB.

Noted in bug 920.
2007-06-24 11:59:24 +02:00
Witold Filipczyk
7101479366 DOM, ecmascript: Export jsrt. It will be used by DOM.
Nothing special else. I have no inspiration to do more.
2007-06-24 11:48:28 +02:00
Kalle Olavi Niemitalo
9a5a2ecc34 Bug 957: Assert that the ECMAScript interpreter is not running.
Add ecmascript_interpreter.backend_nesting, increment it when
beginning to evaluate an expression, and decrement it when evaluation
finishes.  Then assert that it is zero in ecmascript_put_interpreter.
This detects bug 957 and similar ones before they corrupt memory.
2007-06-22 18:31:36 +02:00
Kalle Olavi Niemitalo
ddcf329fa8 Link to gitweb at repo.or.cz, rather than pasky.or.cz.
The history converted from CVS is not in repo.or.cz though, so keep
referring to pasky.or.cz for that.  (We don't seem to use
"gitweb.elinks.cz", which is a DNS alias for pasky.or.cz.)

<paakku> Do you think we should maybe point people to gitweb at
    repo.or.cz rather than pasky.or.cz?
<pasky> absolutely
<pasky> actually I thought we already are pointing people at
    repo.or.cz
<pasky> at least there was some movement to do that already, I believe
    :)
2007-06-22 18:30:30 +02:00
Witold Filipczyk
a895696ca8 bug 957 fixed. 2007-06-21 10:31:12 +02:00
Witold Filipczyk
f9c2e832b0 date file,ftp: added forgotten spaces. 2007-06-19 09:28:50 +02:00
Witold Filipczyk
a3f45e7ff3 ftp, date: The same trick as for files. 2007-06-18 20:15:05 +02:00
Witold Filipczyk
ea4c09efd4 date: added the width for the month field to the date format.
Since glibc-2.6 Polish locale uses Roman numbers for months in dates.
VIII is 4 bytes long, so %4b. Without this directory listings look ugly.
It adds one space per line in the C locale. IMHO it is not a big problem.
2007-06-18 20:01:08 +02:00
Kalle Olavi Niemitalo
cb1658f399 URI: Inline check_uri_file.
And reorder the characters in the string given to strcspn(), to match
their expected order in the URI.  This is also how strcspn() is called
elsewhere in uri.c.
2007-06-17 21:11:20 +02:00
Witold Filipczyk
b2b4e67e0d DOM, ecmascript: removed superflous assignments. 2007-06-16 18:45:54 +02:00
Witold Filipczyk
b28eeb8a38 http-equiv: Do not parse more than one http-equiv="Content-Type".
Other browsers use only the first occurence of http-equiv="Content-Type".
ELinks parsed all and used the last one for the charset.
Noticed at http://gazetaolsztynska.wm.pl/ .
2007-06-15 21:10:19 +02:00
Witold Filipczyk
cd1ebf97b7 URI file: Fixed. CGI scripts work, URI fragments work too. 2007-06-14 08:02:29 +02:00
Witold Filipczyk
1629c572b7 uri, file: Commented out broken code.
CGI scripts using GET method didn't work.
2007-06-13 23:05:56 +02:00
Witold Filipczyk
3923a8c4fc DOM: Moved invocation of done_ecmascript_obj to the done_dom_node_data. 2007-06-13 12:24:00 +02:00
Witold Filipczyk
fd1dcfd781 DOM TR,TD: register/unregister cell. 2007-06-13 11:57:29 +02:00
Witold Filipczyk
f00433f233 DOM TR: register/unregister row. 2007-06-13 11:34:45 +02:00
Witold Filipczyk
0702ea97bd DOM TABLE: Redefined register_row and unregister_row. Small fixes. 2007-06-13 11:30:07 +02:00
Witold Filipczyk
c44db5b943 DOM, TableSection: Defined some properties. 2007-06-12 22:34:51 +02:00
Witold Filipczyk
3545c7225f DOM, SELECT: The type of the options property is struct dom_node *. 2007-06-12 18:42:39 +02:00
Witold Filipczyk
6e010d76ff DOM HTMLOptionsCollection: Reused HTMLCollection.
Note that the length property is read-only now.
2007-06-12 16:49:06 +02:00
Witold Filipczyk
46584fc5c0 DOM, HTMLCollection: Defined the namedItem method. 2007-06-12 16:39:44 +02:00
Witold Filipczyk
4df27a6700 DOM forms: register and unregister functions for FORM elements.
Elements like INPUT, TEXTAREA or SELECT look for the parent FORM
and register themselves to it. When those elements are freed they
unregister themselves.
2007-06-12 15:07:43 +02:00
Witold Filipczyk
c6274851b2 DOM, ecmascript: Argument of done functions changed to struct dom_node *.
node is needed by some unregister functions.
2007-06-12 14:37:31 +02:00
Witold Filipczyk
09db7aa8a0 DOM, ecmascript: Added some helper functions for handling forms.
Defined the item function of HTMLCollection.
2007-06-12 13:01:54 +02:00
Witold Filipczyk
829a953eb2 DOM: Added field ctx to the struct dom_node_list to easy get/set
the private data of an object.
2007-06-12 11:47:56 +02:00
Witold Filipczyk
a6eca1ae60 DOM: Export del_from_dom_node_list. 2007-06-12 11:44:58 +02:00
Witold Filipczyk
8b19aac004 DOM, ecmascript: In elements that have form property, this property points to
the node which contains that form.
2007-06-11 12:06:29 +02:00
Witold Filipczyk
9b23b1d013 DOM, ecmascript: Defined FIELDSET functions. 2007-06-11 11:33:21 +02:00
Witold Filipczyk
3f99ea9896 leds: Commented out redraw_terminal. The screen flickers with frames. 2007-06-10 21:54:33 +02:00
Witold Filipczyk
ba24e154e2 bug 955 continued: Do not call onsubmit for a BUTTON, either.
Added tricky code for calling submit() from onclick() of BUTTON.
2007-06-10 19:43:59 +02:00
Witold Filipczyk
820afbee0b bug 955: Do not call onsubmit for RESET. 2007-06-10 18:13:03 +02:00
Kalle Olavi Niemitalo
e8c8e65d66 SEE: Always use SEE_no_enumerator instead of NULL.
Although <see/object.h> of SEE 2.0.1131 has a comment saying that
SEE_objectclass.enumerator is optional and may be left NULL, SEE
crashes if one tries to enumerate the properties of an object created
from such a class.  Conveniently, it provides a suitable stub function.

http://www.adaptive-enterprises.com.au/bugs/show_bug.cgi?id=75
2007-06-10 17:49:05 +02:00
Kalle Olavi Niemitalo
04828f08b1 SMJS: Fix error "forms.namedItem is not a function".
Commit 63752c854b303f5f58636a512a137bf3702e051b on 2004-12-27
seems to have broken this.
2007-06-10 17:48:58 +02:00
Witold Filipczyk
7b26b1dffd DOM, ecmascript: Table with functions to make and done html objects. 2007-06-10 17:26:48 +02:00
Witold Filipczyk
446eec0bd3 http chunked: Better check for overflow. 2007-06-09 18:30:42 +02:00
Witold Filipczyk
a4140594f1 http chunked: avoid unsafe cases when chunks > 2GB.
This and previous commit were inspired by Jonas' mail on elinks-dev.
2007-06-09 17:26:15 +02:00
Witold Filipczyk
eb1fe8ee5a http: use off_t for the chunk size. 2007-06-09 11:40:13 +02:00
Witold Filipczyk
9fb5595948 http: used off_t instead of int.
The progress of files bigger than 2GB is shown properly.
2007-06-07 16:16:53 +02:00
Witold Filipczyk
096ba3068e DOM, ecmascript: Defined done_ functions. They will be called
from done_dom_node.
2007-06-06 12:16:27 +02:00
Witold Filipczyk
4f68b1af47 DOM, ecmascript: Added functions for creation SpiderMonkey's objects. 2007-06-05 22:18:11 +02:00
Witold Filipczyk
7a55be295c DOM ecmascript: data types conformable with the DOM2-HTML recomendation. 2007-06-05 12:47:56 +02:00
Kalle Olavi Niemitalo
ec32eeb1d3 SMJS: Correct sense of JS_ValueToInt32 return value test.
I made this bug in commit b53525e98e.
2007-05-31 16:48:46 +02:00
Jonas Fonseca
bd2503e81b Remove unused add handler in the option_type_info struct 2007-05-28 19:34:59 +02:00
Kalle Olavi Niemitalo
ea8f4b755d SEE: Define the synthetic argv as an array.
This does not change the behaviour but perhaps makes the code clearer.
2007-05-27 21:04:36 +02:00
Kalle Olavi Niemitalo
dafba56f7e SMJS: Assert that form_number of input_class is in range. 2007-05-27 20:52:48 +02:00
Kalle Olavi Niemitalo
62257c20af SEE: Assert that js_input.form_number is in range. 2007-05-27 20:52:41 +02:00
Kalle Olavi Niemitalo
5e0b86309c SMJS: comment changes 2007-05-27 20:50:29 +02:00
Kalle Olavi Niemitalo
09d0e88878 SMJS: Use JS_GetInstancePrivate where applicable.
This is a further precaution against reading a pointer from the wrong
type of object.  All of the JS_GetPrivate calls were already protected
with JS_InstanceOf checks if assertions are enabled, and many of them
also if assertions are not enabled.
2007-05-27 20:50:20 +02:00
Kalle Olavi Niemitalo
0417d84e74 SMJS: Check return values of JS_ValueToInt32. 2007-05-27 20:50:12 +02:00
Kalle Olavi Niemitalo
3f4846add0 Compare screen_driver.name with strcmp, not memcmp.
screen_driver_change_hook was comparing only strlen(name) characters
and ignoring the '\0'.  To reproduce the bug in ELinks 0.11.3 and
ELinks 0.12.GIT:

- Run TERM=screen elinks.
- In another terminal, run TERM=scr elinks.  Quit this slave ELinks.
- Open the terminal options dialog and set 16 colors.
- Open the option manager and change the terminal.scr.colors option to
  1 and back to 0.
- Note that ELinks no longer displays colors.

That bug could be fixed just by using len+1 instead of len.  However,
there is also another bug: memcmp may compare the specified number of
bytes, even if some of the earlier ones differ; thus, it could in
principle read past the end of the malloc block and thereby crash
ELinks.  Using strcmp may be a little slower but I do not believe it
could become a bottleneck.
2007-05-27 09:59:35 +02:00
Jonas Fonseca
6d14d95386 Simplify TESTDEPS maintainance by adding common objects in Makefile.lib 2007-05-26 20:21:15 +02:00
Jonas Fonseca
447fd16ae0 Fix 'make test' dependency when building test utility programs
Problems was caused by undefined symbols:

	src/util/conv.c:308: undefined reference to `is_cp_utf8'
	src/util/conv.c:320: undefined reference to `cp2u'
2007-05-26 20:21:09 +02:00
Jonas Fonseca
bd0e3a5bc1 DOM test: add test/ to SUBDIRS so DOM test is run for 'make test' 2007-05-26 20:21:03 +02:00
Jonas Fonseca
c192551773 DOM test: make die() in sgml-parser static 2007-05-26 20:20:58 +02:00
Jonas Fonseca
ee8a3fe651 DOM test: refactor options parsing in sgml-parser
Introduce get_opt() to do the tedious work of getting the right
argument for options expecting them and handles both '--opt=arg'
and '--opt arg'. As a side effect it also removes an unneeded
assignment of the source string for stdin.
2007-05-26 20:20:51 +02:00
Witold Filipczyk
c8d345aa12 Revert "make test: Fixed."
This reverts commit 4142f3c80a.
2007-05-26 20:18:39 +02:00
Witold Filipczyk
4142f3c80a make test: Fixed. 2007-05-26 20:09:40 +02:00
Witold Filipczyk
df3c3083f6 DOM: done_dom_html_data is accessible only with ECMASCRIPT enabled. 2007-05-26 13:09:17 +02:00
Jonas Fonseca
201ce1ec85 Use printf to handle test string containing escapes more portable
Works with both bash and dash. This reintroduces the fix to the
test-sgml-parser-basic test, and also fixes test-sgml-parser-incremental
and test-sgml-parser-lines, which Witek has reported as failing.
2007-05-26 13:01:22 +02:00
Jonas Fonseca
7d2eb84de0 Revert "Refactor test-sgml-parser-basic to work with non-bash shells"
This reverts commit 3f93148c9b.
2007-05-26 13:01:16 +02:00
Witold Filipczyk
21ed212b15 shadow: Draw a transparent shadow on the Linux console, too.
set ui.colors.color.dialog.shadow.text = "#555555"
set ui.colors.color.dialog.shadow.background = "black"

and enjoy!
2007-05-25 11:51:40 +02:00
Witold Filipczyk
1b85b63f97 file: set_nonblocking_fd when reading from the copiousoutput's pipe. 2007-05-24 12:29:29 +02:00
Witold Filipczyk
e75522d19c DOM: Defined properties of HTML elements.
All of them are the "unsigned char *" type. This should be changed.
2007-05-23 22:57:55 +02:00
Witold Filipczyk
d4adfb3cd0 bug 755: Fixed.
Remember the index of struct form_state in vs->form_info
instead of the pointer to it. The pointer may change,
the index is persistent.
The field ecmascript_obj of the struct form_state is unused.
2007-05-22 16:07:06 +02:00
Witold Filipczyk
b09135a612 SEE: bug 755 doesn't occur. 2007-05-22 10:45:36 +02:00
Witold Filipczyk
bb59860c23 ecmascript: Convert numbers using JS_ValueToInt32. 2007-05-22 09:36:39 +02:00
Witold Filipczyk
08cab91214 bug 755: attempt to fix this bug. 2007-05-21 12:50:27 +02:00
Witold Filipczyk
f70e438820 DOM: node was unitialized. 2007-05-20 21:03:15 +02:00
Witold Filipczyk
ca62325a53 speech: Compilation fix. 2007-05-20 20:39:54 +02:00
Kalle Olavi Niemitalo
dfb74267f8 Bug 461: Ensure contrast when filling with spaces.
So that the cursor will be visible in the Linux console.
2007-05-20 20:21:52 +02:00
Kalle Olavi Niemitalo
e57d1f6aba And ignore ID files while we're at it. 2007-05-20 20:21:47 +02:00
Kalle Olavi Niemitalo
2a2203ef92 Place the TAGS file in the source directory. 2007-05-20 20:21:40 +02:00