From 0cfdfa741539afdd03dd4205b18412a683221899 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Wed, 25 May 2022 00:06:44 +0530 Subject: [PATCH] New fibers are not added to temp list -- fixed --- scripts/amalgamate.py | 5 +- scripts/static_check.py | 3 +- src/core/public.c | 1 + src/core/value.c | 10 +- src/libs/ext_term.c | 259 +++++ src/libs/libs.c | 13 +- src/libs/std_dummy.c | 4 + src/libs/std_io.c | 4 + src/libs/std_math.c | 15 + src/libs/std_path.c | 8 +- src/libs/std_time.c | 4 + src/libs/std_types.c | 2 +- src/libs/thirdparty/cwalk/LICENSE | 21 + .../{tp_cwalk.h => thirdparty/cwalk/cwalk.h} | 24 - src/libs/thirdparty/dirent/LICENSE | 21 + .../dirent/dirent.h} | 24 - src/libs/thirdparty/term/LICENSE | 21 + src/libs/thirdparty/term/term.h | 1027 +++++++++++++++++ 18 files changed, 1408 insertions(+), 58 deletions(-) create mode 100644 src/libs/ext_term.c create mode 100644 src/libs/thirdparty/cwalk/LICENSE rename src/libs/{tp_cwalk.h => thirdparty/cwalk/cwalk.h} (98%) create mode 100644 src/libs/thirdparty/dirent/LICENSE rename src/libs/{tp_dirent.h => thirdparty/dirent/dirent.h} (95%) create mode 100644 src/libs/thirdparty/term/LICENSE create mode 100644 src/libs/thirdparty/term/term.h diff --git a/scripts/amalgamate.py b/scripts/amalgamate.py index 591ecff..fb60d25 100644 --- a/scripts/amalgamate.py +++ b/scripts/amalgamate.py @@ -62,12 +62,13 @@ def log(*msg): sys.stderr.write(message + '\n') def parse(path): + dir = dirname(path).replace('\\', '/') ## Windows. text = "" with open(path, 'r') as fp: for line in fp.readlines(): if "//<< AMALG_INLINE >>" in line: - path = join(dirname(path), _get_include_path(line)) - path = path.replace('\\', '/') ## Aaah windows path. + path = join(dir, _get_include_path(line)) + path = path.replace('\\', '/') text += parse(path) + '\n' else: text += line diff --git a/scripts/static_check.py b/scripts/static_check.py index 4038538..4e0e8ed 100644 --- a/scripts/static_check.py +++ b/scripts/static_check.py @@ -34,8 +34,7 @@ ALLOW_LONG_LINES = ('http://', 'https://', '