Miciah Dashiel Butler Masters
|
f8de70b8f6
|
Comment smjs_elinks_object.
|
2005-12-24 03:49:06 +00:00 |
|
Miciah Dashiel Butler Masters
|
9b645f9b66
|
Move smjs_elinks_object to elinks_object.h.
|
2005-12-24 03:48:57 +00:00 |
|
Miciah Dashiel Butler Masters
|
8743ec74d8
|
Factor the initialisation of smjs_elinks_global out of init_smjs and
into the new smjs_init_elinks_object.
|
2005-12-24 03:47:34 +00:00 |
|
Miciah Dashiel Butler Masters
|
60dd7515f9
|
Change smjs_get_elinks_object to use smjs_global_object instead of
an argument.
|
2005-12-24 03:43:53 +00:00 |
|
Miciah Dashiel Butler Masters
|
d6ecf895ce
|
Make global_object a global with the new name smjs_global_object and
create smjs_init_global_object to initialise the global.
|
2005-12-24 03:40:59 +00:00 |
|
Miciah Dashiel Butler Masters
|
3174c533b0
|
Factor smjs_get_global_object out of init_smjs.
|
2005-12-24 03:39:24 +00:00 |
|
Miciah Dashiel Butler Masters
|
2a0653a9f2
|
Fix the comment heading to say ECMAScript instead of Ruby.
|
2005-12-22 23:45:12 +00:00 |
|
Miciah Dashiel Butler Masters
|
f6ce6c84f7
|
Rename get_cache_entry_object to smjs_get_cache_entry_object for great
consistency.
|
2005-12-20 22:13:29 +00:00 |
|
Miciah Dashiel Butler Masters
|
9e15d09340
|
NULL-terminate cache_entry_props. This and the last change resolves
crashes with GCC 2.x and 3.x reported by zas.
|
2005-12-20 22:10:59 +00:00 |
|
Miciah Dashiel Butler Masters
|
bb4f08172b
|
In init_smjs, mark global_class static.
|
2005-12-20 22:09:56 +00:00 |
|
Miciah Dashiel Butler Masters
|
be76bed022
|
Check the return values of JS_SetPrivate and JS_DefineProperties in
get_cache_entry_object.
|
2005-12-20 10:44:51 +00:00 |
|
Miciah Dashiel Butler Masters
|
71fb9a1db7
|
Move smjs_invoke_elinks_object_method from hooks.c to elinks_object.c.
|
2005-12-20 05:26:55 +00:00 |
|
Miciah Dashiel Butler Masters
|
3302baca35
|
Rename call_script_hook to smjs_invoke_elinks_object_method and rename
its hook parameter to method.
|
2005-12-20 05:25:36 +00:00 |
|
Miciah Dashiel Butler Masters
|
f5b102cfea
|
Assert smjs_ctx in get_cache_entry_object.
|
2005-12-19 21:33:10 +00:00 |
|
Miciah Dashiel Butler Masters
|
2e0907ff8d
|
In script_hook_pre_format_html, check whether get_cache_entry_object
returns NULL.
|
2005-12-19 21:28:52 +00:00 |
|
Miciah Dashiel Butler Masters
|
2b6ef067be
|
In init_smjs, destroy the runtime if JS_NewContext returns NULL.
|
2005-12-19 21:26:05 +00:00 |
|
Miciah Dashiel Butler Masters
|
fcd13e35cb
|
Do nothing in cleanup_smjs is smjs_ctx is NULL.
|
2005-12-19 21:24:54 +00:00 |
|
Miciah Dashiel Butler Masters
|
11c90e7205
|
Add some assertions.
|
2005-12-19 21:24:27 +00:00 |
|
Miciah Dashiel Butler Masters
|
5ca5381fbc
|
Rework smjs_load_hooks not to free path until it is done and to always
call done_string on the script string, even when add_file_to_string fails.
|
2005-12-19 19:08:34 +00:00 |
|
Jonas Fonseca
|
fa124d0988
|
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
|
2005-12-18 23:49:15 +01:00 |
|
Miciah Dashiel Butler Masters
|
2fef4bd531
|
In cache_entry_get_property and cache_entry_set_property, use
cache_entry_is_valid to check that the reference to the struct cache_entry
is still valid. Thanks to fonseca for the reminder.
|
2005-12-18 22:47:58 +00:00 |
|
Jonas Fonseca
|
8ea7f202b1
|
#include "src/scripting/smjs/cache_object.h"
|
2005-12-18 22:17:48 +01:00 |
|
Jonas Fonseca
|
838e2ea0c9
|
Make all global variables exported by src/scripting/smjs/core.h extern
|
2005-12-18 19:57:03 +01:00 |
|
Miciah Dashiel Butler Masters
|
51322649fe
|
Load the default script.
|
2005-12-18 18:02:32 +00:00 |
|
Miciah Dashiel Butler Masters
|
e3fed7e19e
|
Add a pre-format-html hook.
|
2005-12-18 17:58:42 +00:00 |
|
Miciah Dashiel Butler Masters
|
30ccbaaf21
|
Add the elinks.alert method.
|
2005-12-18 17:49:21 +00:00 |
|
Miciah Dashiel Butler Masters
|
6e0d4374c1
|
Add the "elinks" object.
|
2005-12-18 17:47:54 +00:00 |
|
Miciah Dashiel Butler Masters
|
acb2bb80be
|
Create a global object.
|
2005-12-18 17:40:13 +00:00 |
|
Miciah Dashiel Butler Masters
|
60d40b7f50
|
Initial skeleton for SpiderMonkey scripting backend.
|
2005-12-18 17:40:00 +00:00 |
|