1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00
Commit Graph

3067 Commits

Author SHA1 Message Date
Witold Filipczyk
a76ecfb8ca Removed not existent function. Spotted by Kalle. 2007-10-07 15:50:08 +02:00
Kalle Olavi Niemitalo
e4f0efd923 Don't cast qsort comparison function pointers.
Instead, convert the element pointers inside the comparison functions.

The last argument of qsort() is supposed to be of type
int (*)(const void *, const void *).  Previously, comp_links() was
defined to take struct link * instead of const void *, and the type
mismatch was silenced by casting the function pointer to void *.
This was in principle not portable because:

(1) The different pointer types may have different representations.
    In a word-oriented machine, the const void * might include a byte
    selector while the struct link * might not.

(2) Casting a function pointer to a data pointer can lose bits in some
    memory models.  Apparently this does not occur in POSIX-conforming
    systems though, as dlsym() would fail if it did.

This commit also fixes hits_cmp() and compare_dir_entries(), which
had similar problems.  However, I'm leaving alias_compare() in
src/intl/gettext/localealias.c unchanged for now, so as not to diverge
from the GNU version.

I also checked the bsearch() calls but they were all okay, apart from
one that used the alias_compare() mentioned above.
2007-10-07 15:44:45 +02:00
Witold Filipczyk
7dd9ef674a This version of ELinks crashed on a normal chunked data.
This bug was introduced in commit b3845a7998.
2007-10-04 19:28:26 +02:00
Witold Filipczyk
5504699914 Polish translation was updated. 2007-10-03 15:39:18 +02:00
Laurent MONIN
e0b3e6468b French translation was updated. 2007-10-03 15:25:44 +02:00
Laurent MONIN
bc5279bc6b Resync .po files 2007-10-03 15:25:35 +02:00
Laurent MONIN
f8ee1842bb Make copyright info independent from translations.
This is an attempt to make it easier to update without
requiring to update all translations.
Copyright info is now set in setup.h using COPYRIGHT_STRING
2007-10-03 15:24:25 +02:00
Laurent MONIN
c013a0d130 ELINKS_HOMEPAGE -> ELINKS_WEBSITE_URL 2007-10-03 15:24:19 +02:00
Laurent MONIN
569eee285b Add an "Authors" entry to the Help menu.
It displays the ELinks website's authors page.
2007-10-03 15:24:14 +02:00
Witold Filipczyk
42bf898e7a go_back, get_validated_cache entry: Do not load a document from the network
when there is one in the cache.

Previously, when document.cache.revalidation_interval was >= 0,
the given interval elapsed and the network was down
an error occured and one could not go back. This was very annoying.
2007-09-27 19:58:03 +02:00
Miciah Dashiel Butler Masters
c3501b2e62 Really retry forever when connection.retries = 0
This feature has been broken since zas backported it from Links 0.99pre3 2003-04-20.
2007-09-27 18:09:27 +02:00
Kalle Olavi Niemitalo
390672907b NEWS: mention bug 972
Bug 972 was fixed in this commit, and reported afterwards:

    commit 175e26c4ea
    Author: Kalle Olavi Niemitalo <kon@iki.fi>
    Date:   Fri Jul 20 17:57:01 2007 +0300

        Preserve underlines in links when justifying.

I'm not fully updating NEWS yet.  Just this one bug.
2007-09-26 18:28:15 +02:00
Kalle Olavi Niemitalo
2c0de44744 GCC 4.2.1 needs -Wno-address, not -Wno-always-true. 2007-09-24 18:31:33 +02:00
Witold Filipczyk
2f379985bf No more crashes related to clearTimeout. 2007-09-22 20:01:43 +02:00
Witold Filipczyk
91a61d15a7 Unfortunately double clearTimeout crashes ELinks. 2007-09-22 19:12:08 +02:00
Witold Filipczyk
959d94b71c ELinks no longer crash on clearTimeout. 2007-09-22 18:59:49 +02:00
Witold Filipczyk
e0dfe13be2 Added the test for clearTimeout. 2007-09-22 18:45:49 +02:00
Witold Filipczyk
e7386bcd3c Minor optimisation. 2007-09-21 20:28:09 +02:00
Witold Filipczyk
c06122a029 Revert "Moved timeouts from document to the ecmascript_interpreter."
This reverts commit fa0fd41c94.
2007-09-21 20:18:38 +02:00
Laurent MONIN
25536d1e2f Fix compilation with --disable-css.
Compilation failed due to missing DEBUG_CSS test.
This was introduced in commit 98260f7970
2007-09-21 18:29:39 +02:00
Witold Filipczyk
fa0fd41c94 Moved timeouts from document to the ecmascript_interpreter.
This simplifies the code.
2007-09-21 01:06:20 +02:00
Witold Filipczyk
05fe38b7b2 Revert "format_html_part(): save and restore renderer_context.last_tag_for_newline too."
This reverts commit f9f149f6cc.
2007-09-19 18:42:45 +02:00
Laurent MONIN
a19239ad9a Fix compilation using --enable-html-highlight.
It was broken by commit 09cf904814.
Reported by witekfl.
2007-09-17 18:33:47 +02:00
Laurent MONIN
0dd99429c1 Revert "Use the new OBJS-unless$(CONFIG_FOO) instead of $(call not,...)"
This reverts commit e07354f5d5.
2007-09-14 21:09:25 +02:00
Kalle Olavi Niemitalo
8fa52b1df6 Define BITTORRENT_NULL_ID in common.c; declare extern in common.h.
This change avoids linker warnings when building with Debian tcc
0.9.23-4 + patch from Debian bug 418360:

      [LD]   src/protocol/bittorrent/lib.o
bittorrent.o: 'BITTORRENT_NULL_ID' defined twice
common.o: 'BITTORRENT_NULL_ID' defined twice
connection.o: 'BITTORRENT_NULL_ID' defined twice
dialogs.o: 'BITTORRENT_NULL_ID' defined twice
peerconnect.o: 'BITTORRENT_NULL_ID' defined twice
peerwire.o: 'BITTORRENT_NULL_ID' defined twice
piececache.o: 'BITTORRENT_NULL_ID' defined twice
tracker.o: 'BITTORRENT_NULL_ID' defined twice
2007-09-14 21:09:18 +02:00
Miciah Dashiel Butler Masters
890e16b5d0 Move is_in_domain from cookies/cookies.c to protocol/uri.c and export 2007-09-14 21:09:06 +02:00
Jonas Fonseca
118728dd27 Use the new OBJS-unless$(CONFIG_FOO) instead of $(call not,...) 2007-09-14 21:08:56 +02:00
Miciah Dashiel Butler Masters
b1ccdc9788 Introduce start_document_refreshes()
start_document_refreshes() performs the NULL-pointer checks that
previously all callers to start_document_refresh() must perform
and then calls start_document_refresh().
2007-09-14 21:08:29 +02:00
Jonas Fonseca
0da7f5a670 Move find_tag to document/document 2007-09-14 21:08:15 +02:00
Jonas Fonseca
4e9982332e Compile fix for commit e876df70d8 2007-09-14 21:05:49 +02:00
Petr Baudis
2c6afbe5e8 document/html: Make HTML parser state transparent
Before, *_html_parser_state() operated with struct html_element *. Now, it is
transparent for the renderer (just void *), so that DOM won't have to provide
this struct but will be able to use something internal.

Backported from master.
2007-09-14 21:05:34 +02:00
Petr Baudis
f8b9992674 document/html: Move enum html_special_type from parser.h to renderer.h
...since it is renderer interface.
2007-09-14 21:05:13 +02:00
Laurent MONIN
ab6e3388d9 Backport Pasky's changes concerning text_style-related stuff.
It partially includes changes made in following commits:

document/html: struct text_attrib_style -> struct text_style
commit    e133941206

document: struct format_attr -> struct text_style_format
commit    070d335796

document: Unify text style -> screen attribute handling
commit    b66d2bec67

document: Move text_style-related stuff to dedicated format.*
commit    db9431465f
2007-09-14 21:04:59 +02:00
Laurent MONIN
832418afb2 Add a simple testcase for missing ; in meta refresh content attribute. 2007-09-14 21:04:40 +02:00
Laurent MONIN
1521c85bdf Update french translation. 2007-09-14 21:03:56 +02:00
Laurent MONIN
241b7a803c format_html_part(): group int variables declarations 2007-09-14 21:02:35 +02:00
Laurent MONIN
f9f149f6cc format_html_part(): save and restore renderer_context.last_tag_for_newline too. 2007-09-14 21:02:17 +02:00
Laurent MONIN
e01e67d546 Use explicit names for variables in format_html_part().
llm -> saved_last_link_to_move
ltm -> saved_last_tag_to_move
ef  -> saved_empty_format
lm  -> saved_margin
2007-09-14 21:01:53 +02:00
Laurent MONIN
ed21e3275c Drop useless goto/label. 2007-09-14 21:01:28 +02:00
Laurent MONIN
942fde534d Fix get_opt_bool() call and finish backport of process_head() split. 2007-09-13 20:50:51 +02:00
Miciah Dashiel Butler Masters
fe8f24b877 Reflow check_head_for_cache_control 2007-09-13 20:50:46 +02:00
Miciah Dashiel Butler Masters
0137eb6638 Factor check_head_for_cache_control out of process_head 2007-09-13 20:50:40 +02:00
Miciah Dashiel Butler Masters
be043561d1 Factor check_head_for_refresh out of process_head 2007-09-13 20:50:34 +02:00
Miciah Dashiel Butler Masters
d74dfe97b5 Fix process_head to check for cache-control information even if no refresh
Previously, process_head immediately returned if there was no refresh, never giving the cache-control check further down a chance to run.

Also add new tests:

   nocache.html
   refresh+nocache.html
2007-09-13 20:50:28 +02:00
Laurent MONIN
c01c475ede Extend Use of LWS() macro to parse_old_meta_refresh(). 2007-09-11 19:06:54 +02:00
Laurent MONIN
7f909680c4 Make meta refresh content attribute parsing more tolerant.
Simply search for 'url' marker ignoring anything
before it.
ELinks is now able to follow incorrectly written
meta refresh content attribute with missing ; before
url= parameter.
As an example, try http://akkada.tivi.net.pl/
2007-09-11 19:06:46 +02:00
Jonas Fonseca
ee56c6db16 NNTP: Improve listing of articles for groups
It now uses ordered list with the message number as the list item
number. Only the message subject and from field are shown.
2007-09-11 19:06:41 +02:00
Jonas Fonseca
aff2e738c3 NNTP: Add support for handling RFC2047 encoded words
Code adapted from git's builtin-mailinfo.c file.
2007-09-11 19:06:34 +02:00
Laurent MONIN
0649d80882 French translation was updated. 2007-09-11 19:06:28 +02:00
Jonas Fonseca
ee159e2bf9 Bug 744: Make removal of double slashes more protocol specific
Add a boolean protocol flag which says whether "//" in the path
part of an URI can be safely substituted with "/". Be conservative
and enable it only for file://, ftp:// and nntp[s]://. Other
can be turned on later, if needed.

Generalizes the fix from 58b3b1e752.
2007-09-11 19:06:20 +02:00