Date: Fri, 22 Nov 2024 07:41:58 +0100
Subject: [PATCH] Delete lib/libesp32/Berry directory
---
lib/libesp32/Berry/LICENSE | 21 -
lib/libesp32/Berry/Makefile | 93 -
lib/libesp32/Berry/README.md | 161 --
lib/libesp32/Berry/berry-logo.png | Bin 11325 -> 0 bytes
lib/libesp32/Berry/default/be_modtab.c | 353 ---
lib/libesp32/Berry/default/berry_conf.h | 323 ---
lib/libesp32/Berry/examples/anon_func.be | 20 -
lib/libesp32/Berry/examples/bigloop.be | 15 -
lib/libesp32/Berry/examples/bintree.be | 60 -
lib/libesp32/Berry/examples/calcpi.be | 16 -
lib/libesp32/Berry/examples/exception.be | 12 -
lib/libesp32/Berry/examples/fib_rec.be | 12 -
lib/libesp32/Berry/examples/guess_number.be | 26 -
lib/libesp32/Berry/examples/json.be | 4 -
lib/libesp32/Berry/examples/lambda.be | 8 -
lib/libesp32/Berry/examples/listdir.be | 16 -
lib/libesp32/Berry/examples/qsort.be | 42 -
lib/libesp32/Berry/examples/repl.be | 61 -
lib/libesp32/Berry/examples/string.be | 32 -
lib/libesp32/Berry/examples/strmod.be | 7 -
lib/libesp32/Berry/gen.sh | 8 -
lib/libesp32/Berry/library.json | 32 -
lib/libesp32/Berry/src/be_api.c | 1179 ---------
lib/libesp32/Berry/src/be_baselib.c | 552 ----
lib/libesp32/Berry/src/be_bytecode.c | 634 -----
lib/libesp32/Berry/src/be_bytecode.h | 19 -
lib/libesp32/Berry/src/be_byteslib.c | 1907 -------------
lib/libesp32/Berry/src/be_class.c | 374 ---
lib/libesp32/Berry/src/be_class.h | 78 -
lib/libesp32/Berry/src/be_code.c | 976 -------
lib/libesp32/Berry/src/be_code.h | 44 -
lib/libesp32/Berry/src/be_constobj.h | 508 ----
lib/libesp32/Berry/src/be_debug.c | 418 ---
lib/libesp32/Berry/src/be_debug.h | 28 -
lib/libesp32/Berry/src/be_debuglib.c | 289 --
lib/libesp32/Berry/src/be_decoder.h | 74 -
lib/libesp32/Berry/src/be_exec.c | 522 ----
lib/libesp32/Berry/src/be_exec.h | 63 -
lib/libesp32/Berry/src/be_filelib.c | 263 --
lib/libesp32/Berry/src/be_func.c | 183 --
lib/libesp32/Berry/src/be_func.h | 27 -
lib/libesp32/Berry/src/be_gc.c | 613 -----
lib/libesp32/Berry/src/be_gc.h | 79 -
lib/libesp32/Berry/src/be_gclib.c | 47 -
lib/libesp32/Berry/src/be_globallib.c | 100 -
lib/libesp32/Berry/src/be_introspectlib.c | 278 --
lib/libesp32/Berry/src/be_jsonlib.c | 565 ----
lib/libesp32/Berry/src/be_lexer.c | 871 ------
lib/libesp32/Berry/src/be_lexer.h | 140 -
lib/libesp32/Berry/src/be_libs.c | 29 -
lib/libesp32/Berry/src/be_libs.h | 15 -
lib/libesp32/Berry/src/be_list.c | 207 --
lib/libesp32/Berry/src/be_list.h | 39 -
lib/libesp32/Berry/src/be_listlib.c | 556 ----
lib/libesp32/Berry/src/be_map.c | 354 ---
lib/libesp32/Berry/src/be_map.h | 61 -
lib/libesp32/Berry/src/be_maplib.c | 265 --
lib/libesp32/Berry/src/be_mathlib.c | 438 ---
lib/libesp32/Berry/src/be_mem.c | 372 ---
lib/libesp32/Berry/src/be_mem.h | 37 -
lib/libesp32/Berry/src/be_module.c | 498 ----
lib/libesp32/Berry/src/be_module.h | 43 -
lib/libesp32/Berry/src/be_object.c | 84 -
lib/libesp32/Berry/src/be_object.h | 267 --
lib/libesp32/Berry/src/be_opcodes.h | 57 -
lib/libesp32/Berry/src/be_oslib.c | 271 --
lib/libesp32/Berry/src/be_parser.c | 1838 -------------
lib/libesp32/Berry/src/be_parser.h | 91 -
lib/libesp32/Berry/src/be_rangelib.c | 187 --
lib/libesp32/Berry/src/be_repl.c | 106 -
lib/libesp32/Berry/src/be_repl.h | 26 -
lib/libesp32/Berry/src/be_solidifylib.c | 886 -------
lib/libesp32/Berry/src/be_strictlib.c | 40 -
lib/libesp32/Berry/src/be_string.c | 326 ---
lib/libesp32/Berry/src/be_string.h | 63 -
lib/libesp32/Berry/src/be_strlib.c | 1069 --------
lib/libesp32/Berry/src/be_strlib.h | 34 -
lib/libesp32/Berry/src/be_sys.h | 48 -
lib/libesp32/Berry/src/be_syslib.c | 36 -
lib/libesp32/Berry/src/be_timelib.c | 72 -
lib/libesp32/Berry/src/be_var.c | 174 --
lib/libesp32/Berry/src/be_var.h | 31 -
lib/libesp32/Berry/src/be_vector.c | 157 --
lib/libesp32/Berry/src/be_vector.h | 43 -
lib/libesp32/Berry/src/be_vm.c | 1419 ----------
lib/libesp32/Berry/src/be_vm.h | 169 --
lib/libesp32/Berry/src/berry.h | 2355 -----------------
lib/libesp32/Berry/src/berry_conf.h | 1 -
lib/libesp32/Berry/testall.be | 44 -
lib/libesp32/Berry/tests/assignment.be | 34 -
lib/libesp32/Berry/tests/bool.be | 53 -
lib/libesp32/Berry/tests/bytes.be | 327 ---
lib/libesp32/Berry/tests/bytes_b64.be | 15 -
lib/libesp32/Berry/tests/bytes_fixed.be | 68 -
lib/libesp32/Berry/tests/checkspace.be | 35 -
lib/libesp32/Berry/tests/class.be | 60 -
lib/libesp32/Berry/tests/class_const.be | 122 -
lib/libesp32/Berry/tests/closure.be | 16 -
lib/libesp32/Berry/tests/compiler.be | 80 -
lib/libesp32/Berry/tests/compound.be | 28 -
lib/libesp32/Berry/tests/cond_expr.be | 10 -
lib/libesp32/Berry/tests/debug.be | 29 -
lib/libesp32/Berry/tests/exceptions.be | 7 -
lib/libesp32/Berry/tests/for.be | 44 -
lib/libesp32/Berry/tests/function.be | 12 -
lib/libesp32/Berry/tests/global.be | 43 -
lib/libesp32/Berry/tests/introspect.be | 66 -
lib/libesp32/Berry/tests/json.be | 95 -
lib/libesp32/Berry/tests/lexer.be | 65 -
lib/libesp32/Berry/tests/lexergc.be | 12 -
lib/libesp32/Berry/tests/list.be | 140 -
lib/libesp32/Berry/tests/member_indirect.be | 75 -
lib/libesp32/Berry/tests/os.be | 51 -
lib/libesp32/Berry/tests/overload.be | 14 -
lib/libesp32/Berry/tests/relop.be | 40 -
lib/libesp32/Berry/tests/string.be | 215 --
lib/libesp32/Berry/tests/subobject.be | 29 -
lib/libesp32/Berry/tests/suffix.be | 28 -
lib/libesp32/Berry/tests/super_auto.be | 132 -
lib/libesp32/Berry/tests/super_leveled.be | 43 -
lib/libesp32/Berry/tests/vararg.be | 14 -
lib/libesp32/Berry/tests/virtual_methods.be | 72 -
lib/libesp32/Berry/tests/virtual_methods2.be | 39 -
.../Berry/tools/grammar/berry.bytecode | 92 -
lib/libesp32/Berry/tools/grammar/berry.ebnf | 49 -
.../Berry/tools/grammar/const_obj.ebnf | 11 -
lib/libesp32/Berry/tools/grammar/json.ebnf | 5 -
127 files changed, 27231 deletions(-)
delete mode 100644 lib/libesp32/Berry/LICENSE
delete mode 100755 lib/libesp32/Berry/Makefile
delete mode 100644 lib/libesp32/Berry/README.md
delete mode 100644 lib/libesp32/Berry/berry-logo.png
delete mode 100644 lib/libesp32/Berry/default/be_modtab.c
delete mode 100644 lib/libesp32/Berry/default/berry_conf.h
delete mode 100644 lib/libesp32/Berry/examples/anon_func.be
delete mode 100644 lib/libesp32/Berry/examples/bigloop.be
delete mode 100644 lib/libesp32/Berry/examples/bintree.be
delete mode 100644 lib/libesp32/Berry/examples/calcpi.be
delete mode 100644 lib/libesp32/Berry/examples/exception.be
delete mode 100644 lib/libesp32/Berry/examples/fib_rec.be
delete mode 100644 lib/libesp32/Berry/examples/guess_number.be
delete mode 100644 lib/libesp32/Berry/examples/json.be
delete mode 100644 lib/libesp32/Berry/examples/lambda.be
delete mode 100644 lib/libesp32/Berry/examples/listdir.be
delete mode 100644 lib/libesp32/Berry/examples/qsort.be
delete mode 100644 lib/libesp32/Berry/examples/repl.be
delete mode 100644 lib/libesp32/Berry/examples/string.be
delete mode 100644 lib/libesp32/Berry/examples/strmod.be
delete mode 100755 lib/libesp32/Berry/gen.sh
delete mode 100644 lib/libesp32/Berry/library.json
delete mode 100644 lib/libesp32/Berry/src/be_api.c
delete mode 100644 lib/libesp32/Berry/src/be_baselib.c
delete mode 100644 lib/libesp32/Berry/src/be_bytecode.c
delete mode 100644 lib/libesp32/Berry/src/be_bytecode.h
delete mode 100644 lib/libesp32/Berry/src/be_byteslib.c
delete mode 100644 lib/libesp32/Berry/src/be_class.c
delete mode 100644 lib/libesp32/Berry/src/be_class.h
delete mode 100644 lib/libesp32/Berry/src/be_code.c
delete mode 100644 lib/libesp32/Berry/src/be_code.h
delete mode 100644 lib/libesp32/Berry/src/be_constobj.h
delete mode 100644 lib/libesp32/Berry/src/be_debug.c
delete mode 100644 lib/libesp32/Berry/src/be_debug.h
delete mode 100644 lib/libesp32/Berry/src/be_debuglib.c
delete mode 100644 lib/libesp32/Berry/src/be_decoder.h
delete mode 100644 lib/libesp32/Berry/src/be_exec.c
delete mode 100644 lib/libesp32/Berry/src/be_exec.h
delete mode 100644 lib/libesp32/Berry/src/be_filelib.c
delete mode 100644 lib/libesp32/Berry/src/be_func.c
delete mode 100644 lib/libesp32/Berry/src/be_func.h
delete mode 100644 lib/libesp32/Berry/src/be_gc.c
delete mode 100644 lib/libesp32/Berry/src/be_gc.h
delete mode 100644 lib/libesp32/Berry/src/be_gclib.c
delete mode 100644 lib/libesp32/Berry/src/be_globallib.c
delete mode 100644 lib/libesp32/Berry/src/be_introspectlib.c
delete mode 100644 lib/libesp32/Berry/src/be_jsonlib.c
delete mode 100644 lib/libesp32/Berry/src/be_lexer.c
delete mode 100644 lib/libesp32/Berry/src/be_lexer.h
delete mode 100644 lib/libesp32/Berry/src/be_libs.c
delete mode 100644 lib/libesp32/Berry/src/be_libs.h
delete mode 100644 lib/libesp32/Berry/src/be_list.c
delete mode 100644 lib/libesp32/Berry/src/be_list.h
delete mode 100644 lib/libesp32/Berry/src/be_listlib.c
delete mode 100644 lib/libesp32/Berry/src/be_map.c
delete mode 100644 lib/libesp32/Berry/src/be_map.h
delete mode 100644 lib/libesp32/Berry/src/be_maplib.c
delete mode 100644 lib/libesp32/Berry/src/be_mathlib.c
delete mode 100644 lib/libesp32/Berry/src/be_mem.c
delete mode 100644 lib/libesp32/Berry/src/be_mem.h
delete mode 100644 lib/libesp32/Berry/src/be_module.c
delete mode 100644 lib/libesp32/Berry/src/be_module.h
delete mode 100644 lib/libesp32/Berry/src/be_object.c
delete mode 100644 lib/libesp32/Berry/src/be_object.h
delete mode 100644 lib/libesp32/Berry/src/be_opcodes.h
delete mode 100644 lib/libesp32/Berry/src/be_oslib.c
delete mode 100644 lib/libesp32/Berry/src/be_parser.c
delete mode 100644 lib/libesp32/Berry/src/be_parser.h
delete mode 100644 lib/libesp32/Berry/src/be_rangelib.c
delete mode 100644 lib/libesp32/Berry/src/be_repl.c
delete mode 100644 lib/libesp32/Berry/src/be_repl.h
delete mode 100644 lib/libesp32/Berry/src/be_solidifylib.c
delete mode 100644 lib/libesp32/Berry/src/be_strictlib.c
delete mode 100644 lib/libesp32/Berry/src/be_string.c
delete mode 100644 lib/libesp32/Berry/src/be_string.h
delete mode 100644 lib/libesp32/Berry/src/be_strlib.c
delete mode 100644 lib/libesp32/Berry/src/be_strlib.h
delete mode 100644 lib/libesp32/Berry/src/be_sys.h
delete mode 100644 lib/libesp32/Berry/src/be_syslib.c
delete mode 100644 lib/libesp32/Berry/src/be_timelib.c
delete mode 100644 lib/libesp32/Berry/src/be_var.c
delete mode 100644 lib/libesp32/Berry/src/be_var.h
delete mode 100644 lib/libesp32/Berry/src/be_vector.c
delete mode 100644 lib/libesp32/Berry/src/be_vector.h
delete mode 100644 lib/libesp32/Berry/src/be_vm.c
delete mode 100644 lib/libesp32/Berry/src/be_vm.h
delete mode 100644 lib/libesp32/Berry/src/berry.h
delete mode 100644 lib/libesp32/Berry/src/berry_conf.h
delete mode 100755 lib/libesp32/Berry/testall.be
delete mode 100644 lib/libesp32/Berry/tests/assignment.be
delete mode 100644 lib/libesp32/Berry/tests/bool.be
delete mode 100644 lib/libesp32/Berry/tests/bytes.be
delete mode 100644 lib/libesp32/Berry/tests/bytes_b64.be
delete mode 100644 lib/libesp32/Berry/tests/bytes_fixed.be
delete mode 100644 lib/libesp32/Berry/tests/checkspace.be
delete mode 100644 lib/libesp32/Berry/tests/class.be
delete mode 100644 lib/libesp32/Berry/tests/class_const.be
delete mode 100644 lib/libesp32/Berry/tests/closure.be
delete mode 100644 lib/libesp32/Berry/tests/compiler.be
delete mode 100644 lib/libesp32/Berry/tests/compound.be
delete mode 100644 lib/libesp32/Berry/tests/cond_expr.be
delete mode 100644 lib/libesp32/Berry/tests/debug.be
delete mode 100644 lib/libesp32/Berry/tests/exceptions.be
delete mode 100644 lib/libesp32/Berry/tests/for.be
delete mode 100644 lib/libesp32/Berry/tests/function.be
delete mode 100644 lib/libesp32/Berry/tests/global.be
delete mode 100644 lib/libesp32/Berry/tests/introspect.be
delete mode 100644 lib/libesp32/Berry/tests/json.be
delete mode 100644 lib/libesp32/Berry/tests/lexer.be
delete mode 100644 lib/libesp32/Berry/tests/lexergc.be
delete mode 100644 lib/libesp32/Berry/tests/list.be
delete mode 100644 lib/libesp32/Berry/tests/member_indirect.be
delete mode 100644 lib/libesp32/Berry/tests/os.be
delete mode 100644 lib/libesp32/Berry/tests/overload.be
delete mode 100644 lib/libesp32/Berry/tests/relop.be
delete mode 100644 lib/libesp32/Berry/tests/string.be
delete mode 100644 lib/libesp32/Berry/tests/subobject.be
delete mode 100644 lib/libesp32/Berry/tests/suffix.be
delete mode 100644 lib/libesp32/Berry/tests/super_auto.be
delete mode 100644 lib/libesp32/Berry/tests/super_leveled.be
delete mode 100644 lib/libesp32/Berry/tests/vararg.be
delete mode 100644 lib/libesp32/Berry/tests/virtual_methods.be
delete mode 100644 lib/libesp32/Berry/tests/virtual_methods2.be
delete mode 100755 lib/libesp32/Berry/tools/grammar/berry.bytecode
delete mode 100644 lib/libesp32/Berry/tools/grammar/berry.ebnf
delete mode 100755 lib/libesp32/Berry/tools/grammar/const_obj.ebnf
delete mode 100644 lib/libesp32/Berry/tools/grammar/json.ebnf
diff --git a/lib/libesp32/Berry/LICENSE b/lib/libesp32/Berry/LICENSE
deleted file mode 100644
index 609969272cbf..000000000000
--- a/lib/libesp32/Berry/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2018-2020 Guan Wenliang
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/lib/libesp32/Berry/Makefile b/lib/libesp32/Berry/Makefile
deleted file mode 100755
index 2d33069fbbef..000000000000
--- a/lib/libesp32/Berry/Makefile
+++ /dev/null
@@ -1,93 +0,0 @@
-CFLAGS = -Wall -Wextra -std=c99 -O2 -Wno-zero-length-array -Wno-empty-translation-unit -DUSE_BERRY_INT64
-DEBUG_FLAGS = -O0 -g -DBE_DEBUG
-TEST_FLAGS = $(DEBUG_FLAGS) --coverage -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined
-LIBS = -lm
-TARGET = berry
-CC = gcc
-MKDIR = mkdir
-LFLAGS =
-
-INCPATH = src default ../re1.5 ../berry_mapping/src ../berry_int64/src generate
-SRCPATH = src default ../re1.5 ../berry_mapping/src ../berry_int64/src
-GENERATE = generate
-CONFIG = default/berry_conf.h
-COC = tools/coc/coc
-CONST_TAB = $(GENERATE)/be_const_strtab.h
-
-ifeq ($(OS), Windows_NT) # Windows
- CFLAGS += -Wno-format # for "%I64d" warning
- LFLAGS += -Wl,--out-implib,berry.lib # export symbols lib for dll linked
- TARGET := $(TARGET).exe
- PYTHON ?= python # only for windows and need python3
- COC := $(PYTHON) $(COC)
-else
- CFLAGS += -DUSE_READLINE_LIB
- LIBS += -lreadline -ldl
- OS := $(shell uname)
- ifeq ($(OS), Linux)
- LFLAGS += -Wl,--export-dynamic
- endif
-endif
-
-ifneq ($(V), 1)
- Q=@
- MSG=@echo
-else
- MSG=@true
-endif
-
-SRCS = $(foreach dir, $(SRCPATH), $(wildcard $(dir)/*.c))
-OBJS = $(patsubst %.c, %.o, $(SRCS))
-DEPS = $(patsubst %.c, %.d, $(SRCS))
-INCFLAGS = $(foreach dir, $(INCPATH), -I"$(dir)")
-
-.PHONY : clean
-
-all: $(TARGET)
-
-debug: CFLAGS += $(DEBUG_FLAGS)
-debug: all
-
-test: CFLAGS += $(TEST_FLAGS)
-test: LFLAGS += $(TEST_FLAGS)
-test: all
- $(MSG) [Run Testcases...]
- $(Q) ./testall.be
- $(Q) $(RM) */*.gcno */*.gcda
-
-$(TARGET): $(OBJS)
- $(MSG) [Linking...]
- $(Q) $(CC) $(OBJS) $(LFLAGS) $(LIBS) -o $@
- $(MSG) done
-
-$(OBJS): %.o: %.c
- $(MSG) [Compile] $<
- $(Q) $(CC) -MM $(CFLAGS) $(INCFLAGS) -MT"$*.d" -MT"$(<:.c=.o)" $< > $*.d
- $(Q) $(CC) $(CFLAGS) $(INCFLAGS) -c $< -o $@
-
-sinclude $(DEPS)
-
-$(OBJS): $(CONST_TAB)
-
-$(CONST_TAB): $(GENERATE) $(SRCS) $(CONFIG)
- $(MSG) [Prebuild] generate resources
- $(Q) $(COC) -o $(GENERATE) $(SRCPATH) -c $(CONFIG)
-
-$(GENERATE):
- $(Q) $(MKDIR) $(GENERATE)
-
-install:
- cp $(TARGET) /usr/local/bin
-
-uninstall:
- $(RM) /usr/local/bin/$(TARGET)
-
-prebuild: $(GENERATE)
- $(MSG) [Prebuild] generate resources
- $(Q) $(COC) -o $(GENERATE) $(SRCPATH) -c $(CONFIG)
- $(MSG) done
-
-clean:
- $(MSG) [Clean...]
- $(Q) $(RM) $(OBJS) $(DEPS) $(GENERATE)/* berry.lib
- $(MSG) done
diff --git a/lib/libesp32/Berry/README.md b/lib/libesp32/Berry/README.md
deleted file mode 100644
index aef02a192c73..000000000000
--- a/lib/libesp32/Berry/README.md
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
- The Berry Script Language.
-