You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Sami Vaarala 0067588f69 Extras fixes for symbols 8 years ago
..
Makefile Add warning options to extra test makefiles 9 years ago
README.rst Extras update for file API removal 9 years ago
duk_v1_compat.c v1-compat extra buffer related fix 8 years ago
duk_v1_compat.h Extras fixes for symbols 8 years ago
test.c Extras update for file API removal 9 years ago
test_compile1.js Extras update for file API removal 9 years ago
test_compile2.js Extras update for file API removal 9 years ago
test_eval1.js Extras update for file API removal 9 years ago
test_eval2.js Extras update for file API removal 9 years ago

README.rst

================================
Duktape V1 compatibility helpers
================================

Provides helpers for migrating from Duktape 1.x to 2.x:

* Add ``duk_v1_compat.c`` to list of C sources to compile.

* Ensure ``duk_v1_compat.h`` is in the include path.

* Include the extra header in calling code::

#include "duktape.h"
#include "duk_v1_compat.h"

/* ... */

duk_dump_context_stdout(ctx); /* Removed in Duktape 2.x. */

The helpers don't restore full 1.x compatibility because some API calls such
as ``duk_safe_call()`` have changed in an incompatible manner.

The old APIs are documented in:

* http://duktape.org/1.5.0/api.html