Miciah Dashiel Butler Masters
1377fb0f2e
Global history: fix locking issue
...
Introduce a new list, global_history_reap_list, and a new routine,
reap_deleted_globhist_items, which deletes unused items from that
list. In done_global_history_item, do not free the item; just move it
to that list. Call global_history_reap_list in add_global_history_item
and free_global_history.
2006-05-03 13:50:38 +00:00
Witold Filipczyk
c3f17eadeb
Ecmascript: activate link only when onClick returns true
2006-05-02 13:47:16 +02:00
Witold Filipczyk
9f69170c2a
fixup_select_state was unnecessary
2006-05-02 12:56:05 +02:00
Witold Filipczyk
cdd86d3c20
Ecmascript: write to the variable selectedIndex. Not tested
2006-05-02 11:28:41 +02:00
Witold Filipczyk
d9d6bc23ae
Ecmascript: introduced selectedIndex
2006-05-02 09:36:23 +02:00
Pavol Babincak
9d1008c523
Added utf8_prevchar for moving throught UTF-8 string to left.
2006-05-01 22:58:51 +02:00
Witold Filipczyk
c540a9ed63
Ecmascript: more id checks
2006-05-01 19:55:43 +02:00
Witold Filipczyk
8761bf04a9
Ecmascript: check also id, not only name of form controls. This is required
...
by scripts at http://www.ecs.com.tw/
2006-05-01 19:37:54 +02:00
Witold Filipczyk
ad160766b8
Added id to the form control. id is used by scripts
2006-05-01 19:22:07 +02:00
Witold Filipczyk
79a6fc1905
Pressing button caused not only onclick action, but also
...
"goto current page". See test/ecmascript/onclick.html.
Tell me if this breaks something
2006-04-30 17:02:48 +02:00
Miciah Dashiel Butler Masters
e27596c5dc
SMJS: Add the elinks.load_uri(uri, callback) interface.
...
|callback| will be applied to the cache object when the download of
|uri| completes.
2006-04-30 04:22:11 +00:00
Miciah Dashiel Butler Masters
3b64f2e9e8
Preserve the text when doing a prefix completion.
2006-04-29 22:55:32 +00:00
Miciah Dashiel Butler Masters
6d3b2a97f6
Ignore text after the cursor when performing a completion. The text will
...
be deleted.
2006-04-29 22:30:07 +00:00
Witold Filipczyk
dc8f89e5b1
SEE: see_eval_stringback returns either string when SEE_value is string
...
or NULL otherwise. At www.ecs.com.tw hyperlinks didn't "work".
When document.browse.forms.confirm_submit is 1 there is a problem with
big dialog box.
2006-04-15 19:22:38 +02:00
Witold Filipczyk
2a21b01583
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-04-15 07:29:44 +02:00
Miciah Dashiel Butler Masters
8adb976885
Add backspace-prefix to the main map, to backspace the last entered
...
digit of the prefix.
2006-04-14 21:55:42 +00:00
Miciah Dashiel Butler Masters
90f71fe6e4
Highlight links as one enters link prefixes.
2006-04-14 21:46:35 +00:00
Witold Filipczyk
3feb4a55a4
SEE: window.navigator is alias for navigator
2006-04-13 22:47:32 +02:00
Pavol Babincak
7951d7bf22
Added: split line after any double-width character in html renderer.
...
Note: there are ugly bug (feature?) - when there isn't enought room for
whole double-width char two double-chars are displayed. Can be seen on
table with double-width chars reduced as much as possible.
2006-04-09 19:17:16 +02:00
Pavol Babincak
dd05c89d49
Replaced utf8_len with cells.
2006-04-09 19:07:43 +02:00
Pavol Babincak
161ccf9eae
Use unicode_val_T instead of uint16_t for unicode data + cell count fix.
2006-04-09 17:04:47 +02:00
Pavol Babincak
c8a6a4c44d
Fix broken double-width chars when displaying menu or dialog.
2006-04-09 16:59:27 +02:00
Pavol Babincak
69a1c40fbd
Replace double-width chars in html renderer with ' ' if there isn't space.
...
Instead of double-width chars use ' ' in html renderer if there isn't
enought room for it.
2006-04-09 16:58:00 +02:00
Pavol Babincak
20331ffd74
Use unicode_val_T instead of uint16_t for unicode data.
2006-04-09 16:52:23 +02:00
Pavol Babincak
b0e2840f0d
When double-width character in mainmenu is on last collumn don't show it.
2006-04-08 00:42:41 +02:00
Pavol Babincak
3c019606b2
Correct split on punctuation in BFU text.
...
When CONFIG_UTF_8 is defined but utf8 isn't used.
2006-04-08 00:37:25 +02:00
Pavol Babincak
662ffb903c
Modified inpfield to be able to work with double-width UTF-8 chars.
...
Note: there is ugly hack in ACT_EDIT_BACKSPACE where last byte of UTF-8
character is removed and then moving to left until complete UTF-8
character is found.
2006-04-08 00:16:10 +02:00
Pavol Babincak
129bd2f444
Added function utf8_ptr2chars for counting number of characters in string.
2006-04-07 22:06:17 +02:00
Witold Filipczyk
6d0fe1e28f
lzma files with end of stream marker are handled by allocating
...
2 MB buffer.
2006-04-07 19:55:07 +02:00
Witold Filipczyk
18280cafbb
Code generated by tcc was broken for those boolean expressions
2006-04-06 22:07:45 +02:00
Witold Filipczyk
4f15dd9a2d
Python.h must be included as last to satisfy tcc, but Python redefines
...
_POSIX_C_SOURCE macro, so #undef here to avoid warnings
2006-04-06 00:52:17 +02:00
Witold Filipczyk
043939806d
Redefined buggy isdigit. ELinks built with tcc works
2006-04-05 23:35:04 +02:00
Witold Filipczyk
8b77bc6617
enum connection_state instead of int to satisfy tcc
2006-04-05 16:27:16 +02:00
Witold Filipczyk
55bd690b88
Files under /usr/share/doc/ncurses-c++-devel-5.5 (directory with
...
+ in filename) were unreachable. This is fix for it
2006-04-04 20:21:20 +02:00
Witold Filipczyk
d50de58af9
s/dump-color_mode/dump-color-mode/ . Made name consistent with other options
2006-04-04 15:27:14 +02:00
Witold Filipczyk
83d0d6f84a
Fixed the memleak
2006-04-02 17:57:12 +02:00
Witold Filipczyk
c571aea567
Ecmascript: 8 last urls opened by window.open() remembered in a safer way.
2006-04-02 17:00:55 +02:00
Witold Filipczyk
9cca645dac
Added the "Add server" option to the cookie manager. It creates new cookie
...
for given server.
2006-04-01 20:22:18 +02:00
Witold Filipczyk
55176d79de
Added info about lzma to the "About" dialog
2006-03-31 20:35:08 +02:00
Kalle Olavi Niemitalo
8fc8a00844
accel-check: add_uri_command_to_menu now wants the title as a parameter.
...
Thus, each caller must now choose the accelerator key and declare the
accelerator contexts (i.e. menus) to which it may add the command.
Also, use only one context for tab_menu.
These changes fix the following bugs in accelerator conflict detection:
* "~Pass frame URI to external command" may be displayed together
with "Pass tab URI to e~xternal command", but that was not
declared.
* "Pass link URI to e~xternal command" was declared as being in
the tab menu, but it is actually displayed in the link menu.
2006-03-26 20:52:11 +00:00
Miciah Dashiel Butler Masters
d7a964efaf
SMJS: fix segfault on exit
...
Create and immediately destroy a context when initialising the SMJS
document scripting module, because SMJS crashes on exit if there has
been no context created since it started, which is the case if one does
not load any documents.
2006-03-26 20:28:25 +00:00
Witold Filipczyk
dd93d35f4c
Missing lzma.h
2006-03-25 11:40:09 +01:00
Witold Filipczyk
7d1a966239
lzma encoding support using LZMA SDK. Original lzma executable decompresses faster than this code. I have no idea why.
2006-03-24 12:30:54 +01:00
Witold Filipczyk
dc075685ae
ECMAScript: better handling of set action
2006-03-21 18:45:40 +01:00
Witold Filipczyk
b3acfd79f2
Fixes cache-control issue. See elinks-users mail from 28 Oct 2005
2006-03-21 16:17:56 +01:00
Witold Filipczyk
1fc28980d7
Parsing filesize on ftp.task.gda.pl
2006-03-16 22:13:40 +01:00
Kalle Olavi Niemitalo
7927fb737a
1. If neither CONFIG_88_COLORS nor CONFIG_256_COLORS is defined,
...
then dump_to_file_256 is defined in dump.c but not used.
If configure --enable-debug was used, then gcc warns about
the unused function, and the warning stops the build.
2. The description of document.dump.color_mode ends with a
newline, provoking a runtime warning from check_description
in src/config/options.c.
3. options.inc has preprocessor directives inside macro arguments.
That is not portable C. xgettext (GNU gettext-tools) 0.14.3 is
not smart enough to figure out the possible combinations, and
copies an incorrect string to elinks.pot.
2006-03-13 19:06:02 +01:00
Pavol Babincak
8b9d06c977
Convert link titles to correct codepage before displaying it on screen.
...
Don't replace UTF-8 bytes with '*'. Probably there is need to do better
check what will be displayed.
Also get_current_link_title is no longer pretty and trivial. (o:
2006-03-13 01:54:34 +01:00
witekfl
97d7a57b8a
Do not delete main menu while displaying dialogs or when mouse is
...
pressed outside menu bar
2006-03-11 21:08:02 +01:00
Pavol Babincak
7d4dedcb8d
Bug fix: dialog window opened with ELinks start wasn't right encoded.
...
term->utf8 should be set before computing anything to be written on screen.
But probably this is not the right place.
2006-03-07 00:38:41 +01:00
Pavol Babincak
509fe2cf0d
Added support for double-width UTF-8 checkboxes and listbox in dialogs.
2006-03-06 15:15:30 +01:00
Pavol Babincak
10303bb94a
Added support for UTF-8 (including double-width) texts in dialogs.
2006-03-06 06:18:47 +01:00
Pavol Babincak
dfe029bc27
Added support for correctly displaying double-width UTF-8 chars in buttons.
...
With UTF-8 support in terminal enabled it is possible to use double-width
UTF-8 strings as margins of buttons. Although they are displayed wrong when
UTF-8 support in terminal is disabled.
2006-03-06 06:09:58 +01:00
Pavol Babincak
38db20b776
Added format_only parameter for distinguish between formating.
...
Preparation for using struct terminal in formating functions.
By now distinguish between formating widgets and formating widgets with
displaying was done with term == NULL and term != NULL. I hope I'am
not wrong.
2006-03-06 06:01:12 +01:00
Pavol Babincak
f3a063f1ed
Corrected support for double-width UTF-8 chars in titles of dialogs.
2006-03-06 05:05:18 +01:00
Pavol Babincak
33c0943ce4
Modified titlebar for correctly displaying UTF-8 page titles.
2006-03-05 01:54:17 +01:00
Pavol Babincak
e0886dd842
Bug fix: menu with UTF-8 items was unneeded wider.
...
Also deal with double-width UTF-8 characters.
2006-03-05 01:15:26 +01:00
Pavol Babincak
b356da1850
Added better support for displaying double-width UTF-8 chars.
2006-03-05 00:37:10 +01:00
Pavol Babincak
79d4d74a22
Added functions for manipulating with UTF-8 strings.
2006-03-05 00:10:33 +01:00
witekfl
ab6f4ac818
Lines filled with spaces
2006-03-04 20:33:53 +01:00
witekfl
b08514c7e9
Color mode in dumps. To get color set appropriately document.dump.color or
...
--dump-color_mode. Background isn't set in 256 color mode. I don't know
why.
2006-03-04 14:33:28 +01:00
witekfl
e50581faf3
Menu bar moved at the end of windows queue. bfu_technology activated at the
...
right place.
2006-03-04 11:42:57 +01:00
witekfl
3f01c3d2fe
Display optionally tabs bar at top like other browser do.
...
TODO: input_line_layouter, ACT_MAIN_TAB_MENU
2006-03-04 10:24:37 +01:00
witekfl
a802f0fb3e
Someone, sometime ago wanted always visible menu bar. This is attempt to
...
handle it. I have no idea where to make initialisation call to
activate_bfu_technology.
2006-03-03 19:01:15 +01:00
witekfl
30a60caa12
SpiderMonkey: do not remember context. Maybe this time it won't hung.
2006-03-01 18:17:16 +01:00
witekfl
8f329a9b3c
sysmouse: Selection works after toggle mouse
2006-02-28 22:56:27 +01:00
witekfl
0a8009c63a
mouse: Write disable_mouse sequences only in xterm
2006-02-28 22:52:01 +01:00
witekfl
90c013cbd0
BSD: Decrease indentation level. Treat buttons 4 & 5 as wheel. If you want
...
to use wheel mouse on the console run moused with -z 4 option.
2006-02-28 19:42:58 +01:00
Miciah Dashiel Butler Masters
4b3d88dd6e
Delegate ECMAScript submodule initialisation the right way
...
Replace the ECMAScript module initialisation and de-initialisation
routines that wrapped the SMJS and SEE module initialisation and
de-initialisation routines by having the module system call the SMJS
and SEE routines its own darned self.
2006-02-26 08:51:36 +00:00
Timo Lindfors
212b4a2893
Fix bug #741 : "html comments shouldn't be evaluted inside STYLE elements"
2006-02-22 19:45:14 -05:00
Miciah Dashiel Butler Masters
b64b76a3ce
Revert bad stuff in a3fb98f499
...
Revert stuff that wasn't supposed to have been committed.
2006-02-19 07:31:39 +00:00
Miciah Dashiel Butler Masters
143398f09d
Unwrap a line in query_delete_selected_item.
2006-02-19 07:22:51 +00:00
Miciah Dashiel Butler Masters
b8063709c0
Query whether to delete the selected hierbox item if the user answers
...
no to confirmation to delete the marked item.
2006-02-19 07:19:35 +00:00
Miciah Dashiel Butler Masters
b97508e48a
Simplify query_delete_selected_item
...
Check whether the item can be deleted before allocating the context so
as to save a free in the case that the item cannot be deleted.
2006-02-19 07:15:27 +00:00
Miciah Dashiel Butler Masters
e9799a2265
Reflow the control flow in push_hierbox_delete_button
2006-02-19 07:13:37 +00:00
Miciah Dashiel Butler Masters
6683f14bc1
Factor query_delete_selected_item out of push_hierbox_delete_button.
2006-02-19 07:11:51 +00:00
Miciah Dashiel Butler Masters
d87a90da6b
Drop temporary variables when using listbox_message
2006-02-19 06:46:05 +00:00
Miciah Dashiel Butler Masters
a3fb98f499
src/bfu
...
Inconsequential change to push_hierbox_delete_button
Use item instead of context->item.
2006-02-19 06:22:12 +00:00
Pavol Babincak
f4a430e480
Support for double-width glyphs in DOM renderer
...
Removed duplicate code for UTF-8 in DOM renderer. Modified DOM renderer
to correctly displaying multi-width glyphs.
2006-02-18 20:28:01 +01:00
Pavol Babincak
5561437629
Added UTF-8 to ELinks version.
2006-02-18 20:28:01 +01:00
Pavol Babincak
fc5f2389ed
Support for double-width glyphs in plain renderer
...
Removed duplicate code for UTF-8 in plain renderer. Modified plain renderer
to correctly displaying multi-width glyphs.
2006-02-18 20:28:00 +01:00
Pavol Babincak
c726080def
Double-width glyph support in terminal draw
...
Added unicode_to_cell detect double-width glyphs. Modified terminal draw to
correctly accept double-width glyphs.
2006-02-18 20:28:00 +01:00
Pavol Babincak
81778bc5d7
Correct computing of cursor position in UTF-8 textarea.
2006-02-18 20:28:00 +01:00
Pavol Babincak
f9d67aeb73
Added configure option --enable-utf-8
...
For enabling better UTF-8 support by Witek and Scrool.
2006-02-18 20:28:00 +01:00
Pavol Babincak
3ffa7cac91
Bug fix: formating error in UTF-8 textarea
...
When textarea contains UTF-8 characters they are not correctly wrapped.
2006-02-18 20:27:52 +01:00
Pavol Babincak
585d69355a
Bug fix: hidden UTF-8 characters before end of input box
...
Bug fix: when UTF-8 characters are entered into input box they are hidden
before end of input box.
2006-02-18 20:27:51 +01:00
Pavol Babincak
0bacd766e2
Added UTF-8 char length lookup table
...
Added lookup table to quick get number of bytes of UTF-8 character from
first byte.
2006-02-18 20:27:50 +01:00
Pavol Babincak
259a64a7a7
Code cleanup.
2006-02-18 20:27:48 +01:00
Witold Filipczyk
44a1aa9c87
Witekfl's UTF-8 patch v5.
2006-02-18 20:27:46 +01:00
Kalle Olavi Niemitalo
4217f2c555
Merge with http://elinks.cz/elinks.git
2006-02-18 12:21:47 +02:00
Miciah Dashiel Butler Masters
190259ca22
mem_alloc_align: drop the obj type parameter
...
Instead use the object itself, i.e., replace typeof(obj) with
typeof(**ptr).
2006-02-17 17:32:59 +00:00
Miciah Dashiel Butler Masters
e6b9093f87
find_form_state: use mem_align_alloc to save some code
2006-02-17 16:52:38 +00:00
witekfl
fae675316b
Let BSD users use DEL on the console
2006-02-15 23:25:54 +01:00
Kalle Olavi Niemitalo
d66ed0e76d
Merge with http://elinks.cz/elinks.git
2006-02-15 22:13:55 +02:00
Eric Wald
3ce3f01f30
Add support for forcing wrapping at the screen boundary
...
This patch modifies ELinks wrapping behavior slightly.
* The wrap command now toggles line wrapping in HTML mode, as well as
text mode. Note that when the HTML view of a page is wrapped, its
source view is unwrapped, and vice versa.
* Tabs in text-mode lines are now handled correctly.
* Wrapping a line that reaches exactly to the edge of the screen will
no longer produce a blank line in text mode.
* Text within extra-wide table cells is now wrapped to less than the
screen width, to eliminate sideways scrolling.
The last point is only enabled by setting TABLE_LINE_PADDING to a
non-negative number, in the src/setup.h header file, because it is a
significant change of behavior from previous versions.
2006-02-15 15:50:29 +01:00
Kalle Olavi Niemitalo
3dcb386b81
Merge with http://elinks.cz/elinks.git
2006-02-12 23:42:05 +02:00
Miciah Dashiel Butler Masters
8ce8740359
SMJS: Return JS_FALSE if one specifies an invalid type of action for
...
a keybinding.
2006-02-12 21:20:36 +00:00
Kalle Olavi Niemitalo
e7dfe6d5da
Merge with http://elinks.cz/elinks.git
2006-02-12 23:15:59 +02:00
Miciah Dashiel Butler Masters
3dfa237982
Include bfu/msgbox.h for info_box.
...
This is clearly unnecessary as the code already builds, but it is more
proper to include the header file explicitely.
2006-02-12 21:07:15 +00:00
Miciah Dashiel Butler Masters
3bd14d8392
SMJS: elinks.alert: drop the extra 'error' text
...
Use info_box directly instead of via report_scripting_error by way of
alert_smjs_error, thereby avoiding the addition of extra text saying
that an error has occurred.
2006-02-12 21:05:35 +00:00
Miciah Dashiel Butler Masters
d5fe12b5f4
Merge script_hook_goto_url and script_hook_follow_url
...
Combine the two into the new script_hook_url and use the hook data field
to store the name of the appropriate ECMAScript routine.
2006-02-12 20:55:25 +00:00
Kalle Olavi Niemitalo
9b9da06eb7
Merge with http://elinks.cz/elinks.git
2006-02-12 19:26:09 +02:00
Miciah Dashiel Butler Masters
c776fab903
Initially place cursor on the current listbox item
...
Introduce the macros before_widgets and foreach_widget_back. Use the
latter in update_all_widgets instead of foreach_widget so that the
widgets are printed in reverse order, which means that any listbox is
drawn last, which allows it to grab the cursor from the selected button
when the dialogue box is initialised or redrawn.
Requested by Kirk Reiser for great usability with screen readers.
2006-02-12 17:11:57 +00:00
Kalle Olavi Niemitalo
a1f26c1f25
Merge with http://elinks.cz/elinks.git
2006-02-12 17:54:22 +02:00
Miciah Dashiel Butler Masters
daad05c055
Don't check is_in_progress_state before calling cancel_download
...
With commit 637f1e82e6
('NET: Merge
change_connection into cancel_download'), cancel_download returns
immediately if the connection is not in a result state, so save some
code by not checking is_in_progress_state before calling cancel_download.
2006-02-12 15:41:21 +00:00
Kalle Olavi Niemitalo
edd087c722
Merge with http://elinks.cz/elinks.git
2006-02-12 17:17:54 +02:00
Miciah Dashiel Butler Masters
2c087e52e7
Revert unstable 'Eval embedded scripts at once'
...
Revert commit 2f0490cb04
('Eval embedded scripts at once') and follow-up commit
997f61bb32
('Use document_view instead of
view_state. It is safer probably') because the change causes crashes on
numerous pages and just looks wrong.
2006-02-12 15:03:12 +00:00
witekfl
cfbe41aa8a
Linux and FreeBSD are not compatible. I prefer Linux
2006-02-12 14:19:39 +01:00
Kalle Olavi Niemitalo
49b70d838b
Merge with http://elinks.cz/elinks.git
2006-02-12 10:03:25 +02:00
Miciah Dashiel Butler Masters
a464157d4d
SEE & SMJS: document.write(ln): use all arguments
...
Additionally add a test to test/ecmascript/document_write.html.
Thanks to Kirk Reiser for observing that ELinks only printed the first.
2006-02-12 04:33:42 +00:00
Miciah Dashiel Butler Masters
7b092af628
SEE: document.writeln: always add new line
...
Add the new-line character even if SEE_value_to_unsigned_char returns
NULL.
2006-02-12 04:25:10 +00:00
Kalle Olavi Niemitalo
416bd01269
Merge with http://elinks.cz/elinks.git
2006-02-12 00:34:53 +02:00
witekfl
791cab91e7
Make ELinks FreeBSD friendly. Defined keys used on FreeBSD console
2006-02-11 21:37:49 +01:00
witekfl
15b52b62e4
REFERRER is back
2006-02-11 19:11:50 +01:00
Petr Baudis
c0f98c34ce
Revert witekfl's e723ddaee6
...
This is utterly silly and breaks plenty of stuff - Witek, you CAN'T append
slashes to all hosts just because some silly referer needs it, everywhere
else we NEED the hosts without slashes!
2006-02-11 17:44:54 +01:00
Kalle Olavi Niemitalo
37bea9cfdb
Merge with /home/kalle/src/MIRROR/elinks/.git
2006-02-11 09:39:41 +02:00
Jonas Fonseca
08b3d997b2
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-02-10 22:19:16 +01:00
Laurent MONIN
baf7b0e91d
Fix segfaults caused by ruby scripting (gentoo bug #121247 ). Backported
...
from gentoo portage tree.
2006-02-10 21:28:50 +01:00
Laurent MONIN
5860a44b7d
Fix compilation under gcc 4.x. Backported from gentoo portage.
2006-02-10 21:27:25 +01:00
Kalle Olavi Niemitalo
0066214b47
Merge with http://elinks.cz/elinks.git
2006-02-10 09:15:12 +02:00
Jonas Fonseca
1b4bee7a82
DOM: Change struct dom_string length member from size_t to unsigned int
...
Requested-by: Miciah
2006-02-10 01:25:48 +01:00
witekfl
6fe1a431f1
Sometimes scripts submit forms using buttons
2006-02-09 22:53:00 +01:00
witekfl
10589b04eb
Base href was lost while setting form->action by ECMAScript. This is
...
attempt to fix it
2006-02-09 22:50:30 +01:00
witekfl
e723ddaee6
Add slash after host. Required by URI_HTTP_REFERRER_HOST
2006-02-09 22:46:44 +01:00
Jonas Fonseca
e726be3a76
NET: Nullify download->progress when move_download args are in result state
...
This is another follow-up regression fix that made open and save actions in
the WTD-dialog not function correctly when the connection ended before they
were pressed.
Related: 347970988d
2006-02-09 00:32:51 +01:00
Jonas Fonseca
4b91866c84
GOPHER: Blast end_gopher_connection which now only wraps abort_connection
2006-02-08 21:47:54 +01:00
Jonas Fonseca
854bb90d88
NET: Move cache entry normalization to abort_connection
...
It simplifies the code and ensures that stuff like conn->from is properly
updated.
2006-02-08 21:40:08 +01:00
Jonas Fonseca
4bfd40ec10
NNTP: Use state instead of conn->state, since it hasn't been updated yet
...
Fixes: 1735f96a87
2006-02-08 21:04:19 +01:00
Jonas Fonseca
1735f96a87
FTP, NNTP: Normalize the cache entry before setting the connection state
...
... so it is normalized when the download callbacks are called.
2006-02-08 20:45:15 +01:00
Miciah Dashiel Butler Masters
ca56e3b185
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-02-08 14:12:13 +00:00
Jonas Fonseca
99000b1f2e
Merge with http://www.iki.fi/kon/2006/elinks.git#submit-button
2006-02-07 13:38:51 +01:00
Miciah Dashiel Butler Masters
2b3f6cf6a9
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-02-07 03:05:38 +00:00
Jonas Fonseca
03299d6c2e
Add documents displayed via "What to do" dialog to globhist
...
First the patch makes sure doc_loading_callback is always called from
tp_display even if the download is in result state. This is often the
case for local files that the user decides to display via the WTD dialog.
Furthermore, improve the adding to globhist part of doc_loading_callback,
so that it works also for downloads in result state where the
download->conn member is NULL. In addition to grabbing the URI from the
connection try also the cache entry if it is set.
Fixes: bug 355 (Documents displayed via WTD aren't added to globhist)
2006-02-07 02:25:27 +01:00
Jonas Fonseca
0d53158553
NET: Ensure that move_download sets new->conn to NULL when in result state
...
When in result state the connection might already have been freed.
2006-02-07 02:02:33 +01:00
Jonas Fonseca
ac1231ef2f
Describe the document.uri_passing option in more depth
...
Mention the *-external-command actions.
2006-02-07 01:03:13 +01:00
Kalle Olavi Niemitalo
262d592d23
Fix compile errors in call_onsubmit_or_submit #ifdef CONFIG_ECMASCRIPT.
...
The errors were caused by commit b623decfb5
.
Also, rename call_onsubmit_or_submit to call_onsubmit_and_submit.
2006-02-06 23:06:35 +02:00
Kalle Olavi Niemitalo
b623decfb5
Tell the selected submit button to the server.
...
Commit 9cc9db4e24
broke submit buttons
on HTML forms, so that the server no longer knows which button was
actually pressed.
<kahmalo> The bug with forms seems to be that try_submit_given_form (in
src/viewer/text/link.c) is the only function that runs "onsubmit"
scripts, and it does not care which of the submit buttons was
pressed; it calls submit_given_form which submits based on the first
item of the form. [20:57]
<kahmalo> or last, I don't know how the list works.
<kahmalo> try_submit_given_form could get the control via
get_current_link(doc_view) but I suppose it'd be cleaner to provide
that as a parameter. [20:58]
Originally posted as:
<mid:87ek2heebh.fsf@Astalo.kon.iki.fi>
<nntp://news.gmane.org/87ek2heebh.fsf@Astalo.kon.iki.fi>
<http://permalink.gmane.org/gmane.comp.web.links/2745 >
2006-02-06 20:57:08 +02:00
Kalle Olavi Niemitalo
b1f8756c59
Merge with http://elinks.cz/elinks.git
2006-02-05 17:48:43 +02:00
Miciah Dashiel Butler Masters
420f3072fb
refresh_view: drop unnecessary call to redraw_from_window
...
print_screen_status calls redraw_from_window, so there is no need to
call both.
2006-02-05 01:03:24 +00:00
Jonas Fonseca
347970988d
NET: Fix regression from the latest change_connection changes
...
This makes move_download not assume that there is a connection attached
when it is called. This is the case pretty often for file:// downloads when
dialogs are involved (query file) and the reason why it explicitly checks
if the connection state is 'in result state'. Anyway, fill the new download
struct with variabled from the old one instead of taking variables from the
connection struct.
This patch also adds some assertions and a few comments.
2006-02-04 23:20:40 +01:00
Jonas Fonseca
318a9b29fa
Merge with git+ssh://pasky/srv/git/elinks.git
2006-02-03 21:40:39 +01:00
Miciah Dashiel Butler Masters
b8ee886a60
sort_links: fix memory leak
...
Free document->lines1 and document->lines2 if they are already set. This
fixes a memory leak from commit 52d3a6411d
.
2006-02-03 20:12:24 +00:00
Jonas Fonseca
c51300066f
NET: Rename old to download in cancel_download
2006-02-03 10:44:30 +01:00
Jonas Fonseca
637f1e82e6
NET: Merge change_connection into cancel_download
2006-02-03 10:44:30 +01:00
Jonas Fonseca
33625ae9e2
NET: Move attaching of new download to move_download
...
This includes setting the new priority and adding the download to the list
of connection downloads. If the connection has no downloads set the
PRI_CANCEL priority; get_priority() requires that.
2006-02-03 10:44:29 +01:00
Jonas Fonseca
c2d5464910
NET: Minor tidyup
2006-02-03 10:44:29 +01:00
Jonas Fonseca
8b938cb7a6
NET: Move shortcut from change_connection to the two front-ends
2006-02-03 10:44:29 +01:00
Jonas Fonseca
500de86927
NET: Setup the new download in the start of move_download
2006-02-03 10:44:29 +01:00
Jonas Fonseca
3324496b57
NET: Replace change_connection with cancel_download and move_download
...
This simplifies unqueuing of downloads and makes it more obvious that
the 'change' being performed is to migrate or replace an old download
handle with a new one.
2006-02-03 10:44:28 +01:00
Jonas Fonseca
4a27637529
DOM: Cleanup the unused parts of the node interface
...
Take a quick stroll through the unchartered corners of the DOM node data
structures:
- Remove ununsed struct dom_node_id_item.
- Make the document node reference a future struct dom_document.
- Describe ideas for node data, e.g. the entity reference node should use
it for storing the unicode_val_T.
2006-02-03 10:44:27 +01:00
Jonas Fonseca
5bf39bd304
FSP: Check and exit the file 'writer' process if writes to stdout fails
...
This ensures that the 'writer' process will remove itself when the
main ELinks process for some reason decides to shutdown the connection.
Before the 'writer' process would complete it's task taking up unnecessary
system resources.
This is mostly an issue when fetching big files. Therefore only file
fetching is fixed. FIXME added about also checking return codes for write
associated with directory listing.
Reported-by: zas
2006-02-02 16:29:20 +01:00
witekfl
efc724101e
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-02-01 19:45:01 +01:00
Laurent MONIN
b99f5c4b9f
Include <sys/types.h> and fix compilation on an old PPC/Debian system
...
It should be included via elinks.h but apparently some other system header
can prevent this somehow on some systems.
Reported-by: Phillip Pi <ant@zimage.com>
2006-02-01 11:34:07 +01:00
Jonas Fonseca
6cd5e387e5
DOM: Change sgml-parser program to have sane exit code for incomplete input
2006-02-01 10:51:24 +01:00
Jonas Fonseca
c7843058fc
DOM: Convert to use enum dom_code
...
Doh, ended pushing out half finished commits. :(
2006-02-01 10:38:21 +01:00
witekfl
d267fcc747
SpiderMonkey: Handling both 'document.location.href ='
...
and 'document.location ='
2006-02-01 09:31:26 +01:00
Jonas Fonseca
a983603863
DOM: Rename src/dom/dom.h src/dom/code.h
...
Additionally, add API doc mark.
2006-01-31 23:30:55 +01:00
Jonas Fonseca
4de26051b9
Ignore test files
2006-01-31 22:23:22 +01:00
Jonas Fonseca
92a9cafb6e
DOM: Replace various DOM status/error/exception codes with dom_code enum
...
Replaces sgml_parser_code, dom_stack_code, and dom_exception_code and
generally tries to simplify things and remove redundant codes.
2006-01-31 22:01:35 +01:00
Jonas Fonseca
73c06aaa10
DOM: Add test for parsing randomized HTML
...
It uses mangleme by Michal Zalewski <lcamtuf@coredump.cx> to generate HTML
which is then fed into the sgml-parser program. By default 100 random HTML
documents are tested. But the test script takes the number of documents
to test against as an argument. Useful for torture testing the SGML parser.
2006-01-31 19:29:48 +01:00
witekfl
3c0c912198
SpiderMonkey: target was not set
2006-01-31 13:03:17 +01:00
Jonas Fonseca
3f878c6ce7
BOOKMARKS: Fix XBEL calling add_bookmark() with NULL title
...
It didn't check that both title and title->text was non NULL. In either
case it now passes "No title" string to add_bookmark().
Reported by Neuromancer.
Tested with both:
<bookmark href="empty://title"><title></title><bookmark>
<bookmark href="no://title"></bookmark>
2006-01-31 03:52:48 +01:00
8256d6b915
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 22:11:25 +01:00
4aaafc4716
Inroduced garbage collector. Disabled by default
2006-01-30 22:09:13 +01:00
Miciah Dashiel Butler Masters
db9768963f
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
...
git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 15:42:03 +00:00
41e8570e64
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-30 12:42:40 +01:00
fa93d05b7e
current_link_evhook: return effaced
2006-01-30 12:18:43 +01:00
1dae2926fd
Neither SEE nor SpiderMonkey tolerate return outside functions
2006-01-30 11:52:58 +01:00
b4d9b7f5a6
Make SpiderMonkey consistent with SEE. Do not cache ecmascript_objs
2006-01-30 11:15:04 +01:00
44710bb1e9
The same trick as in SEE: Remember last 8 locations and do not open
...
them again
2006-01-30 10:47:24 +01:00
aed26bf002
Introduced CGI module
2006-01-30 08:56:40 +01:00
Jonas Fonseca
f42dd94fb5
DOM: Fix test descriptions
2006-01-30 06:45:53 +01:00
Jonas Fonseca
7be0093e36
DOM: Add test for dumping DOM trees to SGML
2006-01-30 06:25:22 +01:00
Jonas Fonseca
f8a86a26c4
DOM: Add simple stack context based utility for dumping DOM trees to SGML
2006-01-30 06:07:16 +01:00
Jonas Fonseca
a3dcc7d5e5
DOM: Change the attribute node's quoted member to be unsigned char
...
It can hold NUL, ', or " depending on not quoted, single quoted or double
quoted.
2006-01-30 06:05:32 +01:00
Jonas Fonseca
bc50084475
DOM: Add get_dom_node_next()
2006-01-30 06:03:36 +01:00
Jonas Fonseca
ea675cbb6e
DOM: Fix get_dom_node_map_index() so it returns the correct ordered index
...
This was cause by the recent change to allocate string during incremental
parsing where the node string was set after insertion. Test for this in the
works.
Fixes: b6b6d3c67e
2006-01-30 06:02:02 +01:00
Jonas Fonseca
f268d0c495
DOM: Add missing config.h #include
2006-01-30 05:55:35 +01:00
Jonas Fonseca
ba2b6e633a
DIRLIST:Use directory listing initializer in the Gopher protocol module
2006-01-30 02:41:09 +01:00
Jonas Fonseca
94f4b2fd1d
DIRLIST: Cleanup macros used in the FTP directory listing
2006-01-30 01:29:40 +01:00
Jonas Fonseca
d8ef7e1b68
DIRLIST: Use directory listing initializer in the FSP protocol module
2006-01-30 01:25:39 +01:00
Jonas Fonseca
b567f6a5db
DIRLIST: Use directory listing initializer in the FTP protocol module
2006-01-30 01:25:30 +01:00
Jonas Fonseca
c96cb0bbae
DIRLIST: Use directory listing initializer in the file protocol module
2006-01-30 01:25:18 +01:00
Jonas Fonseca
865af9ac4a
DIRLIST: Add helper to at start of (HTML) directory listing
2006-01-30 01:22:31 +01:00
Jonas Fonseca
7d1ff4fbf1
Only add ending slash to directory URLs
...
Not even to directory names. We don't do that for file: or ftp: protocol.
Fixes: af2cc87054
2006-01-29 18:35:59 +01:00
Laurent MONIN
cf429c4ecc
FSP: trim trailing whitespaces.
2006-01-29 18:01:48 +01:00
Laurent MONIN
af2cc87054
FSP: display_entry() cleanup, and mark directories by an ending /
...
in lists.
2006-01-29 18:01:22 +01:00
Laurent MONIN
0c4bc5a362
FSP: reduce code redundancy, introducing display_entry().
2006-01-29 17:53:26 +01:00
Laurent MONIN
d07cf588bd
FSP: reduce code redundancy.
2006-01-29 17:48:09 +01:00
5511c5b748
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-29 16:51:11 +01:00
87e27b9b3e
goto_url_hook takes 2 params not 1. Some dumbprefixes defined in hooks.py
2006-01-29 14:58:03 +01:00
Jonas Fonseca
a236608554
Do not set the content type for FSP files
...
Simplify commit 8d4f44f2f1
, in particular
detecting MIME types for files. It is more consistent to do it the way
it was already done by the session/download code.
Instead, write a NUL byte to stderr when getting FSP files and only set
cache->content_type when the header string is non-empty.
Additionally it also moves close(stderr) after the fsp_error() in the
file handling part of do_fsp() so the error message is shown with the
correct type.
2006-01-29 14:27:14 +01:00
46aae704eb
Added slash to base href when directory didn't end with '/'
2006-01-29 13:22:05 +01:00
8cc828bf7c
Compilation fix
2006-01-29 12:28:05 +01:00
Jonas Fonseca
9fe0608bd2
DOM: Fix checking of out-of-bound access to scanned strings
2006-01-29 12:12:41 +01:00
Jonas Fonseca
ca5a5f230a
Make render_dom_node_source static
2006-01-29 12:11:35 +01:00
Jonas Fonseca
2e3e18595f
Normalize all links added by the plain renderer
...
Fixes problems with host or protocol parts not being lowercased. This
triggers an assertion failure when trying to download such links. Reported
by lindi-.
2006-01-29 09:04:52 +01:00
Jonas Fonseca
2918e3f595
DOM: Add STATIC_DOM_STRING macro and make INIT_DOM_STRING cleaner
2006-01-28 22:55:15 +01:00
Jonas Fonseca
58b8635caf
DOM: Add test to check that '\f' (form feed) counts as a newline
2006-01-28 22:51:52 +01:00
Miciah Dashiel Butler Masters
be07858b2b
Refactor the document.write routines
...
Factor js_document_write_do out of js_document_write and
js_document_writeln and document_write_do out of document_write and
document_write_ln.
2006-01-28 20:39:07 +00:00
Miciah Dashiel Butler Masters
5bcb1309da
Use enum connection_state
...
Use enum connection_state instead of int in load_uri,
proxy_uri, get_proxy_worker, and get_proxy_uri. See commit
d18809522e
. I hope that satisfies TCC.
2006-01-28 20:21:09 +00:00
669d4af154
Compilation fixes
2006-01-28 20:54:11 +01:00
645689f1aa
I have no idea why it is still crashing. This is last attempt
...
today to fix it
2006-01-28 19:57:40 +01:00
Jonas Fonseca
20f5b76bb2
ECMASCRIPT: Fix unused SEE specific variables when using spidermonkey
2006-01-28 18:26:45 +01:00
de468660f1
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 17:20:22 +01:00
71871edd43
Maybe this time it won't crash
2006-01-28 17:08:45 +01:00
Jonas Fonseca
c223f6ce94
Sed the expected output instead of the output from sgml-parser
2006-01-28 15:12:49 +01:00
Jonas Fonseca
03c467bcbf
Move URI normalization to the test library
2006-01-28 15:03:19 +01:00
7c7541f4d1
parent, self and top are the same since now
2006-01-28 14:15:55 +01:00
52d3a6411d
Sort links when necessary
2006-01-28 14:13:41 +01:00
dacb694e33
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 12:11:29 +01:00
997f61bb32
Use document_view instead of view_state. It is safer probably
2006-01-28 12:07:00 +01:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
6e4c80a29e
Avoid memleak
2006-01-28 08:37:58 +01:00
Jonas Fonseca
99067f0497
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 04:52:04 +01:00
Jonas Fonseca
b6b6d3c67e
DOM: Allocate all node strings when doing incremental rendering
...
This changes init_dom_node_() to take an allocated argument saying whether
to allocate or not. If the value is -1, node->allocated will be set to the
value of node->parent->allocated. This way the value is inherited like we
do it in the menu code. It should be a sane default since we eventually
want not to rely on the 'underlying' source of the document and there will
be less variables to pass around.
2006-01-28 04:51:25 +01:00
Jonas Fonseca
24a9d103b4
DOM: Add allocated flag to struct dom_node; replaces subtype flags
...
Prepare for handling of allocated strings in the various nodes.
2006-01-28 04:50:04 +01:00
Miciah Dashiel Butler Masters
495fb2805b
SMJS: Give user scripts access to the view_state
...
Introduce the view_state object to ECMAScript with properties .uri and
.plain and pass the current view_state to preformat hooks.
2006-01-28 03:27:45 +00:00
Jonas Fonseca
3b183c1685
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 03:36:47 +01:00
Jonas Fonseca
95c1de2315
Fix handling of incomplete processing instructions
...
When doing incremental rendering we now require the whole thing to be there
and that there is room for two tokens in the scanner token table. This is
necessary because we have to generate both a processing target token and a
processing data token to make life simpler for the parser.
Remove processing instruction data case label from the main parser loop. It
is safer this way since it already assumes that the processing target token
has been stored.
2006-01-28 03:35:36 +01:00
Jonas Fonseca
823c594524
Use ssize_t instead of size_t for length since it must carry a signed value
2006-01-28 03:24:16 +01:00
Jonas Fonseca
00c4e0bfa2
Do not attempt to read *string when string == scanner->end
...
There might be other places that needs to be reviewd for this.
2006-01-28 03:23:06 +01:00
Jonas Fonseca
d92a074e40
Fix parsing of '<a< b>' where the scanner didn't rewind to the proper place
...
Add test for this tag soup combo.
2006-01-28 03:21:27 +01:00
Laurent MONIN
5114c9d110
Trim trailing whitespaces.
2006-01-28 01:59:22 +01:00
Laurent MONIN
bae3b58146
Fix a potential memleak.
2006-01-28 01:58:00 +01:00
Jonas Fonseca
e5e06764c4
Improve checks for incompleteness when parsing attributes
...
Check whether there are '=' and value tokens before handling them. If there
is any doubt the whole attribute structure is 'pushed back' into the
stream. That way incremental parsing will not add the value as a new
attribute because the name token was handled in the previous parsing run.
2006-01-28 01:40:56 +01:00
Jonas Fonseca
4ab1dde874
Preserve the scanner state when it is not the 'default' state
...
This is necessary to make it possible to resume parsing of element
attributes. Allows the incomplete string in the parsing state struct to
be unset.
2006-01-28 01:24:30 +01:00
Jonas Fonseca
c6e83d1d9c
Assert parsing depth >= parser stack depth
...
Like the comment says popping parsing nodes during incremental parsing
might trigger this.
2006-01-28 01:12:03 +01:00
Jonas Fonseca
9e7b0d4fa3
Remove assertion logic from parse_sgml_attributes()
...
They are getting out of hand and making it hard to use the function in
'unusual' situations (like when resuming parsing inside elements).
2006-01-28 01:09:05 +01:00
Jonas Fonseca
1e104afbba
Improve error checking when adding nodes
...
Fail with SGML_PARSER_CODE_MEM_ALLOC.
2006-01-28 01:05:42 +01:00
Jonas Fonseca
74728cab05
Also set the node subtype for <?xml-stylesheet?>
2006-01-28 01:00:28 +01:00
Jonas Fonseca
bccf5512d6
Force an incomplete token for quoted attribute values when there's no end
2006-01-28 00:56:48 +01:00
Jonas Fonseca
a2376609e3
Expand the testing of incremental parsing
...
There are still some bugs to resolve.
2006-01-28 00:50:06 +01:00
1cd1786f9c
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-27 18:06:31 +01:00
b1b66db850
Success. document.write works for me.
2006-01-27 16:54:39 +01:00
9c9fa1d81c
Defined document.write and document.writeln for SEE
2006-01-27 14:55:53 +01:00
8bf45d0ece
Spidermonkey's document.write and document.writeln defined. They work,
...
but rendering doesn't work
2006-01-27 13:29:38 +01:00
2551fe3525
Render html written by document.write. I'm not sure if format_html_part
...
is called right way
2006-01-27 12:41:35 +01:00
62d42380f8
Added ret param for document.write
2006-01-27 12:07:45 +01:00
2f0490cb04
Eval embedded scripts at once
2006-01-27 10:26:58 +01:00
6761b3995d
Avoided code duplication
2006-01-27 10:08:19 +01:00
Jonas Fonseca
0f8aa77ebb
Add test for incremental SGML parsing
...
It is a loop that parses the same small document with various read sizes.
The sgml-parser program is updated to take --stdin option taking a the read
size as a required parameter.
2006-01-27 07:49:15 +01:00
Jonas Fonseca
b25cd27232
Add support incremental parsing
...
That is, add the last parts that saves and resumes previous incomplete
parsing states. Now the parsing stack push handler checks if the parent has
a resume flag set. When set, the incomplete fragment to resume is restored
and the new source fragment appended and parsing is continued.
2006-01-27 07:47:17 +01:00
Jonas Fonseca
9d91994f3c
Propone updating the scanner->state until incompleteness has been checked
...
That way the scanner state is meaningful when resuming during incremental
parsing.
2006-01-27 07:41:42 +01:00
e8030e09fd
Set text/plain for errors
2006-01-26 18:35:58 +01:00
8d4f44f2f1
Content-Type handling
2006-01-26 18:20:13 +01:00
f47daa2291
Use slashes after directories. Blocks are not used where there is only
...
one instruction
2006-01-26 14:34:11 +01:00
Jonas Fonseca
20498d7140
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-25 23:17:13 +01:00
Jonas Fonseca
bea1a0c559
Handle <base href=""> for HTML source rendering
...
Requested by witekfl.
2006-01-25 23:16:30 +01:00
Jonas Fonseca
89a95a5fc5
Rename enum html_element_type to html_element_mortality_type
...
This name is reserved for DOM.
2006-01-25 23:13:10 +01:00
witekfl
e5dbbff398
Set returned value.
2006-01-25 22:22:10 +01:00
witekfl
ea2d7a3325
Simplification.
2006-01-25 20:19:55 +01:00
Jonas Fonseca
afb45aace5
Add support for scanning comment endings such as '--!>' correctly
2006-01-25 18:18:01 +01:00
Laurent MONIN
cf8de45782
Cleanup and tidy up window.open workaround.
2006-01-25 17:20:47 +01:00
Laurent MONIN
f6f66a28c8
Fix warning: variable xxx might be clobbered by longjmp or vfork, that
...
occur with gcc 2.95.3.
2006-01-25 17:03:15 +01:00
witekfl
c204af75fe
Because of gradual rendering window.open is called many times with the same
...
arguments. This workaround remembers 8 last opened URLs and do not let
open them again.
2006-01-25 11:50:46 +01:00
c75fdeec39
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-22 10:27:13 +01:00
Jonas Fonseca
7e6f398602
Revert OBJECT_HEAD() part of tcc cleanups
...
The LIST_HEAD() change to OBJECT_HEAD() doesn't work when debuging is
enabled.
Fixes: d18809522e
2006-01-22 06:18:40 +01:00
Jonas Fonseca
ba3e4a611d
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-21 23:38:15 +01:00
61c43faacc
Do not include see/see.h in header files
2006-01-21 22:19:22 +01:00
d18809522e
Make elinks tcc (tiny C compiler) friendly.
...
If you want to try tcc use CC=tcc ./configure and make LD=tcc.
I built ELinks with tcc, but ELinks segfaults.
2006-01-21 21:33:23 +01:00
Jonas Fonseca
384a2d66e5
Fix inclusion of header files after CONFIG_{MD5,SHA1} were removed
...
Fixes: 206037eaa4
2006-01-21 08:44:19 +01:00
Jonas Fonseca
3f659f7876
Fix the mailcap test program's dependency on gettext
2006-01-21 08:32:17 +01:00
Jonas Fonseca
91e8fdf34b
Fix the EPLF FTP parser test to run FreeBSD
2006-01-21 08:28:57 +01:00
Jonas Fonseca
4570c4976e
Use CONFIG_ECMASCRIPT_SMJS in favour of CONFIG_SPIDERMONKEY, specificity!
2006-01-20 15:56:40 +01:00
Jonas Fonseca
2eba71d95b
Add support for testing normalization using the DOM configuration module
2006-01-20 02:08:46 +01:00
Jonas Fonseca
cc61578fcb
Fix node pushing in walk_dom_nodes()
2006-01-20 02:07:24 +01:00
Jonas Fonseca
22e647813e
Fix DOM_CONFIG_NORMALIZE_WHITESPACE comment
2006-01-20 02:06:41 +01:00
Jonas Fonseca
7fe214fbb2
Fix text node appending; fix DOM configuration parser
2006-01-19 04:54:30 +01:00
Jonas Fonseca
fe43bf8a4f
Fix leaks in the DOM stack tracer
2006-01-19 04:51:33 +01:00
Jonas Fonseca
126ae8c764
#include dom/node.h instead of dom/stack.h
2006-01-19 04:50:10 +01:00
Jonas Fonseca
cbee566144
Increase the max length of filenames to 15 for the LOG_* system
2006-01-19 04:25:11 +01:00
Jonas Fonseca
206037eaa4
Handle the logic for util/{md5,sha1} in the Makefile
2006-01-19 02:08:07 +01:00
Jonas Fonseca
359d835050
Handle the logic for util/scanner in the Makefile; less CONFIG_* variables
2006-01-19 01:24:42 +01:00
Jonas Fonseca
ba45514339
Change the SMJS scripting module name to Spidermonkey ECMAScript
2006-01-19 00:14:50 +01:00
Jonas Fonseca
c97b4be9b9
Move SUBDIRS and OBJS defining before their conditional defining
2006-01-18 21:53:13 +01:00
Jonas Fonseca
7f076a8832
Also compile in protocol/common when CGI is enabled
2006-01-18 21:50:43 +01:00
Miciah Dashiel Butler Masters
3b5724edd5
look_for_link: simplify string
...
Use stracpy(empty_string_or_(target_base)) instead of
null_or_stracpy(target_base) and then stracpy("") if that returns NULL.
2006-01-18 20:38:33 +00:00
Miciah Dashiel Butler Masters
958b0d308d
Re-introduce the stracpy in the correct place
...
See commit 836744ea84
and commit
bf3faa5c2b
.
2006-01-18 20:26:01 +00:00
witekfl
1d65718ace
When there is no frame with given name do goto_uri_frame using static
...
buffer.
2006-01-18 20:16:17 +01:00
witekfl
bf3faa5c2b
There is no reason to "stracpy" already allocated string.
2006-01-18 20:08:50 +01:00
witekfl
095e440270
Used protocol/common.h in CGI
2006-01-18 18:11:29 +01:00
Jonas Fonseca
b8230326ce
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-18 00:26:21 +01:00
2de1a840a6
I was wrong. self is function object, thisobj is peculiar object
2006-01-17 20:29:48 +01:00
Jonas Fonseca
34b12d21bd
Upgrade to use dom_stack_codes in the callbacks
2006-01-17 16:58:19 +01:00
Jonas Fonseca
2cd151c5c5
Add parse_dom_config() which converts a textual config list to flags
2006-01-17 16:55:10 +01:00
Miciah Dashiel Butler Masters
836744ea84
js_window_open: Fix extra free that I just introduced
...
Assign deo->target a copy of target instead of target itself because
delayed_goto_uri_frame frees deo->target and SpiderMonkey owns target.
Reported by Jonas.
2006-01-17 03:15:56 +00:00
Laurent MONIN
dab904cff5
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-17 01:19:17 +01:00
Laurent MONIN
3133db3474
Use elinks_ulongcat() instead of snprintf().
2006-01-17 01:18:45 +01:00
Jonas Fonseca
c7bdf62152
Remove unused fsp_info struct; use sizeof(*table); fix dir entry hiliting
2006-01-17 00:54:06 +01:00
Laurent MONIN
864745b55e
Make 8-bytes buffer more obvious.
2006-01-17 00:48:25 +01:00
Jonas Fonseca
28fbb9317b
Simplify URI string grapping; make dir listing more like FTP; use READ_SIZE
2006-01-17 00:40:27 +01:00
Laurent MONIN
a9907297b4
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-17 00:22:40 +01:00
Jonas Fonseca
54863e537f
Minor space cleanups; use pid_t; abort_connection() will close_socket()
2006-01-17 00:06:24 +01:00
Laurent MONIN
491654975d
Trim trailing whitespaces.
2006-01-16 23:51:02 +01:00
Laurent MONIN
8fe86eac0b
Typo fix.
2006-01-16 23:50:34 +01:00
Jonas Fonseca
bb12fbca37
Add protocol/common files ;)
2006-01-16 23:42:17 +01:00
Jonas Fonseca
0955086a6f
Move close_all_non_term_fd() shared by SMB and FSP to protocol/common
...
Stick a note near the OBJS sorting that it is there also to filter out
duplicates, which are now occuring with SMB and FSP compiled in.
2006-01-16 23:32:27 +01:00
Miciah Dashiel Butler Masters
466bb18be0
Move delayed_open to src/terminal/tab.c
...
The two copies of delayed_open in src/ecmascript/spidermonkey/window.c
and in src/ecmascript/see/window.c are identical, so move them
to src/terminal/tab.c and eliminate the duplication.
2006-01-16 19:28:03 +00:00
Miciah Dashiel Butler Masters
1f68492d57
Move delayed_goto_uri_frame to src/session/task.c
...
Until the last change in src/ecmascript/see/window.c, the two copies
of delayed_goto_uri_frame in src/ecmascript/spidermonkey/window.c and
in src/ecmascript/see/window.c were identical. That change applies to
both versions, so move the newer one to src/session/task.c and eliminate
the duplication. Also move struct delayed_open to src/session/session.h.
2006-01-16 19:18:33 +00:00
178c50cf40
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-16 16:18:52 +01:00
6cd9a11fdc
Use frame->name instead of target avoiding possible segfault.
2006-01-16 14:32:13 +01:00
b8126ea9de
Introduced ecmascript submodules
2006-01-16 14:14:14 +01:00
8782b01659
thisobj is for function object, self is for
...
object
2006-01-16 13:51:08 +01:00
04b253eef9
Make PHP 5 happy.
2006-01-16 11:45:17 +01:00
bb9b4437fa
- FSP protocol
2006-01-16 11:40:13 +01:00
Jonas Fonseca
1d52d67e50
Add get_dom_node_child() which searches for a node with given type
2006-01-16 07:11:02 +01:00
Jonas Fonseca
6c85c0f009
Add DOM configuration inspired module
...
It add support for normalizing a DOM document in various ways, such as
removing comments, converting CDATA section nodes to text nodes, cleanup
whitespace, etc.
Use it in the RSS renderer to sanitize the text to be rendered.
2006-01-16 05:12:34 +01:00
Jonas Fonseca
768f97c38e
Add get_dom_node_prev() which gets the previous sibling of a DOM node
2006-01-16 05:10:22 +01:00
Jonas Fonseca
4e6b05394d
ADD DOM_STACK_CODE_FREE_NODE so callbacks can remove nodes when popping
2006-01-16 05:09:45 +01:00
Jonas Fonseca
eecc22751d
Use dom_stack_code enum for dom_stack_callback_T
2006-01-16 00:55:58 +01:00
Jonas Fonseca
4a2cde1c00
Introduce dom_stack_code enum and use it for push_dom_node()
2006-01-16 00:40:51 +01:00
Jonas Fonseca
6deb090b48
Blast some more .vimrc files which for some strange reason was uncommitable
2006-01-15 19:14:10 +01:00
Jonas Fonseca
2748d043f9
Autogenerate .vimrc files and put the master in config/vimrc
...
This changes the init target to be idempotent: most importantly it will now
never overwrite a Makefile if it exists. Additionally 'make init' will
generate the .vimrc files. Yay, no more stupid 'added fairies' commits! ;)
2006-01-15 18:38:58 +01:00
Kalle Olavi Niemitalo
5a5d223020
Merge with http://elinks.cz/elinks.git
2006-01-15 15:06:08 +02:00
Laurent MONIN
c1305b3e5b
#define filenames.
2006-01-15 09:56:19 +01:00
Jonas Fonseca
53dea9c89e
Change the Guile hooks file name from internal-hooks.scm to hooks.scm
2006-01-14 22:36:23 +01:00
Kalle Olavi Niemitalo
a7e465d785
Merge with http://elinks.cz/elinks.git
2006-01-14 21:38:13 +02:00
Kalle Olavi Niemitalo
5ab2a1ef6e
Merge with 0fae27fc27
...
(via http://elinks.cz/elinks.git )
Resolved conflicts in src/osdep/newwin.c.
2006-01-14 21:37:33 +02:00
Kalle Olavi Niemitalo
556f933728
Merge with 80b0607167
...
(via http://elinks.cz/elinks.git )
2006-01-14 21:33:04 +02:00
Kalle Olavi Niemitalo
c31450e862
Merge with 76751d1935
...
(via http://elinks.cz/elinks.git )
2006-01-14 21:31:24 +02:00
Kalle Olavi Niemitalo
89fe822f70
Merge with 6a9ea02f3a
...
(via http://elinks.cz/elinks.git )
2006-01-14 21:30:12 +02:00
Kalle Olavi Niemitalo
df4bf7f9ec
Merge with cd493ae7a8
...
(via http://elinks.cz/elinks.git )
2006-01-14 21:12:49 +02:00
Jonas Fonseca
082031c10c
Fix SGML parser test program
2006-01-14 12:44:06 +01:00
Jonas Fonseca
c8aa6c2360
Move struct sgml_parsing_state near the parsing state managing
2006-01-14 12:11:35 +01:00
Jonas Fonseca
e70b779366
Add code member to struct sgml_parser and simplify parsing state setup
...
parse_sgml() now just pushes a text node on the parsing state and the push
handler will now call parse_sgml_plain() and save the return code in
parser->code so parse_sgml() can return it. Much simpler.
2006-01-14 12:09:17 +01:00
Jonas Fonseca
b9316b3a9c
Fix a few possible leaks
2006-01-14 12:06:10 +01:00
Jonas Fonseca
0950996dd8
Change parse_sgml() to take buf+bufsize instead of DOM string
2006-01-14 11:32:11 +01:00
Jonas Fonseca
0c866fd8ae
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-14 11:01:28 +01:00
Jonas Fonseca
5d38e99465
Sort Makefile conditionals
2006-01-14 10:41:58 +01:00
Jonas Fonseca
af564bb101
Fix typo
2006-01-14 08:24:11 +01:00
Jonas Fonseca
aecfb28711
Cleanup SGML info backends #includes and description
2006-01-14 08:07:00 +01:00
Laurent MONIN
b7b33bae9b
Fix a memleak that may occur on systems without alloca(), backport from
...
gettext 0.14.5.
2006-01-13 13:58:13 +01:00
Laurent MONIN
f7e435fcf3
Upgrade config.charset to latest version from gnu gettext.
2006-01-13 13:22:09 +01:00
Laurent MONIN
5685221512
Trim trailing whitespaces.
2006-01-13 00:11:39 +01:00
Laurent MONIN
768a962077
Add a comment about CONFIG_TCP_INTERLINK.
2006-01-13 00:10:06 +01:00
Laurent MONIN
bdc59d5ac4
Store lib.o name in a variable named LIB_O_NAME.
2006-01-12 19:06:50 +01:00
Laurent MONIN
7cc17f7dce
Cosmetic change.
2006-01-12 18:44:26 +01:00
Laurent MONIN
fd39e595a3
CONFIG_SEE -> CONFIG_ECMASCRIPT_SEE.
2006-01-12 17:33:33 +01:00
Laurent MONIN
2965be7721
There is no SEE scripting anymore so fix that conditionnal.
2006-01-12 17:23:05 +01:00
witekfl
cbb1c5ea23
Fixes some bugs related with SEE
2006-01-12 15:21:32 +01:00
Jonas Fonseca
3e202cd2ef
Include osdep/stat.h to get S_* macros
2006-01-12 03:26:58 +01:00
witekfl
0fae27fc27
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-11 20:40:57 +01:00
witekfl
80b0607167
Prevent flooding. Similar to rate_limit. What is the origin of "flood" is
...
unknown to me.
2006-01-11 20:40:22 +01:00
Laurent MONIN
3f9bb0d7f9
CONFIG_BEOS -> CONFIG_OS_BEOS
2006-01-11 20:12:59 +01:00
Laurent MONIN
202965d338
CONFIG_WIN32 -> CONFIG_OS_WIN32
2006-01-11 20:10:27 +01:00
Laurent MONIN
86f5f2cf48
CONFIG_UNIX -> CONFIG_OS_UNIX
2006-01-11 20:10:27 +01:00
Laurent MONIN
9eafa94fd9
CONFIG_RISCOS -> CONFIG_OS_RISCOS
2006-01-11 20:10:26 +01:00
Laurent MONIN
b6ccfc0e07
CONFIG_OS2 -> CONFIG_OS_OS2
2006-01-11 20:10:26 +01:00
Laurent MONIN
a9b8abb70c
2006-01-11 14:14:11 +01:00
Laurent MONIN
52537b6733
2006-01-11 14:10:58 +01:00
Laurent MONIN
76751d1935
2006-01-11 14:10:51 +01:00
Laurent MONIN
5805586f0f
2006-01-11 14:10:41 +01:00
Laurent MONIN
4b2b5798ab
2006-01-11 14:07:17 +01:00
Laurent MONIN
f7a2dfc12a
CONFIG_LUA -> CONFIG_SCRIPTING_LUA
2006-01-11 14:06:13 +01:00
Laurent MONIN
043e6aa4e7
More white lines.
2006-01-11 13:45:09 +01:00
witekfl
6a9ea02f3a
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-11 13:20:38 +01:00
witekfl
179fdf2bb1
Global open() and alert(). Both ECMAScript engines has similar state.
...
Both doesn't work with my bank account :(
2006-01-11 13:19:51 +01:00
Jonas Fonseca
2d80258f72
Mark doc'd headers with: /* API Doc :: <api-name> */
2006-01-11 11:03:59 +01:00
witekfl
c2e9448f49
Fixed focus() in SEE ecmascript.
2006-01-11 09:17:17 +01:00
Jonas Fonseca
1d2a6e4d1b
Introduce CONFIG_ECMASCRIPT_SMJS used for Spidermonkey document scripting
...
It makes it possible to build with SEE document scripting and Spidermonkey
browser scripting.
2006-01-11 02:21:53 +01:00
Jonas Fonseca
d160a9993e
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-11 01:59:04 +01:00
Jonas Fonseca
4b132e0f63
A few compile fixes
...
You should _always_ #include "elinks.h" before other ELinks header files,
to take care of CONFIG_DEBUG. Drop unused variable.
2006-01-11 01:57:03 +01:00
Jonas Fonseca
ccc6527bba
Fix smjs scripting #ifdefs to use CONFIG_SM_SCRIPTING
2006-01-11 01:55:24 +01:00
Laurent MONIN
3efe402722
Complete the list of S_I* macros.
2006-01-10 23:59:14 +01:00
Laurent MONIN
b8e64a5ee0
Simplify secure_open() call, make it a wrapper around secure_open_umask().
2006-01-10 23:49:35 +01:00
Laurent MONIN
151bcbd3a2
Prefer S_I?USR and S_IRWXU over obsolete S_IREAD, S_IWRITE, S_IEXEC.
2006-01-10 23:40:39 +01:00
Laurent MONIN
88de36b8d2
Use mode_t and mode macros everywhere.
2006-01-10 23:36:06 +01:00
Laurent MONIN
9b88da873a
Use mode_t and mode macros everywhere.
2006-01-10 23:35:22 +01:00
Jonas Fonseca
cd493ae7a8
Remove see.o
2006-01-10 20:38:43 +01:00
Kalle Olavi Niemitalo
9deceafa0b
Merge with http://elinks.cz/elinks.git
2006-01-10 21:02:21 +02:00
witekfl
d8592e4f99
Alternative experimental ECMAScript engine.
2006-01-10 19:17:29 +01:00
Jonas Fonseca
d2e346436a
Hmm, seem b.delta decided not to become 0x03B4 like it should
2006-01-10 15:39:11 +01:00
Jonas Fonseca
b673e64e10
As a stop gap measure avoid using NULL entry->nonce and realms
...
Reported by xmath. Obviously needs to be looked into.
2006-01-10 15:35:15 +01:00
Jonas Fonseca
63d754f85b
Convert the RSS title string
2006-01-09 19:14:28 +01:00
Jonas Fonseca
9877579c63
This years batch of Gopher fixes
...
Two crash fixes, and really make the directory 'view' the default.
2006-01-09 15:13:44 +01:00
Jonas Fonseca
dd2516f597
Oops, someone added stuff he wuz not s'posed to
2006-01-09 14:11:29 +01:00
Jonas Fonseca
620730e642
Document the DOM scanner
2006-01-09 14:01:48 +01:00
Jonas Fonseca
3b166b0633
Document the DOM stack
2006-01-09 12:44:57 +01:00
Jonas Fonseca
938c8a80b4
Support more implicit markup of source files
2006-01-09 11:01:36 +01:00
Jonas Fonseca
4dd9db446b
init_html_parser_state(): Drop local html_element variable
2006-01-09 02:56:44 +01:00
Jonas Fonseca
20bd19e4c5
The RSS document title to channel->title
2006-01-09 02:18:57 +01:00
Kalle Olavi Niemitalo
7c80c67759
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-09 02:09:59 +01:00
Jonas Fonseca
5339525f1d
Oops, kill_html_stack_top() -> pop_html_element()
2006-01-09 01:40:16 +01:00
Jonas Fonseca
fe10af364d
Introduce pop_html_element(); wraps kill_html_stack_item(..., html_top)
2006-01-09 01:29:40 +01:00
Jonas Fonseca
94fd9303f3
Introduce html_bottom; similar to html_top
2006-01-09 01:24:54 +01:00
Jonas Fonseca
27283098f4
Clearify code a little
2006-01-09 01:24:38 +01:00
Jonas Fonseca
5808b4ae0c
Make html_top have a pointer type; use it to declare format and par_format
2006-01-09 01:22:33 +01:00
Kalle Olavi Niemitalo
2cfd0a9bb4
Merge with http://elinks.cz/elinks.git
2006-01-09 02:20:27 +02:00
Jonas Fonseca
db11b6452f
Fix a typo and a ref:[]
2006-01-09 01:20:03 +01:00
Jonas Fonseca
5b818b20ba
Use the new asciidoc code markup to document the DOM sgml parser
2006-01-08 23:36:07 +01:00
Laurent MONIN
8fe7eb0357
check_uri_file(): use strcspn().
2006-01-08 19:06:46 +01:00
Miciah Dashiel Butler Masters
5525339901
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-08 07:43:44 +00:00
Miciah Dashiel Butler Masters
38fe0f7292
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-08 07:34:59 +00:00
Jonas Fonseca
bc55cd55cb
Add the basic support for rendering RSS documents
...
It is very simple for now, so it only displays headlines and doesn't
support a whole lot of RSS flavours.
2006-01-08 03:44:23 +01:00
Jonas Fonseca
2f9c406ef1
Introduce add_to_dom_string() and turn init_dom_string() into its user
2006-01-08 03:40:54 +01:00
Jonas Fonseca
acb1f7e74d
Refactor computation of scanner error string length to get_sgml_error_end()
2006-01-07 23:51:19 +01:00
Jonas Fonseca
534a16fff1
Improve error detection
2006-01-07 23:40:21 +01:00
Laurent MONIN
8f2d4860bc
Trim trailing whitespaces.
2006-01-07 21:02:51 +01:00
Laurent MONIN
eda6529ced
check_uri_file(): optimize by not using strlen() more than needed.
2006-01-07 21:00:51 +01:00