Sami Vaarala
0e7f594d4f
Cleanup, remove unused code from duk_cmdline
10 years ago
Sami Vaarala
783aa3892f
Replace DUK_CMDLINE_BAREBONES w/ DUK_CMDLINE_FANCY
The default is a barebones build and it happens without any specific options.
This is a better default for people trying Duktape out for the first time.
10 years ago
Sami Vaarala
0f2b9df9b8
Rename various READMEs to .rst suffix
10 years ago
Sami Vaarala
10f94b554d
Move files from examples to dist-files/
The coffeescript makefile is a special case, as it doesn't rely on Duktape.
10 years ago
Sami Vaarala
98c70bc1fb
Improve misleading error message from duk cmdline
11 years ago
Sami Vaarala
629e68bf26
cmdline bug fix: avoid complaining about 'error in reading input' when executing code from a file
11 years ago
Sami Vaarala
53cc8b485a
'duk' cmdline util improvements: add -i to force interactive mode even after executing files, remove '-' argument support which was broken
11 years ago
Sami Vaarala
26a028fe19
add a few missing casts (g++ errors)
11 years ago
Sami Vaarala
b91f6e7124
fix protected/safe call sites in code examples to omit errhandler_index
11 years ago
Sami Vaarala
724dbd8080
improve cmdline stack printing, so that there is no fatal error even if getting the 'stack' property fails
11 years ago
Sami Vaarala
6145c50e3f
add duk_safe_to_string() usage to duk_cmdline so that double error coercions work
11 years ago
Sami Vaarala
3c3561e4a1
add some missing makefiles
11 years ago
Sami Vaarala
66fd31d853
example README.txt heading trivia
11 years ago
Sami Vaarala
8f1c1eb1f0
example README.txt files
11 years ago
Sami Vaarala
1504bbb151
move unused cmdline modules (fileiso, socket, ncurses) to eventloop example, which is perhaps a more useful place for them
11 years ago
Sami Vaarala
c99603e558
fix eof handling for duk cmdline in non-interactive mode
11 years ago
Sami Vaarala
7b14c5d05d
make duk cmdline default memory limit be high, and use -r to reduce it
11 years ago
Sami Vaarala
dc00f8812e
avoid ToString() coercion of final Program result in non-interactive mode, as it may itself throw a TypeError (e.g. failed to coerce with [[DefaultValue]])
11 years ago
Sami Vaarala
c79cf5c82c
provide an explicit 'this' binding when calling program code in duk_cmdline, otherwise 'this' binding is incorrect when global code is strict
11 years ago
Sami Vaarala
c9ce15cf5b
rename __duk__ to Duktape in examples
11 years ago
Sami Vaarala
0a4c3b59ea
__duk__.build removal related trivia
11 years ago
Sami Vaarala
608a2f8ebf
force DUK_CMDLINE_BAREBONES on Windows to avoid header issues
11 years ago
Sami Vaarala
80fd26d51e
add duktape version to cmdline greet
11 years ago
Sami Vaarala
db30481a5a
cmdline barebones variant warning cleanup
11 years ago
Sami Vaarala
c8d3db805f
make cmdline tool print 'Cleaning up...' only in interactive mode
11 years ago
Sami Vaarala
344a46e728
make cmdline use 'stack' through the accessor
11 years ago
Sami Vaarala
ce8dbe4d10
add traceback dumping to cmdline tool
11 years ago
Sami Vaarala
dd4975cf92
add DUK_CMDLINE_BAREBONES (commented out) into the example makefile; make duktape cmdline banner indicate that readline is disabled
11 years ago
Sami Vaarala
fe4b62d7eb
remove ncurses/socket/fileio from cmdline (for now atleast); if DUK_CMDLINE_BAREBONES is defined, also remove other nonportable dependencies (readline, signals, rlimit)
11 years ago
Sami Vaarala
4b99ee9711
use libncurses instead of libncursesw in examples, as there is less porting hassle
11 years ago
Sami Vaarala
047e30b26e
tweak README.txt, add a ((o) Duktape -header to cmdline example
11 years ago
Sami Vaarala
03141d7d1f
cleanup example: no more internal header use
11 years ago
Sami Vaarala
8af2ffc633
a bunch of duk_api.h -> duktape.h changes
11 years ago
Sami Vaarala
11c664a4eb
mass rename of multiple duk_push_new_xxx() into duk_push_xxx() for API consistency
11 years ago
Sami Vaarala
34444e80c3
rename duk_push_new_buffer to duk_push_buffer (same for fixed/dynamic pushers); cmdline fixes
11 years ago
Sami Vaarala
4b8745ffaa
move cmdline tool to examples (along with the dummy socket, fileio, and ncurses modules), move Makefile.example to examples as well
12 years ago