Witold Filipczyk
|
d1e5e0b7d2
|
Introduced STRING_DIR_SEP for better portability
|
2006-07-02 08:44:52 +02:00 |
|
Miciah Dashiel Butler Masters
|
97b5b9cfe1
|
Check for hooks.js before trying to load it.
Check file_exists(path) before calling smjs_do_file(path)
in smjs_load_hooks to fix an error message when there is no hooks.js,
reported by zas.
|
2006-01-02 18:53:13 +00:00 |
|
Miciah Dashiel Butler Masters
|
684bac3b22
|
Define do_file before loading hooks.js in case hooks.js wants to use
do_file immediately.
|
2005-12-29 14:24:00 +00:00 |
|
Miciah Dashiel Butler Masters
|
a4be153703
|
Generalise the error message from smjs_do_file by dropping 'default'
from 'error loading default script file'.
|
2005-12-29 13:54:26 +00:00 |
|
Miciah Dashiel Butler Masters
|
b52a29f8c0
|
Let smjs_do_file return 0 to indicate failure and 1 to indicate
success. Add smjs_do_file_wrapper and let ECMAScript load files with
do_file(path).
|
2005-12-29 13:48:02 +00:00 |
|
Miciah Dashiel Butler Masters
|
cb506ea412
|
Factor smjs_do_file out of smjs_load_hooks.
|
2005-12-29 13:27:12 +00:00 |
|
Miciah Dashiel Butler Masters
|
9d4893e384
|
Mark smjs_load_hooks static.
|
2005-12-29 13:26:38 +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
|
bb4f08172b
|
In init_smjs, mark global_class static.
|
2005-12-20 22:09:56 +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 |
|
Miciah Dashiel Butler Masters
|
51322649fe
|
Load the default script.
|
2005-12-18 18:02:32 +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 |
|