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

2156 Commits

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

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

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

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

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

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

<paakku> Do you think we should maybe point people to gitweb at
    repo.or.cz rather than pasky.or.cz?
<pasky> absolutely
<pasky> actually I thought we already are pointing people at
    repo.or.cz
<pasky> at least there was some movement to do that already, I believe
    :)
2007-06-22 18:30:30 +02:00
Witold Filipczyk
a895696ca8 bug 957 fixed. 2007-06-21 10:31:12 +02:00
Witold Filipczyk
f9c2e832b0 date file,ftp: added forgotten spaces. 2007-06-19 09:28:50 +02:00
Witold Filipczyk
a3f45e7ff3 ftp, date: The same trick as for files. 2007-06-18 20:15:05 +02:00
Witold Filipczyk
ea4c09efd4 date: added the width for the month field to the date format.
Since glibc-2.6 Polish locale uses Roman numbers for months in dates.
VIII is 4 bytes long, so %4b. Without this directory listings look ugly.
It adds one space per line in the C locale. IMHO it is not a big problem.
2007-06-18 20:01:08 +02:00