Skip to content

Commit fe64dd0

Browse files
committed
Fix some source and doc refs to relocated tools
1 parent 690f81f commit fe64dd0

9 files changed

Lines changed: 18 additions & 18 deletions

doc/bytecode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ The exact format is ultimately defined by the source code, see:
334334

335335
* ``src/duk_api_bytecode.c``
336336

337-
* ``util/dump_bytecode.py``
337+
* ``tools/dump_bytecode.py``
338338

339339
As a simplified summary of the bytecode format:
340340

doc/code-issues.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ The ``DUK_INTERNAL_DECL`` idiom is::
811811
DUK_INTERNAL_DECL const char *duk_str_not_object;
812812
#endif /* !DUK_SINGLE_FILE */
813813

814-
For this to work in the single file case, ``util/combine_src.py`` must
814+
For this to work in the single file case, ``tools/combine_src.py`` must
815815
ensure that the symbol definition appears before its use. This is currently
816816
handled via manual file reordering.
817817

doc/release-checklist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Checklist for ordinary releases
4141

4242
- Check year range
4343

44-
- Also check ``util/create_spdx_license.py``
44+
- Also check ``tools/create_spdx_license.py``
4545

4646
* Ensure RELEASES.rst is up-to-date (must be done before candidate tar.xz
4747
build because dist package contains RELEASES.rst)

examples/cmdline/duk_cmdline_ajduk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,14 +508,14 @@ void ajsheap_extstr_free_1(const void *ptr) {
508508
* binary.
509509
*
510510
* Duktape built-in strings are available from duk_build_meta.json, see
511-
* util/duk_meta_to_strarray.py. There may also be a lot of application
511+
* tools/duk_meta_to_strarray.py. There may also be a lot of application
512512
* specific strings, e.g. those used by application specific APIs. These
513-
* must be gathered through some other means, see e.g. util/scan_strings.py.
513+
* must be gathered through some other means, see e.g. tools/scan_strings.py.
514514
*/
515515

516516
static const char *strdata_duk_builtin_strings[] = {
517517
/*
518-
* These strings are from util/duk_meta_to_strarray.py
518+
* These strings are from tools/duk_meta_to_strarray.py
519519
*/
520520

521521
"Logger",

src/duk_bi_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DUK_LOCAL_DECL duk_ret_t duk__set_this_timeval_from_dparts(duk_context *ctx, duk
6161
#define DUK__YEAR(x) ((duk_uint8_t) ((x) - 1970))
6262
DUK_LOCAL duk_uint8_t duk__date_equivyear[14] = {
6363
#if 1
64-
/* This is based on V8 EquivalentYear() algorithm (see src/genequivyear.py):
64+
/* This is based on V8 EquivalentYear() algorithm (see util/genequivyear.py):
6565
* http://code.google.com/p/v8/source/browse/trunk/src/date.h#146
6666
*/
6767

src/duk_heap_hashstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* with real world inputs). Unless the hash is cryptographic, it's always
1414
* possible to craft inputs with maximal hash collisions.
1515
*
16-
* NOTE: The hash algorithms must match src/dukutil.py:duk_heap_hashstring()
16+
* NOTE: The hash algorithms must match tools/dukutil.py:duk_heap_hashstring()
1717
* for ROM string support!
1818
*/
1919

src/duk_numconv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define DUK__DIGITCHAR(x) duk_lc_digits[(x)]
1919

2020
/*
21-
* Tables generated with src/gennumdigits.py.
21+
* Tables generated with util/gennumdigits.py.
2222
*
2323
* duk__str2num_digits_for_radix indicates, for each radix, how many input
2424
* digits should be considered significant for string-to-number conversion.

src/duk_unicode_support.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ DUK_INTERNAL duk_ucodepoint_t duk_unicode_decode_xutf8_checked(duk_hthread *thr,
285285
* chosen from several variants, based on x64 gcc -O2 testing. See:
286286
* https://github.com/svaarala/duktape/pull/422
287287
*
288-
* NOTE: must match src/dukutil.py:duk_unicode_unvalidated_utf8_length().
288+
* NOTE: must match tools/dukutil.py:duk_unicode_unvalidated_utf8_length().
289289
*/
290290

291291
#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
396396
* Used for slow path Unicode matching.
397397
*/
398398

399-
/* Must match src/extract_chars.py, generate_match_table3(). */
399+
/* Must match tools/extract_chars.py, generate_match_table3(). */
400400
DUK_LOCAL duk_uint32_t duk__uni_decode_value(duk_bitdecoder_ctx *bd_ctx) {
401401
duk_uint32_t t;
402402

@@ -467,7 +467,7 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_whitespace(duk_codepoint_t cp) {
467467
* FEFF;ZERO WIDTH NO-BREAK SPACE;Cf;0;BN;;;;;N;BYTE ORDER MARK;;;;
468468
*
469469
* It also specifies any Unicode category 'Zs' characters as white
470-
* space. These can be extracted with the "src/extract_chars.py" script.
470+
* space. These can be extracted with the "tools/extract_chars.py" script.
471471
* Current result:
472472
*
473473
* RAW OUTPUT:
@@ -574,7 +574,7 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_identifier_start(duk_codepoint_t cp)
574574
*
575575
* The "UnicodeLetter" alternative of the production allows letters
576576
* from various Unicode categories. These can be extracted with the
577-
* "src/extract_chars.py" script.
577+
* "tools/extract_chars.py" script.
578578
*
579579
* Because the result has hundreds of Unicode codepoint ranges, matching
580580
* 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)
671671
* The matching code reuses the "identifier start" tables, and then
672672
* consults a separate range set for characters in "identifier part"
673673
* but not in "identifier start". These can be extracted with the
674-
* "src/extract_chars.py" script.
674+
* "tools/extract_chars.py" script.
675675
*
676676
* UnicodeCombiningMark -> categories Mn, Mc
677677
* UnicodeDigit -> categories Nd
@@ -786,14 +786,14 @@ DUK_INTERNAL duk_small_int_t duk_unicode_is_letter(duk_codepoint_t cp) {
786786

787787
/*
788788
* Complex case conversion helper which decodes a bit-packed conversion
789-
* control stream generated by unicode/extract_caseconv.py. The conversion
789+
* control stream generated by tools/extract_caseconv.py. The conversion
790790
* is very slow because it runs through the conversion data in a linear
791791
* fashion to save space (which is why ASCII characters have a special
792792
* fast path before arriving here).
793793
*
794794
* The particular bit counts etc have been determined experimentally to
795795
* be small but still sufficient, and must match the Python script
796-
* (src/extract_caseconv.py).
796+
* (tools/extract_caseconv.py).
797797
*
798798
* The return value is the case converted codepoint or -1 if the conversion
799799
* results in multiple characters (this is useful for regexp Canonicalization

src/duk_unicode_tables.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* compactness is most important.
1414
*
1515
* The tables are matched using uni_range_match() and the format
16-
* is described in src/extract_chars.py.
16+
* is described in tools/extract_chars.py.
1717
*/
1818

1919
#ifdef DUK_USE_SOURCE_NONBMP
@@ -47,7 +47,7 @@
4747
#endif
4848

4949
/*
50-
* Case conversion tables generated using src/extract_caseconv.py.
50+
* Case conversion tables generated using tools/extract_caseconv.py.
5151
*/
5252

5353
/* duk_unicode_caseconv_uc[] */

0 commit comments

Comments
 (0)