Witold Filipczyk
8e6808b640
[gopher] const format
2022-02-21 17:15:48 +01:00
Witold Filipczyk
ea847b8436
[gopher] const in content-type
2022-02-17 19:46:22 +01:00
Witold Filipczyk
d7359f5f79
[gopher] const in description
2022-02-17 19:43:00 +01:00
Witold Filipczyk
4478133f01
[gopher] enum gopher_entity -> gopher_entity_T
2022-01-28 17:02:07 +01:00
Witold Filipczyk
9d92ac6807
[gopher] cast
2022-01-25 19:30:40 +01:00
Witold Filipczyk
de2a787900
[strstr] no cast
2022-01-18 20:55:08 +01:00
Witold Filipczyk
53a860a3d6
[strchr] casting first parameter to const char * was not a good idea
2022-01-18 20:30:48 +01:00
Witold Filipczyk
881f896e85
[mem_calloc] Cast
2022-01-16 21:08:50 +01:00
Witold Filipczyk
ee06a871c3
[c] More fixes related to redefined PF_INET
2021-12-22 16:27:29 +01:00
Witold Filipczyk
0f10ae6ddb
[gopher] Also escape text in search and in links. Refs #125
2021-08-28 12:32:01 +02:00
Witold Filipczyk
1c005dc9c2
[gopher] XSS in gopher. Refs #125
...
add_to_string was replaced add_html_to_string.
2021-08-28 11:47:13 +02:00
Witold Filipczyk
66305fcb50
[gettext] try system gettext. Refs #62
...
Now, only meson was changed.
-Dnls=true -Dgettext=true
2021-08-08 21:25:08 +02:00
Witold Filipczyk
0fea79cc8f
[cflags] Removed -Wno-pointer-sign
...
Likely some new bugs were introduced by this change.
The long term goal is clean compilation by g++.
2021-01-02 16:20:27 +01:00
Witold Filipczyk
1f57e72212
[mozjs24] Allow build elinks with g++
...
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.
Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00
Witold Filipczyk
5f87bdbcb2
[meson] meson build scripts.
...
Not finished yet, but I added to motivate myself and others.
The goal is to get a few seconds faster builds.
autotools still will be available.
2020-09-05 22:06:01 +02:00
Witold Filipczyk
e4b536f8ab
[gopher] Nothing is easy as it seems. Refs #34
2019-05-13 12:46:44 +02:00
Witold Filipczyk
12b270e8d2
[gopher] Allow unix like line endings. Refs #34
2019-05-13 12:09:26 +02:00
Witold Filipczyk
3d23424b9f
[gopher] Another try for #33 .
...
This time replace /URL -> URL for h type.
2019-05-12 22:56:54 +02:00
Witold Filipczyk
41c3485add
Revert "[gopher] Skip '/'. Refs #33 "
...
This reverts commit 5106b31f6c
.
2019-05-12 22:16:48 +02:00
Witold Filipczyk
5106b31f6c
[gopher] Skip '/'. Refs #33
2019-05-05 16:18:29 +02:00
Witold Filipczyk
3d96b0d7d7
Revert "Compile with C++."
...
This reverts commit 4f4df33638
.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
4f4df33638
Compile with C++.
...
Weak points:
- alignof
- js problems
Todo:
- make js work with C++ and mozjs-17
- then mozjs-24
- then mozjs-52
- then mozjs-60
- decrease number of warnings
2019-02-17 20:46:16 +01:00
Pete Deas
e9152c8772
gopher: ensure slash after entity type in links
...
This prevents links with null selectors being interpreted as pointing to
a (likely non-existent) file gopher://server/1
An example of a page with such links: gopher://gopher.floodgap.com/1/new
2016-04-30 10:45:42 +02:00
Witold Filipczyk
96e65c105f
Explicit cast in strstr for C++
2016-04-20 20:46:33 +02:00
Witold Filipczyk
52d6f37c8e
Explicit cast to (const char *) for strchr function (C++)
2016-04-20 19:43:37 +02:00
Kalle Olavi Niemitalo
5c2fada371
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
src/session/download.c
2008-11-01 22:39:17 +02:00
M. Vefa Bicakci
96b3093519
Patch 2: Modifications to the remaining parts of ELinks
...
[Forward ported to 0.12 from bug 1004 attachment 499. --KON]
2008-11-01 22:20:25 +02:00
Kalle Olavi Niemitalo
80a5c6d466
Merge branch 'elinks-0.12' into elinks-0.13
2008-09-04 12:08:38 +03:00
Kalle Olavi Niemitalo
7de8b9940c
Bug 1013: Fix type mismatches in gopher.c
...
When I replaced enum connection_state with struct connection_state,
I missed parts of src/protocol/gopher/gopher.c. Finish the change there.
2008-09-04 11:57:03 +03:00
Kalle Olavi Niemitalo
a73fe73cd2
Merge branch 'elinks-0.12' into elinks-0.13
...
Conflicts:
src/document/document.h
src/encoding/encoding.c
src/network/connection.c
src/protocol/bittorrent/bittorrent.c
src/protocol/bittorrent/bittorrent.h
src/protocol/bittorrent/common.h
src/protocol/bittorrent/connection.c
src/protocol/bittorrent/dialogs.c
src/protocol/bittorrent/tracker.c
src/protocol/file/cgi.c
src/protocol/http/http.c
2008-08-03 22:18:53 +03:00
Kalle Olavi Niemitalo
6c2e8cd7b2
Bug 1013: Don't assume errno is between 0 and 100000
...
Replace almost all uses of enum connection_state with struct
connection_status. This removes the assumption that errno values used
by the system are between 0 and 100000. The GNU Hurd uses values like
ENOENT = 0x40000002 and EMIG_SERVER_DIED = -308.
This commit is derived from my attachments 450 and 467 to bug 1013.
2008-08-03 17:56:41 +03:00
Kalle Olavi Niemitalo
291a913d1e
1008: Call and reset conn->done when freeing conn->info.
...
In the places that set conn->info without freeing the original value,
assert that both conn->info and conn->done are NULL.
2008-05-22 03:59:33 +03:00
Laurent MONIN
1136aefb71
Trim trailing whitespaces.
2006-07-27 09:51:10 +02: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
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
ba2b6e633a
DIRLIST:Use directory listing initializer in the Gopher protocol module
2006-01-30 02:41:09 +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
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
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Jonas Fonseca
c88afeb1c2
path_to_top -> top_builddir
2005-10-20 04:00:35 +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
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
Petr Baudis
1f0cd14e91
Converted another bunch of submakefiles to ELBuild
2005-09-16 04:07:37 +02:00
Jonas Fonseca
7462f22635
Remove now obsolete .cvsignore files.
2005-09-15 18:33:20 +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