1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
Commit Graph

2937 Commits

Author SHA1 Message Date
Kalle Olavi Niemitalo
87189c33f9 Doxygen: Define CONFIG_UTF8. 2007-07-27 20:22:58 +02:00
Witold Filipczyk
5eb3c3274e Compilation fix. 2007-07-27 19:05:43 +02:00
Kalle Olavi Niemitalo
6beb55c145 Doxygen: @relates 2007-07-27 18:55:26 +02:00
Kalle Olavi Niemitalo
7dba2fd844 Doxygenate src/viewer/text/ 2007-07-27 18:55:11 +02:00
Kalle Olavi Niemitalo
d3cd3cace6 Doxygenate src/util/ 2007-07-27 18:54:49 +02:00
Kalle Olavi Niemitalo
35a0e25fe1 Doxygen: Disable many slow features. 2007-07-27 18:54:41 +02:00
Kalle Olavi Niemitalo
aeee1b70b0 Add src/Doxyfile for the whole ELinks. 2007-07-27 18:54:33 +02:00
Kalle Olavi Niemitalo
012674d8eb Doxygenate src/session/ 2007-07-27 18:54:26 +02:00
Kalle Olavi Niemitalo
646e6b5c49 Declare element types of lists. 2007-07-27 18:54:13 +02:00
Kalle Olavi Niemitalo
93f8ea24f7 New macro LIST_OF for better Doxygen support. 2007-07-27 18:53:58 +02:00
Kalle Olavi Niemitalo
a08d74042e Delete unused keybinding_dialog_list. 2007-07-27 18:53:49 +02:00
Witold Filipczyk
499cdfd842 buttons: Fixed all issues related to buttons.
Forms are not submitted when clicking on normal buttons.
Button's value is not added to the URI.
2007-07-27 12:39:38 +02:00
Kalle Olavi Niemitalo
31dc46544d Doxygen syntax fixes
Fix warnings:
dom/stack.h:70: Warning: explicit link request to 'pop_dom_node' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_nodes' could not be resolved
dom/stack.h:71: Warning: explicit link request to 'pop_dom_state' could not be resolved
dom/stack.h:115: Warning: explicit link request to 'done_dom_node' could not be resolved

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

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

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

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

I originally posted this change as part of attachment 383 to bug 722.
2007-07-22 18:32:07 +02:00
Kalle Olavi Niemitalo
175e26c4ea Preserve underlines in links when justifying. 2007-07-20 21:12:58 +02:00
Kalle Olavi Niemitalo
d070c8338f Rewrote contrib/mkdist.
* All arguments must now be given as options.
* Documented.
* chmod +x in Git.
* Do not distribute files whose contents should depend on what the
  configure script found: config.h, config.log, config.status,
  features.log, Makefile.config, contrib/conv/w3m2links.awk,
  contrib/lua/hooks.lua, doc/man/man1/elinks.1.
* Do not distribute other files that configure will rebuild anyway:
  src/intl/gettext/ref-add.sed, src/intl/gettext/ref-del.sed.
  But do distribute contrib/elinks.spec, because it specifies how
  to run configure, and only the @VERSION@ varies in it.
* Do not distribute the empty directory po/.deps.
* Save the commit ID into .git/HEAD in the tar file.
* Compress the *.tar.gz and *.tar.bz2 from the same *.tar file.
* Instead of *.tar.gz.md5 and *.tar.bz2.md5, generate a *.md5 file
  that contains md5sums for *.tar, *.tar.gz, and *.tar.bz2.
* Use md5sum --binary for the sake of Windows.
2007-07-19 21:21:42 +02:00
Kalle Olavi Niemitalo
4c8cf822dd autogen.sh: Also remove autom4te.cache.
To stop it from getting in elinks-*.tar.gz.
2007-07-19 21:21:38 +02:00
Kalle Olavi Niemitalo
92e003450e NEWS: mention bug 744 2007-07-19 18:26:04 +02:00
Kalle Olavi Niemitalo
54178b189f Bug 744: Consume semicolons and fix parameters of stubs.
Most stub protocol handlers were protocol_external_handler_T when they
should have been protocol_handler_T.
2007-07-19 18:25:58 +02:00
Jonas Fonseca
22cfb0b71c Add stub.o to cleaned files and more protocol module and handler stubs 2007-07-19 18:25:52 +02:00
Kalle Olavi Niemitalo
fd9468f0b6 Bug 744: More tests and fix failures. 2007-07-19 18:25:47 +02:00
Kalle Olavi Niemitalo
fa289ee12a Bug 744: Add tests. There are four failures. 2007-07-19 18:25:42 +02:00
Jonas Fonseca
fa786070f0 Remove normalization of "//" to "/"
This patch changes normalize_uri() to no replace "//" with "/" in URIs. This
fixed this bug but will also lead to possibility that duplicate entries can
exist in ELinks' cache. ELinks might be able to detect in another way by
hashing the content or something.

[ From attachment 310 of bug 744.  --KON ]
2007-07-19 18:25:38 +02:00
Kalle Olavi Niemitalo
d5e57fc2dd Added TODO comments about TERM_EXEC_NEWWIN. 2007-07-18 20:37:40 +02:00
Kalle Olavi Niemitalo
2f30e63ed2 doc: Don't generate HTML for po/perl/ 2007-07-18 20:37:31 +02:00
Kalle Olavi Niemitalo
20fb01fa51 NEWS: mention MinGW 2007-07-18 20:37:23 +02:00
Kalle Olavi Niemitalo
44fb868897 Win32: Get socklen_t from <ws2tcpip.h>. 2007-07-18 20:37:15 +02:00
Kalle Olavi Niemitalo
5b08cc5a5b Win32: Put .elinks in Application Data if %HOME% is undefined. 2007-07-18 20:37:10 +02:00
Kalle Olavi Niemitalo
fa33920da2 Win32: Don't check file_is_dir if name ends with backslash. 2007-07-18 20:37:04 +02:00
Kalle Olavi Niemitalo
b787dc49d0 Win32: End local subdir HREFs with "/" not "\".
The href attribute is supposed to be URL and so the directory
separator should not depend on the conventions of the local operating
system.
2007-07-18 20:36:59 +02:00
Kalle Olavi Niemitalo
313e7f48f8 proxy: Ignore files created via Makefile.
gen.c wrote "%d.txt" files, but adding "*.txt" to .gitignore might
cause future documentation to be ignored.  Rename to "%d.http".
2007-07-17 18:30:20 +02:00
Kalle Olavi Niemitalo
8a3ce7805a Rename accelerator checking scripts. 2007-07-17 18:30:08 +02:00
Witold Filipczyk
e6e8b3407d IPC: added the prefix 'my' to the semaphore functions.
sem_wait is already in libc (/usr/include/semaphore.h).
shmat returns -1 on failure, so check for it.
2007-07-16 23:18:05 +02:00
Witold Filipczyk
ca69d121d1 Last part of previous commit, which didn't apply cleanly. 2007-07-16 22:14:30 +02:00
Kalle Olavi Niemitalo
6503ebf8a3 Name the exec_on_terminal() fg values. 2007-07-16 22:08:50 +02:00
Kalle Olavi Niemitalo
da8d813c4e NEWS: mention bug 766 2007-07-16 21:57:45 +02:00
Kalle Olavi Niemitalo
b7618e7335 CSS bug 766: Parse the id and class attributes in advance.
time elinks -no-connect -no-home 'http://rss.slashdot.org/Slashdot/slashdot/to?m=5878'
Wait until finished loading, then press q and Enter.

before	19.96user 0.16system 0:25.97elapsed 77%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3630minor)pagefaults 0swaps
after	6.46user 0.12system 0:12.66elapsed 52%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3630minor)pagefaults 0swaps
before	18.02user 0.19system 0:23.86elapsed 76%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3572minor)pagefaults 0swaps
after	5.73user 0.15system 0:10.02elapsed 58%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3628minor)pagefaults 0swaps
before	19.80user 0.15system 0:25.14elapsed 79%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3461minor)pagefaults 0swaps
after	6.28user 0.13system 0:11.91elapsed 53%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3626minor)pagefaults 0swaps
2007-07-16 21:57:39 +02:00
Witold Filipczyk
8e7daa1a29 mailcap on slave: Fixed memleak. 2007-07-16 17:09:02 +02:00
Witold Filipczyk
40d3102bc7 Avoid races. 2007-07-16 11:37:28 +02:00
Kalle Olavi Niemitalo
8785ffc980 CSS: Document reparent_selector and make it static. 2007-07-16 11:32:08 +02:00
Kalle Olavi Niemitalo
abd900eeff CSS: Don't call list_empty within args of DBG. 2007-07-16 11:32:03 +02:00
Kalle Olavi Niemitalo
83d870a6d9 CSS: Move /* #define DEBUG_CSS */ to stylesheet.h.
That's where src/document/css/README says it should be.
2007-07-16 11:31:58 +02:00
Witold Filipczyk
4cf3130b53 IPC: simplification. Only one semaphore is required. 2007-07-15 16:35:12 +02:00
Witold Filipczyk
ab4e622452 Revert "IPC: slave_sem initialized to 1."
This reverts commit 539ed3a513.
2007-07-15 16:14:55 +02:00
Witold Filipczyk
539ed3a513 IPC: slave_sem initialized to 1. 2007-07-15 14:28:35 +02:00
Witold Filipczyk
c246b67ff9 Compilation fix, a bit ugly. 2007-07-15 14:07:19 +02:00