Browse Source

Fix some source and doc refs to relocated tools

pull/929/head
Sami Vaarala 8 years ago
parent
commit
fe64dd0836
  1. 2
      doc/bytecode.rst
  2. 2
      doc/code-issues.rst
  3. 2
      doc/release-checklist.rst
  4. 6
      examples/cmdline/duk_cmdline_ajduk.c
  5. 2
      src/duk_bi_date.c
  6. 2
      src/duk_heap_hashstring.c
  7. 2
      src/duk_numconv.c
  8. 14
      src/duk_unicode_support.c
  9. 4
      src/duk_unicode_tables.c

2
doc/bytecode.rst

@ -334,7 +334,7 @@ The exact format is ultimately defined by the source code, see:
* ``src/duk_api_bytecode.c``
* ``util/dump_bytecode.py``
* ``tools/dump_bytecode.py``
As a simplified summary of the bytecode format:

2
doc/code-issues.rst

@ -811,7 +811,7 @@ The ``DUK_INTERNAL_DECL`` idiom is::
DUK_INTERNAL_DECL const char *duk_str_not_object;
#endif /* !DUK_SINGLE_FILE */
For this to work in the single file case, ``util/combine_src.py`` must
For this to work in the single file case, ``tools/combine_src.py`` must
ensure that the symbol definition appears before its use. This is currently
handled via manual file reordering.

2
doc/release-checklist.rst

@ -41,7 +41,7 @@ Checklist for ordinary releases
- Check year range
- Also check ``util/create_spdx_license.py``
- Also check ``tools/create_spdx_license.py``
* Ensure RELEASES.rst is up-to-date (must be done before candidate tar.xz
build because dist package contains RELEASES.rst)

6
examples/cmdline/duk_cmdline_ajduk.c

@ -508,14 +508,14 @@ void ajsheap_extstr_free_1(const void *ptr) {
* binary.
*
* Duktape built-in strings are available from duk_build_meta.json, see
* util/duk_meta_to_strarray.py. There may also be a lot of application
* tools/duk_meta_to_strarray.py. There may also be a lot of application
* specific strings, e.g. those used by application specific APIs. These
* must be gathered through some other means, see e.g. util/scan_strings.py.
* must be gathered through some other means, see e.g. tools/scan_strings.py.
*/
static const char *strdata_duk_builtin_strings[] = {
/*
* These strings are from util/duk_meta_to_strarray.py
* These strings are from tools/duk_meta_to_strarray.py
*/
"Logger",

2
src/duk_bi_date.c

@ -61,7 +61,7 @@ DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, duk
#define DUK__YEAR(x) ((duk_uint8_t) ((x) - 1970))
DUK_LOCAL duk_uint8_t duk__date_equivyear[14] = {
#if 1
/* This is based on V8 EquivalentYear() algorithm (see src/genequivyear.py):
/* This is based on V8 EquivalentYear() algorithm (see util/genequivyear.py):
* http://code.google.com/p/v8/source/browse/trunk/src/date.h#146
*/

2
src/duk_heap_hashstring.c

@ -13,7 +13,7 @@
* with real world inputs). Unless the hash is cryptographic, it's always
* possible to craft inputs with maximal hash collisions.
*
* NOTE: The hash algorithms must match src/dukutil.py:duk_heap_hashstring()
* NOTE: The hash algorithms must match tools/dukutil.py:duk_heap_hashstring()
* for ROM string support!
*/

2
src/duk_numconv.c

@ -18,7 +18,7 @@
#define DUK__DIGITCHAR(x) duk_lc_digits[(x)]
/*
* Tables generated with src/gennumdigits.py.
* Tables generated with util/gennumdigits.py.
*
* duk__str2num_digits_for_radix indicates, for each radix, how many input
* digits should be considered significant for string-to-number conversion.

14
src/duk_unicode_support.c

@ -285,7 +285,7 @@ DUK_INTERNAL duk_ucodepoint_t duk_unicode_decode_xutf8_checked(duk_hthread *thr,
* chosen from several variants, based on x64 gcc -O2 testing. See:
* https://github.com/svaarala/duktape/pull/422
*
* NOTE: must match src/dukutil.py:duk_unicode_unvalidated_utf8_length().
* NOTE: must match tools/dukutil.py:duk_unicode_unvalidated_utf8_length().
*/
#if defined(DUK_USE_PREFER_SIZE)
@ -396,7 +396,7 @@ DUK_INTERNAL duk_size_t duk_unicode_unvalidated_utf8_length(const duk_uint8_t *d
* Used for slow path Unicode matching.
*/
/* Must match src/extract_chars.py, generate_match_table3(). */
/* Must match tools/extract_chars.py, generate_match_table3(). */
DUK_LOCAL duk_uint32_t duk__uni_decode_value(duk_bitdecoder_ctx *bd_ctx) {
duk_uint32_t t;
@ -467,7 +467,7 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_whitespace(duk_codepoint_t cp) {
* FEFF;ZERO WIDTH NO-BREAK SPACE;Cf;0;BN;;;;;N;BYTE ORDER MARK;;;;
*
* It also specifies any Unicode category 'Zs' characters as white
* space. These can be extracted with the "src/extract_chars.py" script.
* space. These can be extracted with the "tools/extract_chars.py" script.
* Current result:
*
* RAW OUTPUT:
@ -574,7 +574,7 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_identifier_start(duk_codepoint_t cp)
*
* The "UnicodeLetter" alternative of the production allows letters
* from various Unicode categories. These can be extracted with the
* "src/extract_chars.py" script.
* "tools/extract_chars.py" script.
*
* Because the result has hundreds of Unicode codepoint ranges, matching
* for any values >= 0x80 are done using a very slow range-by-range scan
@ -671,7 +671,7 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_identifier_part(duk_codepoint_t cp)
* The matching code reuses the "identifier start" tables, and then
* consults a separate range set for characters in "identifier part"
* but not in "identifier start". These can be extracted with the
* "src/extract_chars.py" script.
* "tools/extract_chars.py" script.
*
* UnicodeCombiningMark -> categories Mn, Mc
* UnicodeDigit -> categories Nd
@ -786,14 +786,14 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_letter(duk_codepoint_t cp) {
/*
* Complex case conversion helper which decodes a bit-packed conversion
* control stream generated by unicode/extract_caseconv.py. The conversion
* control stream generated by tools/extract_caseconv.py. The conversion
* is very slow because it runs through the conversion data in a linear
* fashion to save space (which is why ASCII characters have a special
* fast path before arriving here).
*
* The particular bit counts etc have been determined experimentally to
* be small but still sufficient, and must match the Python script
* (src/extract_caseconv.py).
* (tools/extract_caseconv.py).
*
* The return value is the case converted codepoint or -1 if the conversion
* results in multiple characters (this is useful for regexp Canonicalization

4
src/duk_unicode_tables.c

@ -13,7 +13,7 @@
* compactness is most important.
*
* The tables are matched using uni_range_match() and the format
* is described in src/extract_chars.py.
* is described in tools/extract_chars.py.
*/
#ifdef DUK_USE_SOURCE_NONBMP
@ -47,7 +47,7 @@
#endif
/*
* Case conversion tables generated using src/extract_caseconv.py.
* Case conversion tables generated using tools/extract_caseconv.py.
*/
/* duk_unicode_caseconv_uc[] */

Loading…
Cancel
Save