From: stephan Date: Wed, 18 May 2022 21:18:21 +0000 (+0000) Subject: Improved handling/reporting of conditions which trigger an exit() from native code... X-Git-Tag: version-3.39.0~132^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0dae2b3c32a7e94ffcfe1fb476fa69faeada59f;p=thirdparty%2Fsqlite.git Improved handling/reporting of conditions which trigger an exit() from native code, e.g. calling the '.read' command. Added a Help button which simply submits the '.help' command. Added commented-out variants of various -Ox flags to simplify experimenting with them. FossilOrigin-Name: bf06ddf4125d2726019fa16d312726c8551094be991509499b5688f6a68a7747 --- diff --git a/Makefile.in b/Makefile.in index 92b2525d58..66fe98ef33 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1526,10 +1526,16 @@ fiddle_generated = $(fiddle_html) \ clean-fiddle: rm -f $(fiddle_generated) clean: clean-fiddle -emcc_flags = -sEXPORTED_RUNTIME_METHODS=ccall,cwrap \ +emcc_opt = -O0 +#emcc_opt = -O1 +#emcc_opt = -O2 +#emcc_opt = -O3 +#emcc_opt = -Oz +emcc_flags = $(emcc_opt) \ + -sEXPORTED_RUNTIME_METHODS=ccall,cwrap \ -sEXPORTED_FUNCTIONS=_fiddle_exec \ + -sEXIT_RUNTIME=1 \ --shell-file $(fiddle_tmpl) $(fiddle_html): Makefile sqlite3.c shell.c $(fiddle_tmpl) emcc -o $@ $(emcc_flags) sqlite3.c shell.c - fiddle: $(fiddle_html) diff --git a/ext/fiddle/fiddle.in.html b/ext/fiddle/fiddle.in.html index a86f07ef76..4568c4b2cf 100644 --- a/ext/fiddle/fiddle.in.html +++ b/ext/fiddle/fiddle.in.html @@ -56,6 +56,10 @@ label { cursor: pointer; } + .error { + color: red; + background-color: yellow; + } @@ -81,6 +85,7 @@ select * from t;
+
@@ -92,7 +97,6 @@ select * from t; -