1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00
Commit Graph

296 Commits

Author SHA1 Message Date
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
b914dddeee [mem_alloc] oversight 2022-01-16 21:17:36 +01:00
Witold Filipczyk
881f896e85 [mem_calloc] Cast 2022-01-16 21:08:50 +01:00
Witold Filipczyk
be8a030fa7 [mem_realloc] cast return value 2022-01-16 19:38:30 +01:00
Witold Filipczyk
20c161559c [mem_alloc] cast return value 2022-01-16 19:09:27 +01:00
Witold Filipczyk
1e365c9798 [ruby] #undef _GNU_SOURCE (warnings) 2022-01-15 17:56:00 +01:00
Witold Filipczyk
0e8ee7876a [uri] 0 -> URI_NONE in get_uri to decrease number of warnings 2022-01-14 20:52:17 +01:00
Witold Filipczyk
350c6a2cf0 [guile] version 2022-01-08 18:08:12 +01:00
Witold Filipczyk
15d97cae07 [ruby] Show version 2022-01-07 18:59:22 +01:00
Witold Filipczyk
8efb3b8a76 [python] Show Python version 2022-01-07 18:43:21 +01:00
Witold Filipczyk
d302b29d22 [perl] Show version 2022-01-07 18:35:15 +01:00
Witold Filipczyk
0d5dbbd148 [lua] Show lua version in About dialog 2022-01-07 18:22:05 +01:00
Witold Filipczyk
88aa2f9e0e [lua] casting to char * 2021-12-20 16:39:08 +01:00
Witold Filipczyk
aa586ee999 [python] set program name 2021-12-14 16:41:59 +01:00
Witold Filipczyk
b77d4d8395 [ruby] Changed declaration of missing_method 2021-12-12 15:07:49 +01:00
Witold Filipczyk
155cc0c005 [perl] Compilation fix when compiled --with-perl --disable-nls 2021-12-05 15:38:26 +01:00
Olivier El Mekki
edaf66fc60
[lua] expose reload() and goto_url() to lua api
Two api methods for lua scripting has been added.

`reload()` allows to refresh the document without triggering a new
html request. This commits expose that existing internal function to the
lua api.

One example where it is useful : making a lua hook that allows to edit a
local file we're browsing and see the change without having to perform a
full reload (thus losing the scrolling position). Or anything else that
allows to interactively modify the currently loaded document.

`goto_url()` allows to navigate to given url long after the page has been
loaded (so follow_url_hooks can't be used).

Example where it's useful : binding a key to load the latest archive.org
snapshot for current page (especially useful when using tor and being
constantly harassed by cloudflare).
2021-11-13 13:57:52 +01:00
Witold Filipczyk
30d4eb36ff [smjs] Error Reporting with open_memstream 2021-09-06 20:36:10 +02:00
Witold Filipczyk
024f4f44b6 [smjs] Report errors to stderr 2021-09-06 19:46:09 +02:00
Witold Filipczyk
f692389917 [smjs] Compilation fixes. 2021-09-05 17:50:41 +02:00
Witold Filipczyk
47224921de [spidermonkey] jsval_to_string everywhere
Replace JS_EncodeString by jsval_to_string. It will allow easier
changes in the future. In smjs nullptr everywhere.
In ecmascript arrays don't work. For example
document.getElementsByTagName("H1")[0]

smjs even does not start.

Plan is to bump mozjs version, and later back to fixing bugs.
2021-08-27 19:46:05 +02:00
Witold Filipczyk
630696da59 [smjs] nullptr for ClassOps 2021-08-26 18:39:03 +02:00
Witold Filipczyk
34e878a0da [ecmascript] nullptr everywhere 2021-08-26 15:44:32 +02:00
Witold Filipczyk
b825f4abf1 [js] Start to adjust code for mozjs-60. 2021-08-25 20:08:02 +02:00
Witold Filipczyk
ee49c80061 [meson] ruby dependency: ruby not ruby-2.6
Also initialize error, because rb_load_protect, does not change it.
2021-08-17 16:09:05 +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
73c632f00c [lua] called tempname. 2021-04-03 21:14:21 +02:00
Witold Filipczyk
f351fbcf6a [dump] Experiment with pre_format_hook in dump. Refs #103 2021-03-07 22:07:34 +01:00
Witold Filipczyk
ccc7ca3653 [python] http/1.1 spec says that default codepage is ISO-8859-1. 2021-01-16 21:05:02 +01: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
085a93d544 [spidermonkey] JS_PS_END 2020-11-21 17:54:47 +01:00
Witold Filipczyk
477e56eb43 [smjs] Maybe it is not correct, but spidermonkey and smjs work together. 2020-11-17 18:46:27 +01:00
Witold Filipczyk
d1ecd45828 [mozjs52] It compiles, but often segfaults. No idea yet how to fix it. 2020-10-27 14:53:24 +01:00
Witold Filipczyk
a5b68a25a1 [mozjs45] Code is unstable, but at least compiles. 2020-10-23 22:34:58 +02:00
Witold Filipczyk
01c511f52d [mozjs38] ELinks is compilable, was not heavily tested. 2020-10-16 19:54:02 +02:00
Witold Filipczyk
ca24054cc6 [mozjs31] scripting smjs
It was not heavily tested.
2020-10-12 18:55:48 +02: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
f2557c9885 [python] Compilation warning 2020-08-09 19:50:19 +02:00
Witold Filipczyk
8b8f57ed75 [python] If page encoding is not "utf-8", encode it twice in pre_format_html_hook.
Once to utf-8 before pre_format_html_hook, and second time to the original encoding after python
script execution. I know it is inefficient, but computers are quite fast nowadays.
2020-08-09 17:45:22 +02:00
Felix Janda
f88e7c6081 Fix compilation with gcc-10
Fixes the errors

x86_64-pc-linux-gnu-ld: hooks.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here
x86_64-pc-linux-gnu-ld: ruby.o:(.bss+0x0): multiple definition of `erb_module'; core.o:(.bss+0x0): first defined here

Bug: https://bugs.gentoo.org/730658
2020-08-02 17:42:47 -04:00
Witold Filipczyk
9e71d7f3c8 [scripting] lua_rawlen. Refs #46 2020-05-22 20:46:35 +02:00
Witold Filipczyk
b3e01b3298 [scripting] python scripting with Python3.
Only utf-8 encoding is supported.
2019-11-11 13:33:37 +01:00
Witold Filipczyk
3d96b0d7d7 Revert "Compile with C++."
This reverts commit 4f4df33638.
2019-04-21 12:27:40 +02:00
Witold Filipczyk
8d7112c27d Revert "Fix some issues with js."
This reverts commit 6322d2936a.
2019-04-21 12:26:27 +02:00
Witold Filipczyk
6322d2936a Fix some issues with js. 2019-02-17 23:33:12 +01: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
Witold Filipczyk
25dd2ecae9 Changed ecmascript engine to mozjs-17.0.
Was not tested, especially smjs is likely buggy.
2019-02-10 21:00:37 +01:00
Witold Filipczyk
00d34fd0ed ruby: missing change PTR to LEN 2018-03-10 10:27:46 +01:00
Felix Janda
7a403ef735 Fix compatibility with Ruby >= 1.9
Based on patch by Ian Abbott

Bug: https://bugs.gentoo.org/424789
2018-03-09 17:34:30 -05:00