Sami Vaarala
3be55bf7c9
Add duk_errmsg.c/.h to build and dist
11 years ago
Sami Vaarala
738ad2751e
API typing cleanup: use duk_idx_t for counts
The duk_idx_t type is appropriate for stack sizes and counts because
it will necessarily have enough bits to express sizes/counts nicely.
Negative values are clamped to zero or cause an error to be thrown.
This is nice for calling code, because calculation errors or simple
failures to clamp will not cause a negative value to be treated like
a large unsigned value which would be incorrect and lead to confusing
behavior.
11 years ago
Sami Vaarala
91fafa038a
Add duk_errmsg.c for gathering shared error msgs
11 years ago
Sami Vaarala
19cd4772b0
Guide ctypes layout fixes
11 years ago
Sami Vaarala
b5d8f14cc3
API doc flags field updates
11 years ago
Sami Vaarala
624c138f02
Change API flag fields to unsigned
11 years ago
Sami Vaarala
677a229e99
duk_tval typing fixes
11 years ago
Sami Vaarala
a2bcf50bd9
duk_uarridx_t API / website fixes
11 years ago
Sami Vaarala
567f6718b5
Update guide duk_uarridx_t reference
11 years ago
Sami Vaarala
59392b1825
Rename duk_arridx_t to duk_uarridx_t
The duk_uarridx_t type is unsigned and there might be a need for a signed
array index type later (duk_arridx_t would then be used). This convention
matches duk_ucodepoint_t and duk_codepoint_t.
11 years ago
Sami Vaarala
6e7d3b06a1
Hex decode bug fix
11 years ago
Sami Vaarala
9d95698f97
Test case comment fixes
11 years ago
Sami Vaarala
58b9538dc8
Custom directives guide section trivia
11 years ago
Sami Vaarala
56d7c8e02b
C types section additions and fixes
Add a note about format strings in Duktape API being passed straight
to vsnprintf(). This matters for portability of calling code.
11 years ago
Sami Vaarala
b357ce3c2a
Fix overlapping release note entries
11 years ago
Sami Vaarala
58e35d5a3d
Guide note on path encoding (or lack of)
Also a typofix.
11 years ago
Sami Vaarala
0c0d2620f0
Refactor string eval/compile intern note to shared
11 years ago
Sami Vaarala
d065a1d8f4
Refactor context dump call warning to be shared
11 years ago
Sami Vaarala
2731774266
Add a path encoding note to API calls with a path
11 years ago
Sami Vaarala
bbcfa0082b
Improve buildsite.py include mechanism (HTML)
Add HTML include support to the include mechanism. This is useful for
including repetitive snippets into guide/API pages.
11 years ago
Sami Vaarala
8de9720989
Improve ctypes table layout
11 years ago
Sami Vaarala
38ced8a4dc
Add DUK_SIZE_MAX to guide ctypes.
11 years ago
Sami Vaarala
df88267de1
API testcase typing fixes
Also a few expect fixes.
11 years ago
Sami Vaarala
8d085475f2
Add a draft C typing section
Also add C99/C++11 typing for API entries as a hover tool tip.
11 years ago
Sami Vaarala
d8cf35ba23
Update internal code issue w.r.t typing
11 years ago
Sami Vaarala
c38a22167d
Clarify duk_substring() offset argument names
11 years ago
Sami Vaarala
2ea2fe2c62
Make duk_errcode_t guaranteed 32 bits wide
This is needed because user error code space is promised to be
[1,16777215] and there also needs to be room for flags which
share the same argument.
11 years ago
Sami Vaarala
524f170457
Unfinished duk_xmove() API doc
11 years ago
Sami Vaarala
c0dd6b800f
Typing updates on API defines doc
11 years ago
Sami Vaarala
04740bd5cb
Typing work and other cleanups on API func docs
11 years ago
Sami Vaarala
ce46f0dc49
Minor typing changes
Change array type back to unsigned (accidentally changed to signed
previously). Make codepoint types "fast integer" variants, as they're
used in loops and such, and are not used in significant structs. This
increases code footprint by ~200 bytes but is the better choice as it
also simplifies API typing.
11 years ago
Sami Vaarala
b8cad22981
Code issues update: duk_bool_t, funcptrs
11 years ago
Sami Vaarala
5afe6c90fd
Add type wrapped duk_ptrdiff_t
11 years ago
Sami Vaarala
d808659ca9
Internal API typing rework
11 years ago
Sami Vaarala
d7bc8cf3e6
A round of public API typing fixes
All public calls have now been fixed to some extent (FIXME notes left
behind for issues to resolve).
11 years ago
Sami Vaarala
cf3e64501b
Midcommit on typing dev notes
11 years ago
Sami Vaarala
8a8fb90f13
Release note update
11 years ago
Sami Vaarala
c2cf99bc9a
Public API typing cleanups, mostly property access
11 years ago
Sami Vaarala
80d63c1a51
API test case fixes related to API typing cleanup
duk_get_type() return value type related.
11 years ago
Sami Vaarala
3f6efc25e3
Public API typing changes: get/require/to, codecs
11 years ago
Sami Vaarala
8ebfacf654
More public API typing cleanup
Note: use duk_ret_t for function/method/safe call returns, and use
duk_bool_t for "C boolean" returns, where the return value range would
be the same as e.g. a comparison (a > b).
11 years ago
Sami Vaarala
9466d015d9
Runtests public API typing fix trivia
11 years ago
Sami Vaarala
9e936f93ee
Fix API testcases to match public API typing fixes
11 years ago
Sami Vaarala
6e5400a4a9
Public API typing cleanups
11 years ago
Sami Vaarala
37dc31e7b7
Merge branch 'build-minify-fix'
11 years ago
Sami Vaarala
badf166308
Use only closure compiler for dist InitJS minify
11 years ago
Sami Vaarala
9fe927bd16
Ditz issue update
11 years ago
Sami Vaarala
6a50282131
Ditz issue update
11 years ago
Sami Vaarala
c06136a6a9
Merge branch 'hex-decode-table'
Use a 256-byte table for hex decoding. This affects several places
where hex values were decoded with an if-else ladder. There's some
net footprint increase. Performance increases are mostly limited to
duk_decode_hex() API call and Duktape.dec('jx', ...) calls. Elsewhere
the performance matters less.
11 years ago
Sami Vaarala
96b37533cb
hex decode table; increases footprint but a bit faster
11 years ago