Jonas Fonseca
0546759b4b
Use struct dom_string for node->proc_instruction.instruction
2005-12-10 18:59:17 +01:00
Jonas Fonseca
9935bf2083
Convert some yet unused strings to use the dom_string struct
...
Also remove the unneeded path member from the dom_node_id_item struct. It
was obsoleted by the addition of dom_node->parent.
2005-12-10 18:51:08 +01:00
Jonas Fonseca
ed7a292966
Use struct dom_string for node->attribute.value
2005-12-10 18:42:54 +01:00
Jonas Fonseca
ce3778c3c0
Add struct dom_string
...
In time it should be used for all strings in the DOM engine.
For now it is just used for node->string.
2005-12-10 18:37:47 +01:00
Miciah Dashiel Butler Masters
f9dea85126
Drop a line that should have been dropped with commit
...
3719e75068
, 'Reduce code redundancy.'
2005-12-10 16:24:54 +00:00
Petr Baudis
0281f732ab
Fix broken onClick on checkboxes etc.
...
onClick on checkbox would get triggered before actually ticking the
checkbox, which is not the expected behaviour (apparently). This change
makes sure that we call the onClick event handler only after actually
doing our work with the checkbox/select widget (for the other widgets,
things should stay the same).
2005-12-10 03:48:42 +01:00
Russ Rowan
588ba7db30
fonseca: We don't do that for other downloaded files, so why add bt links?
...
(global history)
2005-12-09 19:25:06 -05:00
Jonas Fonseca
f9c8838465
The not so short BitTorrent TODO list
2005-12-09 22:43:28 +01:00
Russ Rowan
9bd00e0ad8
Added a short TODO list for fonseca.
2005-12-09 16:29:02 -05:00
Laurent MONIN
20cb9ad9ee
html_option(): optimize code.
2005-12-08 16:33:37 +01:00
Laurent MONIN
8fe86a1a63
Drop trailing spaces.
2005-12-08 16:27:51 +01:00
Laurent MONIN
3719e75068
Reduce code redundancy.
2005-12-08 16:26:37 +01:00
Laurent MONIN
1f7aa841aa
Simplify tests.
2005-12-08 16:25:22 +01:00
Laurent MONIN
d9f0de82f8
Use closing_tag variable in tests.
2005-12-08 16:22:53 +01:00
Laurent MONIN
37ec65247d
Minor code reordering.
2005-12-08 16:20:13 +01:00
Laurent MONIN
279f2bec93
Goto see instead of se.
2005-12-08 16:19:20 +01:00
Laurent MONIN
a499bf5a61
Introduce closing_tag variable.
2005-12-08 16:16:28 +01:00
Laurent MONIN
ae00f391f2
t_name -> name, t_namelen -> namelen.
2005-12-08 16:13:21 +01:00
Laurent MONIN
5f66f98b66
Prevent useless tests when @namelen is 0.
2005-12-08 16:11:19 +01:00
Jonas Fonseca
8aa078393a
Move dom_node_data union outside the dom_node struct
2005-12-08 03:26:34 +01:00
Jonas Fonseca
45958b773a
Merge with dom-stack-keep-nodes
2005-12-08 03:07:20 +01:00
Jonas Fonseca
4480a9a4cd
Removes node from the DOM tree when using the SGML stream parser
...
That should free up some short-term memory.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
2005-12-08 03:02:27 +01:00
Jonas Fonseca
8f97dc8403
done_dom_node(): remove the node from all parent lists
...
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
2005-12-08 02:59:40 +01:00
Jonas Fonseca
93fb17ea2a
Indent switch statement
...
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
2005-12-08 02:32:23 +01:00
Jonas Fonseca
ce5bf8c6f8
Fix DOM node list iterators macros
...
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
2005-12-08 02:04:13 +01:00
Jonas Fonseca
1c2f271782
Add parent member to dom_node
...
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
2005-12-08 01:35:48 +01:00
Laurent MONIN
a1284ccd1f
skip_table(): simplify code.
2005-12-07 20:51:09 +01:00
Laurent MONIN
f3838bac5b
parse_table(): cache to_upper() result.
2005-12-07 20:36:07 +01:00
Laurent MONIN
485e16c6c9
parse_table(): optimize code a bit.
2005-12-07 20:32:36 +01:00
Laurent MONIN
53cbf3e3df
parse_table(): introduce a local variable @is_header to cache test result.
2005-12-06 15:38:34 +01:00
Laurent MONIN
90d843e8fc
parse_table(): re-order code.
2005-12-06 15:35:52 +01:00
Laurent MONIN
a00dfbecf9
parse_table(): fix missing goto see.
2005-12-06 15:32:02 +01:00
Laurent MONIN
29a80ce4eb
parse_table(): optimize even more using @closing_tag.
2005-12-06 15:19:44 +01:00
Laurent MONIN
b63dd28500
parse_table(): use strlcasecmp() instead of strncasecmp().
2005-12-06 15:17:56 +01:00
Laurent MONIN
3fe59e8c7a
parse_table(): totally drop @t_name and @t_namelen in favor of @name
...
and @namelen.
2005-12-06 15:15:25 +01:00
Laurent MONIN
975a4251e8
parse_table(): reorder code to optimize even more.
2005-12-06 15:07:49 +01:00
Laurent MONIN
b6c54846ad
parse_table(): reduce code redundancy.
2005-12-06 15:02:45 +01:00
Laurent MONIN
a371f22b22
parse_table(): use intermediate variables to optimize tests.
2005-12-06 14:57:25 +01:00
Jonas Fonseca
b06a8adeac
Move parser root node initialization to init_sgml_parser()
...
... parse_sgml() in theory should be able to be called multiple times.
2005-12-06 12:30:53 +01:00
Jonas Fonseca
69b321cb5b
Replace struct cache_entry member with struct uri member
...
Reduces the number of (unused) dependencies. Also, update the #include
list removing old entries.
2005-12-05 23:47:23 +01:00
Jonas Fonseca
38b8503161
Remove document member from struct sgml_parser
...
The document URI can be accessed from the cache entry.
2005-12-05 23:31:54 +01:00
Jonas Fonseca
1d24d549e4
Merge with dom-parser-stream
2005-12-05 19:41:56 +01:00
Jonas Fonseca
c7ad6f967b
Introduce new pop_dom_state()
...
It's basically pop_dom_nodes() without the search part and is now used as a
backend in pop_dom_nodes(). Use it in parse_sgml_document() to avoid two
DOM stack searches in a row.
2005-12-05 19:40:35 +01:00
Jonas Fonseca
1c4a0d67ce
Restore highlighting of element end-tags
...
... by installing a pop-callback for elements and responding to whatever
the parser has put in the end_token parser state member.
2005-12-05 19:33:15 +01:00
Jonas Fonseca
9aebb66bce
Introduce separate push/pop callbacks
...
This should make it possible to do the SAX (parser stream thing) for XBEL.
And will also be used for fixing the end-tag highlighting.
2005-12-05 19:31:42 +01:00
Jonas Fonseca
d7d5fcab4d
Save the end tag token in the SGML parser state
...
... so that the renderer eventually can pick it up and highlight it.
2005-12-05 19:28:23 +01:00
Jonas Fonseca
7a912795e1
Make the parser stream mode work as intended
...
This makes the parser and renderer share the stack, most importantly the
callbacks are now those of the renderer. Disable node attribute rendering
code that worked around the attributes being visited in sorted order.
2005-12-05 19:25:13 +01:00
Jonas Fonseca
2dddf86acc
Initialize the renderer before initializing the parser
...
... so it is ready when/if the parser will push any initial states.
2005-12-05 19:20:48 +01:00
Jonas Fonseca
65b504f093
Remove all traces of the element end-tag hilighting hack
...
End-tags will stay uncolored for the next few commits.
2005-12-05 11:21:08 +01:00
Jonas Fonseca
4c8d871404
Introduce sgml_parser_type for specifying tree and streaming parsers
...
Mostly added for the future, since currently only one parser type is
supported.
2005-12-05 11:19:13 +01:00
Jonas Fonseca
05a61cd16a
Update the DOM stack comment for things to come
2005-12-05 11:16:52 +01:00
Jonas Fonseca
8f25d73013
Use separate data variables for storing DOM stack data
...
They will eventually have to share the stack.
2005-12-05 11:16:05 +01:00
Jonas Fonseca
f85b498375
Add FIXME about using DOM node subtypes when searching the DOM stack
2005-12-05 11:11:40 +01:00
Jonas Fonseca
208515c82f
Fix access to free()d memory in the DOM stack state data
...
There already was one work-around in the code related to clearing of the
state data after popping. Instead of storing a pointer to the state data in
the state we now store the depth of the state (in the stack) and use a
macro to access the state data. The bug occurred when reallocating the
stack state objects and the stack data pointers wasn't updated to point to
the newly allocated data.
2005-12-05 11:11:06 +01:00
Jonas Fonseca
cc416b2234
Prospone pushing of DOM nodes on the stack until they are fully initialized
...
Goes for both attributes and elements.
2005-12-05 10:26:55 +01:00
Laurent MONIN
eb74cdf6f9
html_button(): drop suspect line which has nothing to do with BUTTON
...
html element.
2005-12-05 09:57:54 +01:00
Laurent MONIN
59329dbc30
get_resource_info(): fix memory cache size display.
2005-12-05 09:37:29 +01:00
Laurent MONIN
e498b4bc74
Fix dump_frags() compilation (cache debug only).
2005-12-05 09:33:11 +01:00
Jonas Fonseca
cfb347bf45
Fix reporting of cache size in the resource dialog
...
The longlong bigval was never used. Reported by zas.
2005-12-04 20:13:26 +01:00
Laurent MONIN
15a7069fea
Move code from html_input() to new html_input_format().
2005-12-04 18:25:23 +01:00
Laurent MONIN
b863b65fbc
html_input(): minor code reordering.
2005-12-04 12:45:42 +01:00
Laurent MONIN
a57c193ad9
html_input(): drop local variable @type, use @fc->type directly.
2005-12-04 12:43:53 +01:00
Laurent MONIN
7a443d0f73
html_input(): re-order type tests a bit.
2005-12-04 12:40:38 +01:00
Laurent MONIN
a5a731a77b
html_input(): increase indentation a bit to drop a goto/label.
2005-12-04 12:38:19 +01:00
Laurent MONIN
1223850567
html_input(): improve the test logic and simplify the code.
2005-12-04 12:35:55 +01:00
Laurent MONIN
e222bb733c
html_button(): improve the logic.
2005-12-04 12:27:22 +01:00
Laurent MONIN
2df9c06c46
Tidy up.
2005-12-04 12:24:39 +01:00
Laurent MONIN
d1f8b8061c
html_form(): prevent useless second test by using else if instead of if.
2005-12-04 12:21:43 +01:00
Laurent MONIN
37b1fcadea
distribute_table_widths(): simplify.
2005-12-01 11:39:39 +01:00
Laurent MONIN
978eff94ad
Move code from format_table() to new distribute_table_widths().
2005-12-01 11:37:08 +01:00
Laurent MONIN
ac01cbba30
draw_table_caption(): reduce indentation level.
2005-12-01 11:33:43 +01:00
Jonas Fonseca
b42c3f5bd2
Merge with git+ssh://pasky/srv/git/elinks.git
2005-11-30 01:28:34 +01:00
Laurent MONIN
40829d3e34
draw_frame_point(): use BORDER_* and enum border_char type, drop a TODO.
2005-11-29 11:21:35 +01:00
Laurent MONIN
c8b53a6c2b
Complete enum border_char using codes borrowed from TWIN project.
2005-11-29 11:20:10 +01:00
Miciah Dashiel Butler Masters
fee63d574a
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-11-27 19:40:49 +00:00
Jonas Fonseca
3a9cba5695
Split the parser interface up into init, parser and done steps
...
The parser will eventually have to live across parses for incremental
renderering. Also the renderer and parser need to share the DOM stack.
2005-11-27 09:18:40 +01:00
Jonas Fonseca
83dca03a27
Remove indentation from option description
2005-11-27 07:29:36 +01:00
Jonas Fonseca
68404b5bf1
Remove some unused struct decls
2005-11-27 07:21:28 +01:00
Miciah Dashiel Butler Masters
d0eeab5b7e
Merge the special handling in start_element for tables into html_table.
2005-11-26 02:38:12 +00:00
Miciah Dashiel Butler Masters
947ddc4160
In html_table, rename parameter a to attr.
2005-11-26 02:15:00 +00:00
Miciah Dashiel Butler Masters
cf2fcaa84f
Shuffle code so that the do_html_select, do_html_select_multiple, and
...
html_select are together.
2005-11-26 01:50:46 +00:00
Miciah Dashiel Butler Masters
a781cf1894
Give do_html_select return type void instead of int.
2005-11-26 01:47:50 +00:00
Miciah Dashiel Butler Masters
321003a09e
Check for the multiple attribute in html_select rather than in
...
do_html_select.
2005-11-26 01:46:01 +00:00
Miciah Dashiel Butler Masters
c2445f09bd
Factor do_html_select_multiple out of html_select.
2005-11-26 01:43:10 +00:00
Miciah Dashiel Butler Masters
a6a67174af
Drop the html_textarea wrapper for do_html_textarea and rename
...
do_html_textarea to html_textarea.
2005-11-26 01:35:26 +00:00
Miciah Dashiel Butler Masters
a27284611c
Don't export do_html_select.
2005-11-26 01:32:10 +00:00
Miciah Dashiel Butler Masters
683c8722d2
Merge do_html_script into html_script.
2005-11-26 01:23:07 +00:00
Jonas Fonseca
bb588729ff
Silence various sparse warnings
...
... related to __INT_MAX__ and friends not being defined, and various
__builtin.. function declarations missing (they should probably be added
to sparse, but I am lazy).
2005-11-25 19:02:16 +01:00
Jonas Fonseca
48c113b114
Fix non-ANSI function declaration
2005-11-25 18:51:21 +01:00
Jonas Fonseca
2e18d752fc
Kill suspicious looking empty line
2005-11-25 13:31:07 +01:00
Laurent MONIN
3dd81f003e
Fix trailing whitespaces.
2005-11-25 09:38:32 +01:00
Laurent MONIN
50ffe0f2cd
html_select(): fix compilation bug to recent patch.
2005-11-25 09:32:43 +01:00
Miciah Dashiel Butler Masters
9062c83b51
Let html_select, html_textarea, and html_script call do_html_select,
...
do_html_textarea, and do_html_script directly instead of handling them
specially in start_element.
2005-11-25 01:22:55 +00:00
Miciah Dashiel Butler Masters
08c1cdf9d4
Add parameters unsigned char *html, unsigned char *eof, and unsigned
...
char **end to element_handler_T.
2005-11-25 00:30:13 +00:00
Jonas Fonseca
94e6b2def5
Revert DOM stack member renames and fix compile errors
2005-11-25 00:16:22 +01:00
Jonas Fonseca
60269a7466
One missing sparse warning fix
2005-11-24 21:57:35 +01:00
Witold Filipczyk
6afdbf608f
Fix frame-related crash on www.sts.pl (bug 723)
...
Earlier doc_view was freed in src/document/renderer.c line 455
and used later by load_additional_file.
2005-11-24 16:42:03 +01:00
Jonas Fonseca
5dffe2e8ac
Fix various sparse warnings
...
Mostly non-ANSI function declarations, using 0 as NULL and inline
function prototypes. Also removed unused S_HTTP_100 network state
enum type, which text message contained unknown escape sequence: '\?'.
2005-11-24 15:38:47 +01:00
Jonas Fonseca
2dd2e10a28
Remove unused ditrm declaration
2005-11-24 14:24:14 +01:00
Jonas Fonseca
7c0b6809b9
HTML_NODE_INFO -> HTML_, HTML_NODE_INF2 -> HTM2_
2005-11-24 13:32:04 +01:00
Witold Filipczyk
583649e807
Try to fix HTTP gzip decoding
...
Sometimes gzip decoding causes garbage on screen. With this patch garbage
will go away. It inverts the logic. Now is simpler.
2005-11-15 22:23:27 +01:00
Jonas Fonseca
b42b098fd4
Remove unused root member of struct dom_renderer
2005-11-15 12:11:48 +01:00
Jonas Fonseca
acf2ec806b
Remove empty lines in start of header files
...
A left over from the CVS Id removal. Also, for a few files, normalize the
order in which things are declared in headers.
2005-11-15 11:33:27 +01:00
Jonas Fonseca
41941c64d6
Improve the DOM stack structures comments
2005-11-15 11:21:01 +01:00
Jonas Fonseca
16481d7baa
Move DOM exception enum to separate file
...
... and remove it from the dom_stack struct.
2005-11-15 11:01:11 +01:00
Jonas Fonseca
bccfbf8647
Rename DOM navigator -> stack
...
This is really a much more appropriate word since it never ended up being
more than just a stack. The rename also changes the symbol names to use the
much shorter "stack".
2005-11-15 10:43:52 +01:00
Jonas Fonseca
a0fb29bcd5
Fix typo introduced in cdd3f5d9739d...
2005-11-15 10:20:48 +01:00
Miciah Dashiel Butler Masters
cdd3f5d973
Modify the logic for confirm_submit to flow better.
2005-11-14 09:02:08 +00:00
Miciah Dashiel Butler Masters
683d73d89d
Tighten scope for cached in ses_goto.
2005-11-14 08:53:03 +00:00
Miciah Dashiel Butler Masters
97ad0e0f21
Use ses_load in post_yes.
2005-11-14 08:51:09 +00:00
Miciah Dashiel Butler Masters
93d6d959a5
Factor new function ses_load out of ses_goto.
2005-11-14 08:46:17 +00:00
Miciah Dashiel Butler Masters
16c0afb56c
Drop a superfluous assignment to confirm_submit in ses_goto.
2005-11-14 08:27:55 +00:00
Miciah Dashiel Butler Masters
5d39d90909
Add some whitespace in bad_punct.
2005-11-11 06:17:50 +00:00
Laurent MONIN
f7bc7c3497
Tidy up.
2005-11-10 15:42:35 +01:00
Laurent MONIN
2beadb8f6b
html_focusable(): use mem_free_set().
2005-11-10 15:38:52 +01:00
Laurent MONIN
29577cad31
html_focusable(): use a local variable to shorten lines.
2005-11-10 15:35:57 +01:00
Laurent MONIN
24a8ff7294
Tidy up, drop a goto.
2005-11-10 10:39:42 +01:00
Laurent MONIN
39015488d3
Optimize type of script matching.
2005-11-02 16:54:24 +01:00
Laurent MONIN
53590ee002
Attempt to match a wider range of types regarding detection of
...
javascript. Only text/javascript type was matched.
2005-11-02 10:38:24 +01:00
Jonas Fonseca
ffcee4532d
Make the build id thing work for out of tree builds
2005-11-01 23:19:50 +01:00
Miciah Dashiel Butler Masters
37d43ef7c6
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-11-01 19:32:31 +00:00
Laurent MONIN
b374d9f407
Options i18n debug code: accept > as ending char, it is used for tags.
2005-10-30 17:42:58 +01:00
Miciah Dashiel Butler Masters
8fb4fc437a
Redraw the title when the document changes it with ECMAScript.
2005-10-30 04:33:40 +00:00
Miciah Dashiel Butler Masters
4806005c21
Delete the socket file on the penultimate try in bind_to_af_unix,
...
restoring the behaviour that was inadvertently lost in CVS revision 1.48.
2005-10-30 04:23:04 +00:00
Miciah Dashiel Butler Masters
a7e0fa38cc
Re-arrange.
2005-10-30 04:16:19 +00:00
Miciah Dashiel Butler Masters
00b12197a5
Re-arrange.
2005-10-30 04:13:59 +00:00
Miciah Dashiel Butler Masters
9b6dd7f087
Re-arrange.
2005-10-30 04:13:12 +00:00
Miciah Dashiel Butler Masters
17827a5edf
Indent the new while loop.
2005-10-30 04:11:59 +00:00
Miciah Dashiel Butler Masters
dc7a7c6e1a
In bind_to_af_unix, convert the goto loop to a while loop.
2005-10-30 04:11:23 +00:00
Jonas Fonseca
aa07c4d848
Tidy up a bit
2005-10-26 22:39:12 +02:00
Jonas Fonseca
d7f002c8a1
Move code for the SEE object interface
2005-10-26 22:11:34 +02:00
Jonas Fonseca
a5d205c047
Add missing host variable and fix installation of charset.alias
...
Add variable expanded from @host@ and use $(host) instead of @host@
in the gettext Makefile.
Reported by zas.
2005-10-26 19:06:30 +02:00
Jonas Fonseca
9096886a67
@USE_INCLUDED_LIBINTL@ -> $(CONFIG_NLS), @GLIBC21@ -> $(GLIBC21)
...
Should remove all @Makefile.in@ variable traces except for @host@ also in
src/intl/gettext/Makefile (which zas will hopefully fix :).
2005-10-26 14:26:35 +02:00
Jonas Fonseca
e82de325a0
@USE_INCLUDED_LIBINTL@ -> CONFIG_NLS
2005-10-26 14:19:32 +02:00
Miciah Dashiel Butler Masters
811f458ef4
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-10-26 09:41:31 +00:00
Miciah Dashiel Butler Masters
c313b2877a
In change_hook_html, instead of redrawing the current tab,
...
set the resize flag on all tabs so that they will all be redrawn
to reflect the new setting.
2005-10-26 09:40:52 +00:00
Jonas Fonseca
1f69d4b931
Add support for navigator.preference() and navigator.savePreferences()
...
It required that the 'context' session was saved in see_ses (similarly to
the lua_ses variable)
Anyway, now you can use
var opt_value = navigator.preference("ui.window_title)
navigator.preference("ui.window_title", false)
navigator.savePreferences()
to get and set optinos + save the changes.
2005-10-25 19:13:33 +02:00
Jonas Fonseca
a317dd71fb
Print the invalid option value
2005-10-25 19:10:30 +02:00
Jonas Fonseca
7659f284ac
Try to comply to the client-side javascript interface and not our own
...
Renames the following things:
ELinks.write() -> alert() or navigator.alert()
ELinks.version -> navigator.appVersion
ELinks.home -> navigator.appHome
The last one is not defined by the client-side javascript interface.
2005-10-25 17:43:33 +02:00
Miciah Dashiel Butler Masters
dcbb9cf909
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-10-24 00:32:42 +00:00
Andrzej Zaborowski
4fe6e19dc6
Fix a memory-corruption bug in the line justification algorithm.
2005-10-24 00:30:36 +00:00
Miciah Dashiel Butler Masters
5ce3f23a2e
In justify_line, rename the variable 'insert' to 'diff'.
2005-10-23 23:30:12 +00:00
Jonas Fonseca
bc0cc67fd9
Cleanup and improve error messaging
...
Script errors are now reported either with WDBG() at startup, ERROR()
if SEE decides to abort and using info_box() for everything else, including
script runtime errors.
2005-10-24 00:57:47 +02:00
Miciah Dashiel Butler Masters
82c4d457d6
Add a boolean option ecmascript.ignore_noscript, default off,
...
that when enabled causes ELinks to ignore any content enclosed
with <noscript> tags.
2005-10-23 21:59:05 +00:00
Laurent MONIN
792e4c4355
html_special(): move va_end() call outside the switch and make variables
...
more local.
2005-10-21 10:15:03 +02:00
Laurent MONIN
728014118d
Since is_drawing_subs_or_sups() macro is only used by put_chars(),
...
defined it in this function.
2005-10-21 09:46:13 +02:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Jonas Fonseca
03118059ee
Move and make sense of the common code
2005-10-21 04:07:43 +02:00
Jonas Fonseca
0ba773e7a5
Add the basics for _browser_ (ecma)scripting ELinks with SEE
...
SEE is David Leonard's Simple Ecmascript Engine. The SEE scripting backend
is very raw and not tested very much. The idea was to see what kind of
creature SEE is (and contradict pasky's aired opinion that no new features
are added anymore ;).
echo 'function goto_url() { return 'localhost'; }' > ~/.elinks/hooks.js
and get local for maximum security ...
FYI: SEE is smaller than Spidermonkey but doesn't have the same kind of
data-driven interface, although it looks like it is possible to build that.
2005-10-20 20:38:01 +02:00
Laurent MONIN
956484cf57
Drop dead commented code and tidy up.
2005-10-20 17:26:22 +02:00
Laurent MONIN
d54f76bec8
Re-order code in a more logical fashion.
2005-10-20 17:23:18 +02:00
Laurent MONIN
2f8ed27eab
No need to initialize @end and @start.
2005-10-20 17:22:15 +02:00
Laurent MONIN
e47f8068d9
Declare variable in inner block.
2005-10-20 17:21:17 +02:00
Laurent MONIN
c17940044c
Move table cache stuff outside local renderer_context.
2005-10-20 17:17:25 +02:00
Laurent MONIN
23f7fc1b78
Move code from new_link() to new init_link_event_hooks().
...
Make code cleaner, and reduce indentation.
2005-10-20 11:43:42 +02:00
Laurent MONIN
d5e6110711
html_special_tag(): reduce indentation.
2005-10-20 11:21:02 +02:00
Laurent MONIN
ca27359131
Cast void * to struct tag *, instead the opposite.
2005-10-20 11:20:13 +02:00
Laurent MONIN
ee476c6eb6
shift_chars(): let it use alloca() if possible (--fastmem mode only).
2005-10-20 11:13:10 +02:00
Laurent MONIN
11564e255c
Trim trailing whitespaces.
2005-10-20 10:09:19 +02:00
Laurent MONIN
6cc441f34a
Introduce set_screen_char_color() and reduce code redundancy.
2005-10-20 10:07:50 +02:00
Jonas Fonseca
c88afeb1c2
path_to_top -> top_builddir
2005-10-20 04:00:35 +02:00
Jonas Fonseca
db99a74777
Add support for out-of-tree builds
...
Involves prefixing with $(srcdir) to some of the build rule variables. For
the builddir we create Makefiles which simply include the srcdir Makefile.
Add list make rule to get list of Makefiles to generate (find will get it
wrong for builddirs nested in srcdir).
There are still a few minor issues like the file paths echoed during make
install ...
2005-10-20 03:49:40 +02:00
Jonas Fonseca
e39a4342d6
Include $(top_srcdir)/Makefile.lib instead of $(path_to_top)/Makefile.lib
...
A step towards out of tree builds ...
2005-10-20 01:11:47 +02:00
Laurent MONIN
7392b8c503
Attempt to improve sub/sup rendering. Now 2<sup>2<sup>2</sup></sup> is
...
rendered as 2^2^2 and mixed sub/sup should be rendered in a better way.
A bit hacky though.
2005-10-19 23:11:27 +02:00
Laurent MONIN
9841316755
Use bitfields for on/off flags in struct renderer_context.
2005-10-19 11:56:26 +02:00
Laurent MONIN
65f4cfcb30
Add a field did_superscript to struct renderer_context and use it instead
...
of a local static variable.
2005-10-19 11:49:00 +02:00
Jonas Fonseca
c6f6717a79
Re-commit the rest of the changes which was reverted in the recent 'funny merge'
2005-10-17 23:20:53 +02:00
Marti Raudsepp
e31a66745a
Fix a bug in the KiB and MiB computation in add_xnum_to_string
...
where the fractional part overflowed to 0 before the integer part
was incremented.
Thanks to Marti Raudsepp for finding this bug and Marti and pasky
for the fix.
2005-10-16 01:53:06 +00:00
Petr Baudis
4ce737379f
Call option_changed() on two more appropriate places
...
This should fix the bug with toggled options not getting saved, and
changehooks wouldn't be called on certain circumstances (if there were
any to be called, anyway - but it is more correct now).
2005-10-12 09:50:41 +02:00
Petr Baudis
d34fe568cd
Introduce option_changed() for marking the options as modified
...
This just bundles the touching and calling change hooks.
2005-10-12 09:49:40 +02:00
Jonas Fonseca
d672ecf8f7
draw_border_cross(): Simplify lookup and describe the magic
2005-10-11 15:51:18 +02:00
Jonas Fonseca
9735520297
add_border_cross(): Add missing BORDER_S{D,U}TEE values
2005-10-11 15:36:45 +02:00
Sven Wegener
eb14866bb4
The attached patch is quite special, as it fulfills a personal need. It
...
adds a boolean configuration file option ui.sessions.keep_session_active
that'll change elinks' behaviour to not terminate the session, if the
last terminal exits. That allows me to re-use entered passwords after
closing all elinks terminals. Maybe some others will find this feature
useful too and it can be included in elinks.
I guess the best would be to combine this feature with an remote command
named terminate() to terminate the background elinks instance.
2005-10-11 01:22:38 +02:00
Miciah Dashiel Butler Masters
65321923b9
In setup_session, copy the viewstate for the new session from the base session.
2005-10-08 14:00:57 +00:00
Jonas Fonseca
4a69f56829
All PROGS are now automatically build by all-default
2005-10-03 00:01:36 +02:00
Jonas Fonseca
daaf61331a
Make installation also use the cmd calling
...
Makes it more obvious which files are actually installed. MKINSTALLDIRS
still spurs out a lot of 'mkdir ...', which probably should also be
silenced when V=0.
2005-10-01 14:16:19 +02:00
Jonas Fonseca
14f6c0ebf5
Always create the directory path before installing (using mkinstalldirs)
2005-09-28 21:43:09 +02:00
Jonas Fonseca
94ed6fa754
Finalize and cleanup the denser Makefile format
...
Convert remaining conditional file building to use
OBJS-$(CONFIG_FOO) += foo.o
one problem with reverse meaining (in util/) fixed with local 'hack'.
Cleanup and remove stuff which is now default targets.
2005-09-28 12:38:17 +02:00
Jonas Fonseca
c76586e6b8
Simplify the conditional building
...
Use the very cool 'VAR-$(CONFIG_FOO) += foo.o' feature instead of the more
verbose current ifeq($(CONFIG_FOO),yes) wrapping.
2005-09-27 22:49:47 +02:00
Jonas Fonseca
68de9e35d3
Automagically link in subdir lib.o files
...
It is a little ugly since I couldn't get $(wildcard) to expand *.o files
so it just checks if there are any *.c files and then link in the lib.o
based on that.
2005-09-27 22:38:00 +02:00
Jonas Fonseca
888726e3b8
Rename local install target to intall-local
2005-09-27 21:42:52 +02:00
Jonas Fonseca
1efab31581
Simplify building of and linking with directories
...
Ditch the building of an archive (.a) in favour of linking all objects in a
directory into a lib.o file. This makes it easy to link in subdirectories
and more importantly keeps the build logic in the local subdirectories.
Note: after updating you will have to rm **/*.a if you do not make clean
before updating.
2005-09-27 21:38:58 +02:00
Jonas Fonseca
b30064c0d0
Rename targets: *-l -> *-local
2005-09-27 21:11:28 +02:00
Jonas Fonseca
1af75f051b
Fix conditional building of bzip2 and gzip files
2005-09-27 19:07:44 +02:00
Jonas Fonseca
50f4b46616
dom_node_cmp(): Minor optimization
2005-09-27 14:39:40 +02:00
Jonas Fonseca
23497405cb
More installation fixes
...
- Use the mkinstalldirs in $(top_srcdir)/config
- Fix buggy scripting of srcdir which broke the local gettext install
- Add the local uninstall stuff so we have it around
2005-09-23 20:30:56 +02:00
Jonas Fonseca
c2879b655b
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-09-23 14:51:51 +02:00
Strahinya Radich
f86a009108
Add Serbian translation
2005-09-23 14:51:14 +02:00
Petr Baudis
bd0f5ba60d
We call $(mkinstalldirs) $(MKINSTALLDIRS)
...
Should fix make install.
2005-09-23 09:08:47 +02:00
Petr Baudis
ade2ae0a69
Add simple support for the display CSS property
...
display: inline, display: block and display: inline-block (aliased to
inline) is now supported. I hope I didn't break anything. :-)
This makes the new yucky CSS'd slashdot look at least a bit better.
2005-09-22 22:07:33 +02:00
Petr Baudis
31bdf06d8f
More detailed element*.linebreak description
2005-09-22 21:52:12 +02:00
Petr Baudis
7a91098135
Use is_*_element() to determine whether element is block or inline
...
Use that in the stack killing code, where we do some pretty funny checks
and stuff. The decision is based on the linebreak struct attribute,
non-zero for block elements.
2005-09-22 21:44:28 +02:00
Russ Rowan
a3f177e088
Really fix binary installation.
2005-09-22 10:07:27 -04:00
Frobozz the Neuromancer,668,302-521-2606,609-645-8080
0815fe1cf8
Fix installation of elinks binary.
2005-09-22 08:50:59 -04:00
Laurent MONIN
787059253c
download_dialog_layouter(): store bittorrent test result in a temporary
...
variable.
2005-09-19 16:02:27 +02:00
Jonas Fonseca
5455795394
Upgrade to use cg-commit-id for getting build ID
...
The recent cogito-0.15 renamed commit-id to have the cg-prefix.
2005-09-19 11:04:03 +02:00
Jonas Fonseca
baadeebab1
More CVS -> GIT conversions
...
Update INSTALL to both 'cover' GIT checkouts and requirements for the new
build system. Hacking info no more advices to add CVS Id lines.
2005-09-18 18:47:20 +02:00
Petr Baudis
1c382625fd
Install the ELinks binary during make install.
2005-09-17 20:37:23 +02:00
Laurent MONIN
a9f70fd776
really_close_tab(): call number_of_tabs() only if needed.
2005-09-17 20:14:33 +02:00
Laurent MONIN
8d234b242b
DEBUG_HARDIO tidyup.
2005-09-17 20:06:01 +02:00
Jonas Fonseca
150beefabb
Fix building when commit-id is not found
2005-09-17 16:21:35 +02:00
Jonas Fonseca
9921e58aba
Put the commit ID in the version string
...
Finally, we are able to identify the builds more accurately. Now we check
if commit-id (cogito tool) is available and pass the output to vernum.c
compilation which then exports it as a build_id string.
The first line of --version is now a bit long, we should probably move the
build date to a second indented line or something.
2005-09-17 14:45:59 +02:00
Jonas Fonseca
a5dd59884e
Update compiles in URIs
...
*.elinks.or.cz -> *.elinks.cz
cvsweb.elinks.or.cz -> pasky.or.cz/gitweb.cgi (rename to ELINKS_GITWEB_URL)
2005-09-17 12:57:19 +02:00
Laurent MONIN
54e6bab8bb
block_itrm(): drop useless intermediate variable.
2005-09-16 17:20:12 +02:00
Petr Baudis
e000fffaa6
Fix linking gettext - actually build libintl.a. ;-)
2005-09-16 14:29:41 +02:00
Laurent MONIN
67030f0340
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-09-16 14:05:38 +02:00
Petr Baudis
885bb75c66
Typo fix.
2005-09-16 13:58:56 +02:00
Laurent MONIN
a45e48d86f
unblock_itrm(): drop useless intermediate variable.
2005-09-16 13:55:40 +02:00
Petr Baudis
03c2fb116d
ELBuildized intl/. Final nail in automake's coffin.
2005-09-16 13:38:05 +02:00
Petr Baudis
68b55a8fcb
ELBuildized mime/.
2005-09-16 13:36:47 +02:00
Petr Baudis
3e394f3367
ELBuildized viewer/.
2005-09-16 13:33:43 +02:00
Petr Baudis
c89190e0bf
ELBuildized scripting/.
2005-09-16 13:29:06 +02:00
Petr Baudis
18f85bec14
ELBuildized util/.
2005-09-16 13:27:27 +02:00
Petr Baudis
83212cee45
ELBuildized osdep.
2005-09-16 13:25:24 +02:00
Petr Baudis
98dd1a4fef
Converted main, network and terminal to ELBuild.
2005-09-16 13:23:05 +02:00
Petr Baudis
cf0c9fce4e
Switch the root Makefile to ELBuild. Woohoo!
2005-09-16 13:13:22 +02:00
Petr Baudis
4130c42bc9
Typo fix
2005-09-16 12:12:07 +02:00
Petr Baudis
72e2d55c1a
Convert src/encoding to ELbuild.
2005-09-16 12:05:51 +02:00
Petr Baudis
4e2d48cc93
ELBuildize some more stuff. All for tonight, turn for the Americans.
2005-09-16 05:09:08 +02:00
Petr Baudis
76f1eb70df
ELBuildized protocol/ - no more 2M Makefiles!
2005-09-16 05:01:31 +02:00
Petr Baudis
aec63f5c88
Converted cookies building to ELBuilds
2005-09-16 04:53:54 +02:00
Petr Baudis
1fd3bff6f3
Converted src/intl/gettext/Makefile to ELBuild
2005-09-16 04:20:14 +02:00
Petr Baudis
1f0cd14e91
Converted another bunch of submakefiles to ELBuild
2005-09-16 04:07:37 +02:00
Petr Baudis
204bbe5d2c
Fix starting a build from a subdirectory ELBuild-wise
...
Now all the submakefiles contain informationa buot where in the directory
hierarchy they stay.
2005-09-16 02:07:36 +02:00
Petr Baudis
32fe41fae7
ELBuild: Use 'include' instead of '-include'
...
We _do_ want to error on when including .config and .lib failed.
2005-09-16 01:09:42 +02:00
Petr Baudis
fffc573769
Use all-l,install-l,clean-l targets in individual makefiles and let
...
Makefile.lib multiplex the real ones. That's so that the -recursive
ones always come first.
2005-09-16 00:52:54 +02:00
Petr Baudis
833770a5f7
Implicit recursiveness and clean rule
...
All objects defining $(OBJS) will get them and *.a deleted during
make clean.
The all, clean and install rules now implicitly imply their -recursive
counterparts - those will just do nothing in case of $(SUBDIRS) not
defined, so that's ok.
2005-09-15 23:28:56 +02:00
Petr Baudis
4e467d6129
Add forgotten cache Makefile
...
Didn't notice it's missing because we still have it in .gitignore.
2005-09-15 22:35:03 +02:00
Jonas Fonseca
0cc70f57a1
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2005-09-15 21:05:25 +02:00
Petr Baudis
06ea255a22
Convert part of the build to the new build system
...
The root makefile is converted as well as some leaf Makefiles. This
also brings in the required infrastructure and adjusts configure.in
appropriately.
I converted only makefiles containing no configurable stuff, since
that'll require more consideration yet.
2005-09-15 21:03:56 +02:00
Jonas Fonseca
21387bc966
Remove double 'black' from ensure_contrast option description.
2005-09-15 20:47:06 +02:00
Jonas Fonseca
921c59ce07
Fix --remote commands: popUp() -> infoBox(), it was renamed shortly
...
after entering and I forgot this part.
2005-09-15 20:24:24 +02:00
Jonas Fonseca
7462f22635
Remove now obsolete .cvsignore files.
2005-09-15 18:33:20 +02:00
Jonas Fonseca
da11cf325a
Convert more bits from the .cvsignore files. Now cg-status doesn't list
...
anything here. It might do in the future.
2005-09-15 18:25:37 +02:00
Petr Baudis
0f6d4310ad
Initial commit of the HEAD branch of the ELinks CVS repository, as of
...
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00