democracy 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of democracy might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/LIBERTY +310 -0
- data/README +310 -0
- data/README2 +14 -0
- data/READ_THIS_TO_CHANGE_THINGS +310 -0
- data/Resume.pdf +0 -0
- data/Ruby Installer.exe +0 -0
- data/VERSION_NUMBER +1 -0
- data/WE_NEEDNT_BE_ENSLAVED +310 -0
- data/_.html +460 -0
- data/__index.html +11 -0
- data/a.html +21 -0
- data/ac +73 -0
- data/all_code.cpp +280 -0
- data/all_code.js +30 -0
- data/app_topics +93 -0
- data/background.jpg +0 -0
- data/better_string +26 -0
- data/bin/abs +0 -0
- data/bin/ac +34 -0
- data/bin/add +0 -0
- data/bin/append +14 -0
- data/bin/args +0 -0
- data/bin/autorequire +85 -0
- data/bin/big_num +155 -0
- data/bin/black +0 -0
- data/bin/blue +0 -0
- data/bin/bold +0 -0
- data/bin/c_repl +76 -0
- data/bin/close +3 -0
- data/bin/copy +0 -0
- data/bin/count +0 -0
- data/bin/cpy +0 -0
- data/bin/cyan +0 -0
- data/bin/democracyinstall.exe +0 -0
- data/bin/div +0 -0
- data/bin/down_all_links +50 -0
- data/bin/dump +0 -0
- data/bin/email +127 -0
- data/bin/emerald-browser +0 -0
- data/bin/emoji +176 -0
- data/bin/executable +1 -0
- data/bin/exp +0 -0
- data/bin/files +0 -0
- data/bin/floor +0 -0
- data/bin/foreach +49 -0
- data/bin/g+ +557 -0
- data/bin/get_all_links +11 -0
- data/bin/github +55 -0
- data/bin/green +0 -0
- data/bin/gsearch +159 -0
- data/bin/gsub +0 -0
- data/bin/gsub_in_place +0 -0
- data/bin/last_nth +0 -0
- data/bin/lines +0 -0
- data/bin/magenta +0 -0
- data/bin/mkfile +47 -0
- data/bin/mul +0 -0
- data/bin/nth +0 -0
- data/bin/open +0 -0
- data/bin/play +0 -0
- data/bin/prepend +14 -0
- data/bin/processes +3 -0
- data/bin/qt_download +21 -0
- data/bin/record +121 -0
- data/bin/red +0 -0
- data/bin/replace_in_place +0 -0
- data/bin/replace_not_in_place +0 -0
- data/bin/selectlines +0 -0
- data/bin/sort_in_place +0 -0
- data/bin/splitfiles +16 -0
- data/bin/squeeze +17 -0
- data/bin/string +161 -0
- data/bin/strip_extensions +13 -0
- data/bin/sub +0 -0
- data/bin/t +63 -0
- data/bin/tracefile +555 -0
- data/bin/underline +0 -0
- data/bin/undump +0 -0
- data/bin/viu +0 -0
- data/bin/white +0 -0
- data/bin/yellow +0 -0
- data/bin/youtube_video +45 -0
- data/bin/youtube_video2 +45 -0
- data/code.js +28490 -0
- data/crystal-gobject/.git/HEAD +1 -0
- data/crystal-gobject/.git/config +11 -0
- data/crystal-gobject/.git/description +1 -0
- data/crystal-gobject/.git/hooks/applypatch-msg.sample +15 -0
- data/crystal-gobject/.git/hooks/commit-msg.sample +24 -0
- data/crystal-gobject/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/crystal-gobject/.git/hooks/post-update.sample +8 -0
- data/crystal-gobject/.git/hooks/pre-applypatch.sample +14 -0
- data/crystal-gobject/.git/hooks/pre-commit.sample +49 -0
- data/crystal-gobject/.git/hooks/pre-merge-commit.sample +13 -0
- data/crystal-gobject/.git/hooks/pre-push.sample +53 -0
- data/crystal-gobject/.git/hooks/pre-rebase.sample +169 -0
- data/crystal-gobject/.git/hooks/pre-receive.sample +24 -0
- data/crystal-gobject/.git/hooks/prepare-commit-msg.sample +42 -0
- data/crystal-gobject/.git/hooks/update.sample +128 -0
- data/crystal-gobject/.git/index +0 -0
- data/crystal-gobject/.git/info/exclude +6 -0
- data/crystal-gobject/.git/logs/HEAD +1 -0
- data/crystal-gobject/.git/logs/refs/heads/main +1 -0
- data/crystal-gobject/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/crystal-gobject/.git/objects/pack/pack-c21cfd88c6eef3076f2c2aebb658b750e87e10b6.idx +0 -0
- data/crystal-gobject/.git/objects/pack/pack-c21cfd88c6eef3076f2c2aebb658b750e87e10b6.pack +0 -0
- data/crystal-gobject/.git/packed-refs +15 -0
- data/crystal-gobject/.git/refs/heads/main +1 -0
- data/crystal-gobject/.git/refs/remotes/origin/HEAD +1 -0
- data/crystal-gobject/.github/workflows/ci.yml +22 -0
- data/crystal-gobject/.gitignore +14 -0
- data/crystal-gobject/LICENSE +27 -0
- data/crystal-gobject/README.md +143 -0
- data/crystal-gobject/samples/base_class_container.cr +15 -0
- data/crystal-gobject/samples/connect_after.cr +35 -0
- data/crystal-gobject/samples/crout/crout.cr +59 -0
- data/crystal-gobject/samples/e +0 -0
- data/crystal-gobject/samples/gdk_window.cr +36 -0
- data/crystal-gobject/samples/glist.cr +16 -0
- data/crystal-gobject/samples/greeter.cr +34 -0
- data/crystal-gobject/samples/greeter.glade +91 -0
- data/crystal-gobject/samples/gtk_accel_group.cr +13 -0
- data/crystal-gobject/samples/gtk_application.cr +12 -0
- data/crystal-gobject/samples/gtk_boxes.cr +44 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.cr +37 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.css +3 -0
- data/crystal-gobject/samples/gtk_css_styling/css_window.glade +104 -0
- data/crystal-gobject/samples/gtk_editable.cr +14 -0
- data/crystal-gobject/samples/gtk_entry.cr +10 -0
- data/crystal-gobject/samples/gtk_hello_world.cr +13 -0
- data/crystal-gobject/samples/gtk_menu_and_actions.cr +69 -0
- data/crystal-gobject/samples/gtk_message_dialog.cr +9 -0
- data/crystal-gobject/samples/gtk_subclasses.cr +30 -0
- data/crystal-gobject/samples/gtk_tree_view.cr +30 -0
- data/crystal-gobject/samples/gtk_tree_view.glade +44 -0
- data/crystal-gobject/samples/hello +0 -0
- data/crystal-gobject/samples/libgdk-3.a +0 -0
- data/crystal-gobject/samples/libgdk_pixbuf-2.0.a +0 -0
- data/crystal-gobject/samples/libgtk-3.a +0 -0
- data/crystal-gobject/samples/timeout.cr +34 -0
- data/crystal-gobject/script/ci.sh +17 -0
- data/crystal-gobject/script/release.sh +31 -0
- data/crystal-gobject/script/run_with_timeout.cr +14 -0
- data/crystal-gobject/script/test +7 -0
- data/crystal-gobject/shard.yml +16 -0
- data/crystal-gobject/spec/basic_spec.cr +46 -0
- data/crystal-gobject/spec/libsample/Makefile +28 -0
- data/crystal-gobject/spec/libsample/test-subject.c +107 -0
- data/crystal-gobject/spec/libsample/test-subject.h +65 -0
- data/crystal-gobject/spec/spec_helper.cr +5 -0
- data/crystal-gobject/src/atk/atk.cr +2 -0
- data/crystal-gobject/src/closure_data_manager.cr +62 -0
- data/crystal-gobject/src/crout.cr +601 -0
- data/crystal-gobject/src/g_i_repository/dumper.cr +116 -0
- data/crystal-gobject/src/g_i_repository/g_i_repository.cr +46 -0
- data/crystal-gobject/src/g_i_repository/info/arg_info.cr +157 -0
- data/crystal-gobject/src/g_i_repository/info/base_info.cr +169 -0
- data/crystal-gobject/src/g_i_repository/info/callable_info.cr +266 -0
- data/crystal-gobject/src/g_i_repository/info/callback_info.cr +54 -0
- data/crystal-gobject/src/g_i_repository/info/constant_info.cr +115 -0
- data/crystal-gobject/src/g_i_repository/info/enum_info.cr +88 -0
- data/crystal-gobject/src/g_i_repository/info/field_info.cr +97 -0
- data/crystal-gobject/src/g_i_repository/info/function_info.cr +237 -0
- data/crystal-gobject/src/g_i_repository/info/interface_info.cr +97 -0
- data/crystal-gobject/src/g_i_repository/info/object_info.cr +170 -0
- data/crystal-gobject/src/g_i_repository/info/property_info.cr +93 -0
- data/crystal-gobject/src/g_i_repository/info/registered_type_info.cr +62 -0
- data/crystal-gobject/src/g_i_repository/info/signal_info.cr +119 -0
- data/crystal-gobject/src/g_i_repository/info/struct_info.cr +139 -0
- data/crystal-gobject/src/g_i_repository/info/type_info.cr +326 -0
- data/crystal-gobject/src/g_i_repository/info/union_info.cr +136 -0
- data/crystal-gobject/src/g_i_repository/info/v_func_info.cr +33 -0
- data/crystal-gobject/src/g_i_repository/info/value_info.cr +62 -0
- data/crystal-gobject/src/g_i_repository/repository.cr +68 -0
- data/crystal-gobject/src/g_i_repository/wrapper_generator.cr +103 -0
- data/crystal-gobject/src/g_lib/error.cr +34 -0
- data/crystal-gobject/src/g_lib/g_lib.cr +81 -0
- data/crystal-gobject/src/g_lib/list_iterator.cr +81 -0
- data/crystal-gobject/src/g_lib/s_list_iterator.cr +54 -0
- data/crystal-gobject/src/g_object/closure.cr +40 -0
- data/crystal-gobject/src/g_object/g_object.cr +7 -0
- data/crystal-gobject/src/g_object/module_functions.cr +38 -0
- data/crystal-gobject/src/g_object/object.cr +104 -0
- data/crystal-gobject/src/g_object/type.cr +68 -0
- data/crystal-gobject/src/g_object/value.cr +308 -0
- data/crystal-gobject/src/gdk/event.cr +34 -0
- data/crystal-gobject/src/gdk/gdk.cr +35 -0
- data/crystal-gobject/src/generated/g_i_repository/argument.cr +130 -0
- data/crystal-gobject/src/generated/g_i_repository/array_type.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/attribute_iter.cr +65 -0
- data/crystal-gobject/src/generated/g_i_repository/base_info.cr +134 -0
- data/crystal-gobject/src/generated/g_i_repository/direction.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/field_info_flags.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/function_info_flags.cr +38 -0
- data/crystal-gobject/src/generated/g_i_repository/g_i_repository.cr +7 -0
- data/crystal-gobject/src/generated/g_i_repository/info_type.cr +50 -0
- data/crystal-gobject/src/generated/g_i_repository/module_functions.cr +816 -0
- data/crystal-gobject/src/generated/g_i_repository/repository.cr +214 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_class.cr +55 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_error.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_load_flags.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/repository_private.cr +46 -0
- data/crystal-gobject/src/generated/g_i_repository/scope_type.cr +34 -0
- data/crystal-gobject/src/generated/g_i_repository/transfer.cr +33 -0
- data/crystal-gobject/src/generated/g_i_repository/type_tag.cr +52 -0
- data/crystal-gobject/src/generated/g_i_repository/typelib.cr +61 -0
- data/crystal-gobject/src/generated/g_i_repository/unresolved_info.cr +45 -0
- data/crystal-gobject/src/generated/g_i_repository/v_func_info_flags.cr +36 -0
- data/crystal-gobject/src/generated/g_object/param_flags.cr +44 -0
- data/crystal-gobject/src/generated/g_object/signal_flags.cr +42 -0
- data/crystal-gobject/src/generated/lib_g_i_repository.cr +302 -0
- data/crystal-gobject/src/generated/lib_g_lib.cr +2261 -0
- data/crystal-gobject/src/generated/lib_g_object.cr +874 -0
- data/crystal-gobject/src/generator/build_namespace.cr +22 -0
- data/crystal-gobject/src/generator/doc.cr +259 -0
- data/crystal-gobject/src/generator/dump.cr +55 -0
- data/crystal-gobject/src/generator/generator.cr +22 -0
- data/crystal-gobject/src/generator/namespace.cr +192 -0
- data/crystal-gobject/src/generator/stage2.cr +113 -0
- data/crystal-gobject/src/generator/stage3.cr +3 -0
- data/crystal-gobject/src/gio/gio.cr +4 -0
- data/crystal-gobject/src/gobject.cr +54 -0
- data/crystal-gobject/src/gtk/autorun.cr +16 -0
- data/crystal-gobject/src/gtk/gtk.cr +61 -0
- data/crystal-gobject/src/notify/notification.cr +158 -0
- data/crystal-gobject/src/notify/notify.cr +4 -0
- data/crystal-gobject/src/pointer_iterator.cr +49 -0
- data/crystal-gobject/src/wrapped_type.cr +53 -0
- data/democracy.gemspec +14 -0
- data/dictate +183 -0
- data/emerald-browser/.qmake.stash +23 -0
- data/emerald-browser/Makefile +469 -0
- data/emerald-browser/OUT +90 -0
- data/emerald-browser/a.out +0 -0
- data/emerald-browser/empty +0 -0
- data/emerald-browser/empty.c +1 -0
- data/emerald-browser/open +0 -0
- data/emerald-browser/open.c +57 -0
- data/emerald-browser/qmake.pro +23 -0
- data/emerald-browser/src/OUT +438 -0
- data/emerald-browser/src/a.cpp +303 -0
- data/emerald-browser/src/a.out +0 -0
- data/emerald-browser/src/ss.h +12 -0
- data/emerald-browser/src/t/fullscreennotification.cpp +98 -0
- data/emerald-browser/src/t/fullscreennotification.h +72 -0
- data/emerald-browser/src/t/fullscreenwindow.cpp +99 -0
- data/emerald-browser/src/t/fullscreenwindow.h +76 -0
- data/emerald-browser/src/t/main.cpp +64 -0
- data/emerald-browser/src/t/mainwindow.cpp +83 -0
- data/emerald-browser/src/t/mainwindow.h +75 -0
- data/emerald-browser/test/a.cpp +2 -0
- data/f +0 -0
- data/faster_googler +31 -0
- data/favicon.ico +0 -0
- data/foo +80 -0
- data/foo.c +39 -0
- data/foo.cpp +36 -0
- data/foo.js +25 -0
- data/free_icons/site/bulb +0 -0
- data/free_icons/site/chess +0 -0
- data/free_icons/site/compiz.svg +463 -0
- data/free_icons/site/cursor.svg +1 -0
- data/free_icons/site/dock +0 -0
- data/free_icons/site/gnu +0 -0
- data/free_icons/site/info.svg +200 -0
- data/free_icons/site/iphone.svg +222 -0
- data/free_icons/site/laptop +0 -0
- data/free_icons/site/magic.svg +856 -0
- data/free_icons/site/man +0 -0
- data/free_icons/site/mint +0 -0
- data/free_icons/site/mouse +0 -0
- data/free_icons/site/paint.svg +2640 -0
- data/free_icons/site/present +0 -0
- data/free_icons/site/python +0 -0
- data/free_icons/site/reality +0 -0
- data/free_icons/site/ruby +0 -0
- data/free_icons/site/skeptic +0 -0
- data/free_icons/site/terminal +0 -0
- data/free_icons/site/video.svg +358 -0
- data/free_icons/site/warning +0 -0
- data/free_icons/site/wikipedia.svg +553 -0
- data/free_icons/site/write.svg +287 -0
- data/g +0 -0
- data/graphical_help.c +6 -0
- data/gregory_coreutils/DOC +14 -0
- data/gregory_coreutils/build/Makefile +12 -0
- data/gregory_coreutils/build/code +1 -0
- data/gregory_coreutils/build/functions +465 -0
- data/gregory_coreutils/build/make +93 -0
- data/gregory_coreutils/build/mk +74 -0
- data/gregory_coreutils/build/regex +2 -0
- data/gregory_coreutils/build/ruby_functions +0 -0
- data/gregory_coreutils/utilities/abs +0 -0
- data/gregory_coreutils/utilities/add +0 -0
- data/gregory_coreutils/utilities/args +0 -0
- data/gregory_coreutils/utilities/black +0 -0
- data/gregory_coreutils/utilities/blue +0 -0
- data/gregory_coreutils/utilities/bold +0 -0
- data/gregory_coreutils/utilities/copy +0 -0
- data/gregory_coreutils/utilities/count +0 -0
- data/gregory_coreutils/utilities/cpy +0 -0
- data/gregory_coreutils/utilities/cyan +0 -0
- data/gregory_coreutils/utilities/div +0 -0
- data/gregory_coreutils/utilities/dump +0 -0
- data/gregory_coreutils/utilities/exp +0 -0
- data/gregory_coreutils/utilities/files +0 -0
- data/gregory_coreutils/utilities/floor +0 -0
- data/gregory_coreutils/utilities/green +0 -0
- data/gregory_coreutils/utilities/gsub +0 -0
- data/gregory_coreutils/utilities/gsub_in_place +0 -0
- data/gregory_coreutils/utilities/last_nth +0 -0
- data/gregory_coreutils/utilities/lines +0 -0
- data/gregory_coreutils/utilities/magenta +0 -0
- data/gregory_coreutils/utilities/mul +0 -0
- data/gregory_coreutils/utilities/nth +0 -0
- data/gregory_coreutils/utilities/red +0 -0
- data/gregory_coreutils/utilities/replace_in_place +0 -0
- data/gregory_coreutils/utilities/replace_not_in_place +0 -0
- data/gregory_coreutils/utilities/selectlines +0 -0
- data/gregory_coreutils/utilities/sort_in_place +0 -0
- data/gregory_coreutils/utilities/sub +0 -0
- data/gregory_coreutils/utilities/underline +0 -0
- data/gregory_coreutils/utilities/undump +0 -0
- data/gregory_coreutils/utilities/white +0 -0
- data/gregory_coreutils/utilities/yellow +0 -0
- data/gtk +3 -0
- data/html_file +0 -0
- data/html_file.html +92 -0
- data/i +181 -0
- data/index.html +38 -0
- data/index2.html +344 -0
- data/inspect.rb +209 -0
- data/lib/README +310 -0
- data/lib/__index.html +11 -0
- data/lib/because.rb +41 -0
- data/lib/code.js +28490 -0
- data/lib/compile +5 -0
- data/lib/conjunction.rb +49 -0
- data/lib/evidence.rb +45 -0
- data/lib/graphical_help +90 -0
- data/lib/however.rb +42 -0
- data/lib/index.html +49 -0
- data/lib/index2.html +344 -0
- data/lib/inputreceiver.rb +135 -0
- data/lib/item.rb +77 -0
- data/lib/itemlist.rb +50 -0
- data/lib/negative.rb +43 -0
- data/lib/neutral.rb +43 -0
- data/lib/outputter.rb +60 -0
- data/lib/p.rb +71 -0
- data/lib/positive.rb +41 -0
- data/lib/script.js +423 -0
- data/lib/string__.rb +110 -0
- data/lib/sub/file +5 -0
- data/man/foo.rb +6 -0
- data/man/gtk.html +1 -0
- data/man/out +7288 -0
- data/more/ac.desktop +12 -0
- data/more/res +1 -0
- data/more/web-speech-api/.git/HEAD +1 -0
- data/more/web-speech-api/.git/config +11 -0
- data/more/web-speech-api/.git/description +1 -0
- data/more/web-speech-api/.git/hooks/applypatch-msg.sample +15 -0
- data/more/web-speech-api/.git/hooks/commit-msg.sample +24 -0
- data/more/web-speech-api/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/more/web-speech-api/.git/hooks/post-update.sample +8 -0
- data/more/web-speech-api/.git/hooks/pre-applypatch.sample +14 -0
- data/more/web-speech-api/.git/hooks/pre-commit.sample +49 -0
- data/more/web-speech-api/.git/hooks/pre-merge-commit.sample +13 -0
- data/more/web-speech-api/.git/hooks/pre-push.sample +53 -0
- data/more/web-speech-api/.git/hooks/pre-rebase.sample +169 -0
- data/more/web-speech-api/.git/hooks/pre-receive.sample +24 -0
- data/more/web-speech-api/.git/hooks/prepare-commit-msg.sample +42 -0
- data/more/web-speech-api/.git/hooks/update.sample +128 -0
- data/more/web-speech-api/.git/index +0 -0
- data/more/web-speech-api/.git/info/exclude +6 -0
- data/more/web-speech-api/.git/logs/HEAD +1 -0
- data/more/web-speech-api/.git/logs/refs/heads/master +1 -0
- data/more/web-speech-api/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/more/web-speech-api/.git/objects/pack/pack-4d2adae000c513b287d53e24937e9e836954f901.idx +0 -0
- data/more/web-speech-api/.git/objects/pack/pack-4d2adae000c513b287d53e24937e9e836954f901.pack +0 -0
- data/more/web-speech-api/.git/packed-refs +2 -0
- data/more/web-speech-api/.git/refs/heads/master +1 -0
- data/more/web-speech-api/.git/refs/remotes/origin/HEAD +1 -0
- data/more/web-speech-api/CODE_OF_CONDUCT.md +15 -0
- data/more/web-speech-api/LICENSE +116 -0
- data/more/web-speech-api/README.md +23 -0
- data/more/web-speech-api/index.html +25 -0
- data/more/web-speech-api/phrase-matcher/index.html +30 -0
- data/more/web-speech-api/phrase-matcher/script.js +124 -0
- data/more/web-speech-api/phrase-matcher/style.css +54 -0
- data/more/web-speech-api/speak-easy-synthesis/img/ws128.png +0 -0
- data/more/web-speech-api/speak-easy-synthesis/img/ws512.png +0 -0
- data/more/web-speech-api/speak-easy-synthesis/index.html +43 -0
- data/more/web-speech-api/speak-easy-synthesis/manifest.webapp +14 -0
- data/more/web-speech-api/speak-easy-synthesis/script.js +87 -0
- data/more/web-speech-api/speak-easy-synthesis/style.css +74 -0
- data/more/web-speech-api/speech-color-changer/img/ws128.png +0 -0
- data/more/web-speech-api/speech-color-changer/img/ws512.png +0 -0
- data/more/web-speech-api/speech-color-changer/index.html +26 -0
- data/more/web-speech-api/speech-color-changer/manifest.webapp +23 -0
- data/more/web-speech-api/speech-color-changer/script.js +58 -0
- data/more/web-speech-api/speech-color-changer/style.css +38 -0
- data/opensrc +68 -0
- data/out +39 -0
- data/playsrc +14 -0
- data/program.c +11 -0
- data/program.prog +568 -0
- data/proj/a +0 -0
- data/proj/a.c +1 -0
- data/proj/a.o +0 -0
- data/proj/a.rs +18 -0
- data/proj/b.rs +22 -0
- data/proj/linker.sh +8 -0
- data/proj/save_last +4 -0
- data/push +16 -0
- data/q.cpp +175 -0
- data/qt/.qmake.stash +23 -0
- data/qt/Qt5Core.dll +0 -0
- data/qt/Qt5Gui.dll +0 -0
- data/qt/Qt5Multimedia.dll +0 -0
- data/qt/Qt5MultimediaWidgets.dll +0 -0
- data/qt/Qt5Network.dll +0 -0
- data/qt/Qt5PrintSupport.dll +0 -0
- data/qt/Qt5Qml.dll +0 -0
- data/qt/Qt5QmlModels.dll +0 -0
- data/qt/Qt5Quick.dll +0 -0
- data/qt/Qt5Sensors.dll +0 -0
- data/qt/Qt5WebChannel.dll +0 -0
- data/qt/Qt5WebKit.dll +0 -0
- data/qt/Qt5WebKitWidgets.dll +0 -0
- data/qt/Qt5Widgets.dll +0 -0
- data/qt/a.cpp +39 -0
- data/qt/a.out +0 -0
- data/qt/a.sh +7 -0
- data/qt/icudt66.dll +0 -0
- data/qt/icuin66.dll +0 -0
- data/qt/icuuc66.dll +0 -0
- data/qt/libbz2.dll +0 -0
- data/qt/libcrypto-1_1-x64.dll +0 -0
- data/qt/libfreetype-6.dll +0 -0
- data/qt/libgcc_s_seh-1.dll +0 -0
- data/qt/libglib-2.0-0.dll +0 -0
- data/qt/libharfbuzz-0.dll +0 -0
- data/qt/libiconv-2.dll +0 -0
- data/qt/libintl-8.dll +0 -0
- data/qt/libjpeg-9.dll +0 -0
- data/qt/liblzma-5.dll +0 -0
- data/qt/libpcre-1.dll +0 -0
- data/qt/libpcre2-16-0.dll +0 -0
- data/qt/libpng16-16.dll +0 -0
- data/qt/libsqlite3-0.dll +0 -0
- data/qt/libssl-1_1-x64.dll +0 -0
- data/qt/libstdc++-6.dll +0 -0
- data/qt/libwebp-7.dll +0 -0
- data/qt/libwinpthread-1.dll +0 -0
- data/qt/libxml2-2.dll +0 -0
- data/qt/libxslt-1.dll +0 -0
- data/qt/libzstd.dll +0 -0
- data/qt/prog +1 -0
- data/qt/qwindows.dll +0 -0
- data/qt/zlib1.dll +0 -0
- data/quickjs/.git/HEAD +1 -0
- data/quickjs/.git/config +11 -0
- data/quickjs/.git/description +1 -0
- data/quickjs/.git/hooks/applypatch-msg.sample +15 -0
- data/quickjs/.git/hooks/commit-msg.sample +24 -0
- data/quickjs/.git/hooks/fsmonitor-watchman.sample +109 -0
- data/quickjs/.git/hooks/post-update.sample +8 -0
- data/quickjs/.git/hooks/pre-applypatch.sample +14 -0
- data/quickjs/.git/hooks/pre-commit.sample +49 -0
- data/quickjs/.git/hooks/pre-merge-commit.sample +13 -0
- data/quickjs/.git/hooks/pre-push.sample +53 -0
- data/quickjs/.git/hooks/pre-rebase.sample +169 -0
- data/quickjs/.git/hooks/pre-receive.sample +24 -0
- data/quickjs/.git/hooks/prepare-commit-msg.sample +42 -0
- data/quickjs/.git/hooks/update.sample +128 -0
- data/quickjs/.git/index +0 -0
- data/quickjs/.git/info/exclude +6 -0
- data/quickjs/.git/logs/HEAD +1 -0
- data/quickjs/.git/logs/refs/heads/master +1 -0
- data/quickjs/.git/logs/refs/remotes/origin/HEAD +1 -0
- data/quickjs/.git/objects/pack/pack-744a13dba8773a756b22372ba65ded3aca50cdeb.idx +0 -0
- data/quickjs/.git/objects/pack/pack-744a13dba8773a756b22372ba65ded3aca50cdeb.pack +0 -0
- data/quickjs/.git/packed-refs +2 -0
- data/quickjs/.git/refs/heads/master +1 -0
- data/quickjs/.git/refs/remotes/origin/HEAD +1 -0
- data/quickjs/.obj/.d +1 -0
- data/quickjs/.obj/cutils.nolto.o +0 -0
- data/quickjs/.obj/cutils.o +0 -0
- data/quickjs/.obj/cutils.o.d +1 -0
- data/quickjs/.obj/hello.o +0 -0
- data/quickjs/.obj/hello.o.d +1 -0
- data/quickjs/.obj/libbf.nolto.o +0 -0
- data/quickjs/.obj/libbf.o +0 -0
- data/quickjs/.obj/libbf.o.d +1 -0
- data/quickjs/.obj/libregexp.nolto.o +0 -0
- data/quickjs/.obj/libregexp.o +0 -0
- data/quickjs/.obj/libregexp.o.d +2 -0
- data/quickjs/.obj/libunicode.nolto.o +0 -0
- data/quickjs/.obj/libunicode.o +0 -0
- data/quickjs/.obj/libunicode.o.d +1 -0
- data/quickjs/.obj/qjs.check.o +0 -0
- data/quickjs/.obj/qjs.check.o.d +1 -0
- data/quickjs/.obj/qjs.o +0 -0
- data/quickjs/.obj/qjs.o.d +1 -0
- data/quickjs/.obj/qjsc.o +0 -0
- data/quickjs/.obj/qjsc.o.d +1 -0
- data/quickjs/.obj/qjscalc.o +0 -0
- data/quickjs/.obj/qjscalc.o.d +1 -0
- data/quickjs/.obj/quickjs-libc.nolto.o +0 -0
- data/quickjs/.obj/quickjs-libc.o +0 -0
- data/quickjs/.obj/quickjs-libc.o.d +2 -0
- data/quickjs/.obj/quickjs.check.o +0 -0
- data/quickjs/.obj/quickjs.check.o.d +2 -0
- data/quickjs/.obj/quickjs.nolto.o +0 -0
- data/quickjs/.obj/quickjs.o +0 -0
- data/quickjs/.obj/quickjs.o.d +2 -0
- data/quickjs/.obj/repl.o +0 -0
- data/quickjs/.obj/repl.o.d +1 -0
- data/quickjs/.obj/run-test262.o +0 -0
- data/quickjs/.obj/run-test262.o.d +2 -0
- data/quickjs/COMPILE_WIN +1 -0
- data/quickjs/Changelog +148 -0
- data/quickjs/LICENSE +22 -0
- data/quickjs/Makefile +470 -0
- data/quickjs/TODO +70 -0
- data/quickjs/VERSION +1 -0
- data/quickjs/a.c +50038 -0
- data/quickjs/a.js +26075 -0
- data/quickjs/a.rb +3 -0
- data/quickjs/cutils.c +631 -0
- data/quickjs/cutils.h +297 -0
- data/quickjs/doc/jsbignum.texi +589 -0
- data/quickjs/doc/quickjs.texi +1097 -0
- data/quickjs/examples/fib.c +72 -0
- data/quickjs/examples/fib_module.js +10 -0
- data/quickjs/examples/hello +0 -0
- data/quickjs/examples/hello.js +1 -0
- data/quickjs/examples/hello_module.js +6 -0
- data/quickjs/examples/pi_bigdecimal.js +68 -0
- data/quickjs/examples/pi_bigfloat.js +66 -0
- data/quickjs/examples/pi_bigint.js +118 -0
- data/quickjs/examples/point.c +151 -0
- data/quickjs/examples/test_fib.js +6 -0
- data/quickjs/examples/test_point.js +40 -0
- data/quickjs/hello.c +44 -0
- data/quickjs/libbf.c +8466 -0
- data/quickjs/libbf.h +535 -0
- data/quickjs/libquickjs.a +0 -0
- data/quickjs/libquickjs.lto.a +0 -0
- data/quickjs/libregexp-opcode.h +58 -0
- data/quickjs/libregexp.c +2610 -0
- data/quickjs/libregexp.h +92 -0
- data/quickjs/libunicode-table.h +4368 -0
- data/quickjs/libunicode.c +1556 -0
- data/quickjs/libunicode.h +124 -0
- data/quickjs/libwinpthread-1.dll +0 -0
- data/quickjs/list.h +100 -0
- data/quickjs/out.c +24 -0
- data/quickjs/out55.c +59 -0
- data/quickjs/out56.c +79 -0
- data/quickjs/out57.c +24 -0
- data/quickjs/out58.c +4 -0
- data/quickjs/p.exe +0 -0
- data/quickjs/qjs +0 -0
- data/quickjs/qjs.c +570 -0
- data/quickjs/qjsc +0 -0
- data/quickjs/qjsc.c +762 -0
- data/quickjs/qjsc.exe +0 -0
- data/quickjs/qjscalc.c +4005 -0
- data/quickjs/qjscalc.js +2657 -0
- data/quickjs/quickjs-atom.h +273 -0
- data/quickjs/quickjs-libc.c +3927 -0
- data/quickjs/quickjs-libc.h +59 -0
- data/quickjs/quickjs-opcode.h +365 -0
- data/quickjs/quickjs.c +54036 -0
- data/quickjs/quickjs.h +1049 -0
- data/quickjs/readme.txt +1 -0
- data/quickjs/release.sh +158 -0
- data/quickjs/repl.c +2020 -0
- data/quickjs/repl.js +1566 -0
- data/quickjs/run-test262 +0 -0
- data/quickjs/run-test262.c +2107 -0
- data/quickjs/test262.conf +199 -0
- data/quickjs/test262_errors.txt +35 -0
- data/quickjs/test262o.conf +410 -0
- data/quickjs/test262o_errors.txt +0 -0
- data/quickjs/tests/bjson.c +96 -0
- data/quickjs/tests/microbench.js +1065 -0
- data/quickjs/tests/test262.patch +71 -0
- data/quickjs/tests/test_bignum.js +326 -0
- data/quickjs/tests/test_bjson.js +191 -0
- data/quickjs/tests/test_builtin.js +685 -0
- data/quickjs/tests/test_closure.js +221 -0
- data/quickjs/tests/test_language.js +547 -0
- data/quickjs/tests/test_loop.js +368 -0
- data/quickjs/tests/test_op_overloading.js +207 -0
- data/quickjs/tests/test_qjscalc.js +256 -0
- data/quickjs/tests/test_std.js +281 -0
- data/quickjs/tests/test_worker.js +62 -0
- data/quickjs/tests/test_worker_module.js +31 -0
- data/quickjs/unicode_download.sh +19 -0
- data/quickjs/unicode_gen.c +3057 -0
- data/quickjs/unicode_gen_def.h +284 -0
- data/readline +3 -0
- data/rm_com +1 -0
- data/run.sh +13 -0
- data/scaling +6 -0
- data/script.js +572 -0
- data/server_creator/__ +307 -0
- data/server_creator/a/a (1).tar.gz +0 -0
- data/server_creator/a/a.out +0 -0
- data/server_creator/a/hello_world +0 -0
- data/server_creator/a/help +57 -0
- data/server_creator/a/main_v1.cpp +83 -0
- data/server_creator/a/my_libs_gregory/.deps +0 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.lai +41 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.o +0 -0
- data/server_creator/a/my_libs_gregory/.libs/mod_my_libs_gregory.so +0 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.c +72 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.la +41 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.lo +12 -0
- data/server_creator/a/my_libs_gregory/mod_my_libs_gregory.slo +0 -0
- data/server_creator/a/nginx.conf +32 -0
- data/server_creator/a/six +1 -0
- data/server_creator/a.out +0 -0
- data/server_creator/all_code.cpp +448 -0
- data/server_creator/all_code.js +27 -0
- data/server_creator/code +510 -0
- data/server_creator/make_application +64 -0
- data/server_creator/prog.cpp +33 -0
- data/server_creator/prog.js +22 -0
- data/server_creator/program.js +745 -0
- data/server_creator/rm_com +1 -0
- data/server_creator/test.sh +82 -0
- data/speakcat.rb +9 -0
- data/string +48 -0
- data/super_trans +83 -0
- data/test.sh +21 -0
- data/todo +8 -0
- data/version_decrement +3 -0
- data/viu_license +21 -0
- data/windows/program.c +21 -0
- data/windows/program.exe +0 -0
- metadata +759 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Unicode utilities
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2017-2018 Fabrice Bellard
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
19
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
* THE SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
#ifndef LIBUNICODE_H
|
|
25
|
+
#define LIBUNICODE_H
|
|
26
|
+
|
|
27
|
+
#include <inttypes.h>
|
|
28
|
+
|
|
29
|
+
#define LRE_BOOL int /* for documentation purposes */
|
|
30
|
+
|
|
31
|
+
/* define it to include all the unicode tables (40KB larger) */
|
|
32
|
+
#define CONFIG_ALL_UNICODE
|
|
33
|
+
|
|
34
|
+
#define LRE_CC_RES_LEN_MAX 3
|
|
35
|
+
|
|
36
|
+
typedef enum {
|
|
37
|
+
UNICODE_NFC,
|
|
38
|
+
UNICODE_NFD,
|
|
39
|
+
UNICODE_NFKC,
|
|
40
|
+
UNICODE_NFKD,
|
|
41
|
+
} UnicodeNormalizationEnum;
|
|
42
|
+
|
|
43
|
+
int lre_case_conv(uint32_t *res, uint32_t c, int conv_type);
|
|
44
|
+
LRE_BOOL lre_is_cased(uint32_t c);
|
|
45
|
+
LRE_BOOL lre_is_case_ignorable(uint32_t c);
|
|
46
|
+
|
|
47
|
+
/* char ranges */
|
|
48
|
+
|
|
49
|
+
typedef struct {
|
|
50
|
+
int len; /* in points, always even */
|
|
51
|
+
int size;
|
|
52
|
+
uint32_t *points; /* points sorted by increasing value */
|
|
53
|
+
void *mem_opaque;
|
|
54
|
+
void *(*realloc_func)(void *opaque, void *ptr, size_t size);
|
|
55
|
+
} CharRange;
|
|
56
|
+
|
|
57
|
+
typedef enum {
|
|
58
|
+
CR_OP_UNION,
|
|
59
|
+
CR_OP_INTER,
|
|
60
|
+
CR_OP_XOR,
|
|
61
|
+
} CharRangeOpEnum;
|
|
62
|
+
|
|
63
|
+
void cr_init(CharRange *cr, void *mem_opaque, void *(*realloc_func)(void *opaque, void *ptr, size_t size));
|
|
64
|
+
void cr_free(CharRange *cr);
|
|
65
|
+
int cr_realloc(CharRange *cr, int size);
|
|
66
|
+
int cr_copy(CharRange *cr, const CharRange *cr1);
|
|
67
|
+
|
|
68
|
+
static inline int cr_add_point(CharRange *cr, uint32_t v)
|
|
69
|
+
{
|
|
70
|
+
if (cr->len >= cr->size) {
|
|
71
|
+
if (cr_realloc(cr, cr->len + 1))
|
|
72
|
+
return -1;
|
|
73
|
+
}
|
|
74
|
+
cr->points[cr->len++] = v;
|
|
75
|
+
return 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static inline int cr_add_interval(CharRange *cr, uint32_t c1, uint32_t c2)
|
|
79
|
+
{
|
|
80
|
+
if ((cr->len + 2) > cr->size) {
|
|
81
|
+
if (cr_realloc(cr, cr->len + 2))
|
|
82
|
+
return -1;
|
|
83
|
+
}
|
|
84
|
+
cr->points[cr->len++] = c1;
|
|
85
|
+
cr->points[cr->len++] = c2;
|
|
86
|
+
return 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
int cr_union1(CharRange *cr, const uint32_t *b_pt, int b_len);
|
|
90
|
+
|
|
91
|
+
static inline int cr_union_interval(CharRange *cr, uint32_t c1, uint32_t c2)
|
|
92
|
+
{
|
|
93
|
+
uint32_t b_pt[2];
|
|
94
|
+
b_pt[0] = c1;
|
|
95
|
+
b_pt[1] = c2 + 1;
|
|
96
|
+
return cr_union1(cr, b_pt, 2);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
int cr_op(CharRange *cr, const uint32_t *a_pt, int a_len,
|
|
100
|
+
const uint32_t *b_pt, int b_len, int op);
|
|
101
|
+
|
|
102
|
+
int cr_invert(CharRange *cr);
|
|
103
|
+
|
|
104
|
+
#ifdef CONFIG_ALL_UNICODE
|
|
105
|
+
|
|
106
|
+
LRE_BOOL lre_is_id_start(uint32_t c);
|
|
107
|
+
LRE_BOOL lre_is_id_continue(uint32_t c);
|
|
108
|
+
|
|
109
|
+
int unicode_normalize(uint32_t **pdst, const uint32_t *src, int src_len,
|
|
110
|
+
UnicodeNormalizationEnum n_type,
|
|
111
|
+
void *opaque, void *(*realloc_func)(void *opaque, void *ptr, size_t size));
|
|
112
|
+
|
|
113
|
+
/* Unicode character range functions */
|
|
114
|
+
|
|
115
|
+
int unicode_script(CharRange *cr,
|
|
116
|
+
const char *script_name, LRE_BOOL is_ext);
|
|
117
|
+
int unicode_general_category(CharRange *cr, const char *gc_name);
|
|
118
|
+
int unicode_prop(CharRange *cr, const char *prop_name);
|
|
119
|
+
|
|
120
|
+
#endif /* CONFIG_ALL_UNICODE */
|
|
121
|
+
|
|
122
|
+
#undef LRE_BOOL
|
|
123
|
+
|
|
124
|
+
#endif /* LIBUNICODE_H */
|
|
Binary file
|
data/quickjs/list.h
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Linux klist like system
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2016-2017 Fabrice Bellard
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
|
14
|
+
* all copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
19
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
* THE SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
#ifndef LIST_H
|
|
25
|
+
#define LIST_H
|
|
26
|
+
|
|
27
|
+
#ifndef NULL
|
|
28
|
+
#include <stddef.h>
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
struct list_head {
|
|
32
|
+
struct list_head *prev;
|
|
33
|
+
struct list_head *next;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
#define LIST_HEAD_INIT(el) { &(el), &(el) }
|
|
37
|
+
|
|
38
|
+
/* return the pointer of type 'type *' containing 'el' as field 'member' */
|
|
39
|
+
#define list_entry(el, type, member) \
|
|
40
|
+
((type *)((uint8_t *)(el) - offsetof(type, member)))
|
|
41
|
+
|
|
42
|
+
static inline void init_list_head(struct list_head *head)
|
|
43
|
+
{
|
|
44
|
+
head->prev = head;
|
|
45
|
+
head->next = head;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* insert 'el' between 'prev' and 'next' */
|
|
49
|
+
static inline void __list_add(struct list_head *el,
|
|
50
|
+
struct list_head *prev, struct list_head *next)
|
|
51
|
+
{
|
|
52
|
+
prev->next = el;
|
|
53
|
+
el->prev = prev;
|
|
54
|
+
el->next = next;
|
|
55
|
+
next->prev = el;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* add 'el' at the head of the list 'head' (= after element head) */
|
|
59
|
+
static inline void list_add(struct list_head *el, struct list_head *head)
|
|
60
|
+
{
|
|
61
|
+
__list_add(el, head, head->next);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* add 'el' at the end of the list 'head' (= before element head) */
|
|
65
|
+
static inline void list_add_tail(struct list_head *el, struct list_head *head)
|
|
66
|
+
{
|
|
67
|
+
__list_add(el, head->prev, head);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
static inline void list_del(struct list_head *el)
|
|
71
|
+
{
|
|
72
|
+
struct list_head *prev, *next;
|
|
73
|
+
prev = el->prev;
|
|
74
|
+
next = el->next;
|
|
75
|
+
prev->next = next;
|
|
76
|
+
next->prev = prev;
|
|
77
|
+
el->prev = NULL; /* fail safe */
|
|
78
|
+
el->next = NULL; /* fail safe */
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static inline int list_empty(struct list_head *el)
|
|
82
|
+
{
|
|
83
|
+
return el->next == el;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#define list_for_each(el, head) \
|
|
87
|
+
for(el = (head)->next; el != (head); el = el->next)
|
|
88
|
+
|
|
89
|
+
#define list_for_each_safe(el, el1, head) \
|
|
90
|
+
for(el = (head)->next, el1 = el->next; el != (head); \
|
|
91
|
+
el = el1, el1 = el->next)
|
|
92
|
+
|
|
93
|
+
#define list_for_each_prev(el, head) \
|
|
94
|
+
for(el = (head)->prev; el != (head); el = el->prev)
|
|
95
|
+
|
|
96
|
+
#define list_for_each_prev_safe(el, el1, head) \
|
|
97
|
+
for(el = (head)->prev, el1 = el->prev; el != (head); \
|
|
98
|
+
el = el1, el1 = el->prev)
|
|
99
|
+
|
|
100
|
+
#endif /* LIST_H */
|
data/quickjs/out.c
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* File generated automatically by the QuickJS compiler. */
|
|
2
|
+
|
|
3
|
+
#include <inttypes.h>
|
|
4
|
+
|
|
5
|
+
const uint32_t qjsc_a_size = 115;
|
|
6
|
+
|
|
7
|
+
const uint8_t qjsc_a[115] = {
|
|
8
|
+
0x02, 0x04, 0x02, 0x69, 0x0e, 0x63, 0x6f, 0x6e,
|
|
9
|
+
0x73, 0x6f, 0x6c, 0x65, 0x06, 0x6c, 0x6f, 0x67,
|
|
10
|
+
0x08, 0x61, 0x2e, 0x6a, 0x73, 0x0e, 0x00, 0x06,
|
|
11
|
+
0x00, 0xa0, 0x01, 0x00, 0x01, 0x00, 0x03, 0x00,
|
|
12
|
+
0x00, 0x41, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00,
|
|
13
|
+
0x3f, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xe1,
|
|
14
|
+
0x00, 0x00, 0x00, 0x00, 0x06, 0xc9, 0xb5, 0x39,
|
|
15
|
+
0xe1, 0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00,
|
|
16
|
+
0x00, 0xba, 0xa3, 0xea, 0x23, 0x38, 0xe2, 0x00,
|
|
17
|
+
0x00, 0x00, 0x42, 0xe3, 0x00, 0x00, 0x00, 0x38,
|
|
18
|
+
0xe1, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00, 0xc9,
|
|
19
|
+
0x38, 0xe1, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x39,
|
|
20
|
+
0xe1, 0x00, 0x00, 0x00, 0x0e, 0xec, 0xd6, 0xc5,
|
|
21
|
+
0x28, 0xc8, 0x03, 0x01, 0x06, 0x1f, 0x21, 0x58,
|
|
22
|
+
0x00, 0x13, 0x08,
|
|
23
|
+
};
|
|
24
|
+
|
data/quickjs/out55.c
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* File generated automatically by the QuickJS compiler. */
|
|
2
|
+
|
|
3
|
+
#include "quickjs-libc.h"
|
|
4
|
+
|
|
5
|
+
const uint32_t qjsc_a_size = 115;
|
|
6
|
+
|
|
7
|
+
const uint8_t qjsc_a[115] = {
|
|
8
|
+
0x02, 0x04, 0x02, 0x69, 0x0e, 0x63, 0x6f, 0x6e,
|
|
9
|
+
0x73, 0x6f, 0x6c, 0x65, 0x06, 0x6c, 0x6f, 0x67,
|
|
10
|
+
0x08, 0x61, 0x2e, 0x6a, 0x73, 0x0e, 0x00, 0x06,
|
|
11
|
+
0x00, 0xa0, 0x01, 0x00, 0x01, 0x00, 0x03, 0x00,
|
|
12
|
+
0x00, 0x41, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00,
|
|
13
|
+
0x3f, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xe1,
|
|
14
|
+
0x00, 0x00, 0x00, 0x00, 0x06, 0xc9, 0xb5, 0x39,
|
|
15
|
+
0xe1, 0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00,
|
|
16
|
+
0x00, 0xba, 0xa3, 0xea, 0x23, 0x38, 0xe2, 0x00,
|
|
17
|
+
0x00, 0x00, 0x42, 0xe3, 0x00, 0x00, 0x00, 0x38,
|
|
18
|
+
0xe1, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00, 0xc9,
|
|
19
|
+
0x38, 0xe1, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x39,
|
|
20
|
+
0xe1, 0x00, 0x00, 0x00, 0x0e, 0xec, 0xd6, 0xc5,
|
|
21
|
+
0x28, 0xc8, 0x03, 0x01, 0x06, 0x1f, 0x21, 0x58,
|
|
22
|
+
0x00, 0x13, 0x08,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
static JSContext *JS_NewCustomContext(JSRuntime *rt)
|
|
26
|
+
{
|
|
27
|
+
JSContext *ctx = JS_NewContextRaw(rt);
|
|
28
|
+
if (!ctx)
|
|
29
|
+
return NULL;
|
|
30
|
+
JS_AddIntrinsicBaseObjects(ctx);
|
|
31
|
+
JS_AddIntrinsicDate(ctx);
|
|
32
|
+
JS_AddIntrinsicEval(ctx);
|
|
33
|
+
JS_AddIntrinsicStringNormalize(ctx);
|
|
34
|
+
JS_AddIntrinsicRegExp(ctx);
|
|
35
|
+
JS_AddIntrinsicJSON(ctx);
|
|
36
|
+
JS_AddIntrinsicProxy(ctx);
|
|
37
|
+
JS_AddIntrinsicMapSet(ctx);
|
|
38
|
+
JS_AddIntrinsicTypedArrays(ctx);
|
|
39
|
+
JS_AddIntrinsicPromise(ctx);
|
|
40
|
+
JS_AddIntrinsicBigInt(ctx);
|
|
41
|
+
return ctx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
int main(int argc, char **argv)
|
|
45
|
+
{
|
|
46
|
+
JSRuntime *rt;
|
|
47
|
+
JSContext *ctx;
|
|
48
|
+
rt = JS_NewRuntime();
|
|
49
|
+
js_std_set_worker_new_context_func(JS_NewCustomContext);
|
|
50
|
+
js_std_init_handlers(rt);
|
|
51
|
+
JS_SetModuleLoaderFunc(rt, NULL, js_module_loader, NULL);
|
|
52
|
+
ctx = JS_NewCustomContext(rt);
|
|
53
|
+
js_std_add_helpers(ctx, argc, argv);
|
|
54
|
+
js_std_eval_binary(ctx, qjsc_a, qjsc_a_size, 0);
|
|
55
|
+
js_std_loop(ctx);
|
|
56
|
+
JS_FreeContext(ctx);
|
|
57
|
+
JS_FreeRuntime(rt);
|
|
58
|
+
return 0;
|
|
59
|
+
}
|
data/quickjs/out56.c
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* File generated automatically by the QuickJS compiler. */
|
|
2
|
+
|
|
3
|
+
#include "quickjs-libc.h"
|
|
4
|
+
|
|
5
|
+
const uint32_t qjsc_fib_module_size = 135;
|
|
6
|
+
|
|
7
|
+
const uint8_t qjsc_fib_module[135] = {
|
|
8
|
+
0x02, 0x03, 0x2c, 0x65, 0x78, 0x61, 0x6d, 0x70,
|
|
9
|
+
0x6c, 0x65, 0x73, 0x2f, 0x66, 0x69, 0x62, 0x5f,
|
|
10
|
+
0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x6a,
|
|
11
|
+
0x73, 0x06, 0x66, 0x69, 0x62, 0x02, 0x6e, 0x0f,
|
|
12
|
+
0xc2, 0x03, 0x00, 0x01, 0x00, 0x00, 0xc4, 0x03,
|
|
13
|
+
0x00, 0x00, 0x0e, 0x00, 0x06, 0x01, 0xa0, 0x01,
|
|
14
|
+
0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x08, 0x00,
|
|
15
|
+
0xc4, 0x03, 0x00, 0x01, 0x08, 0xea, 0x05, 0xc0,
|
|
16
|
+
0x00, 0xe1, 0x29, 0x29, 0xc2, 0x03, 0x01, 0x04,
|
|
17
|
+
0x01, 0x00, 0x07, 0x14, 0x0e, 0x43, 0x06, 0x01,
|
|
18
|
+
0xc4, 0x03, 0x01, 0x00, 0x01, 0x04, 0x01, 0x00,
|
|
19
|
+
0x1a, 0x01, 0xc6, 0x03, 0x00, 0x01, 0x00, 0xc4,
|
|
20
|
+
0x03, 0x00, 0x00, 0xd1, 0xb5, 0xa4, 0xea, 0x03,
|
|
21
|
+
0xb5, 0x28, 0xd1, 0xb6, 0xa9, 0xea, 0x03, 0xb6,
|
|
22
|
+
0x28, 0xdd, 0xd1, 0xb6, 0x9e, 0xef, 0xdd, 0xd1,
|
|
23
|
+
0xb7, 0x9e, 0xef, 0x9d, 0x28, 0xc2, 0x03, 0x02,
|
|
24
|
+
0x06, 0x04, 0x1c, 0x08, 0x21, 0x08, 0x08,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const uint32_t qjsc_hello_module_size = 168;
|
|
28
|
+
|
|
29
|
+
const uint8_t qjsc_hello_module[168] = {
|
|
30
|
+
0x02, 0x07, 0x30, 0x65, 0x78, 0x61, 0x6d, 0x70,
|
|
31
|
+
0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c,
|
|
32
|
+
0x6f, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
|
|
33
|
+
0x2e, 0x6a, 0x73, 0x1e, 0x2e, 0x2f, 0x66, 0x69,
|
|
34
|
+
0x62, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65,
|
|
35
|
+
0x2e, 0x6a, 0x73, 0x06, 0x66, 0x69, 0x62, 0x0e,
|
|
36
|
+
0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x06,
|
|
37
|
+
0x6c, 0x6f, 0x67, 0x16, 0x48, 0x65, 0x6c, 0x6c,
|
|
38
|
+
0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x10,
|
|
39
|
+
0x66, 0x69, 0x62, 0x28, 0x31, 0x30, 0x29, 0x3d,
|
|
40
|
+
0x0f, 0xc2, 0x03, 0x01, 0xc4, 0x03, 0x00, 0x00,
|
|
41
|
+
0x01, 0x00, 0xc6, 0x03, 0x00, 0x0e, 0x00, 0x06,
|
|
42
|
+
0x01, 0xa0, 0x01, 0x00, 0x00, 0x00, 0x05, 0x01,
|
|
43
|
+
0x00, 0x30, 0x00, 0xc6, 0x03, 0x00, 0x0c, 0x08,
|
|
44
|
+
0xea, 0x02, 0x29, 0x38, 0xe4, 0x00, 0x00, 0x00,
|
|
45
|
+
0x42, 0xe5, 0x00, 0x00, 0x00, 0x04, 0xe6, 0x00,
|
|
46
|
+
0x00, 0x00, 0x24, 0x01, 0x00, 0x0e, 0x38, 0xe4,
|
|
47
|
+
0x00, 0x00, 0x00, 0x42, 0xe5, 0x00, 0x00, 0x00,
|
|
48
|
+
0x04, 0xe7, 0x00, 0x00, 0x00, 0x65, 0x00, 0x00,
|
|
49
|
+
0xbd, 0x0a, 0xef, 0x24, 0x02, 0x00, 0x29, 0xc2,
|
|
50
|
+
0x03, 0x01, 0x05, 0x01, 0x00, 0x04, 0x0a, 0x62,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
static JSContext *JS_NewCustomContext(JSRuntime *rt)
|
|
54
|
+
{
|
|
55
|
+
JSContext *ctx = JS_NewContextRaw(rt);
|
|
56
|
+
if (!ctx)
|
|
57
|
+
return NULL;
|
|
58
|
+
JS_AddIntrinsicBaseObjects(ctx);
|
|
59
|
+
JS_AddIntrinsicBigInt(ctx);
|
|
60
|
+
js_std_eval_binary(ctx, qjsc_fib_module, qjsc_fib_module_size, 1);
|
|
61
|
+
return ctx;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
int main(int argc, char **argv)
|
|
65
|
+
{
|
|
66
|
+
JSRuntime *rt;
|
|
67
|
+
JSContext *ctx;
|
|
68
|
+
rt = JS_NewRuntime();
|
|
69
|
+
js_std_set_worker_new_context_func(JS_NewCustomContext);
|
|
70
|
+
js_std_init_handlers(rt);
|
|
71
|
+
JS_SetModuleLoaderFunc(rt, NULL, js_module_loader, NULL);
|
|
72
|
+
ctx = JS_NewCustomContext(rt);
|
|
73
|
+
js_std_add_helpers(ctx, argc, argv);
|
|
74
|
+
js_std_eval_binary(ctx, qjsc_hello_module, qjsc_hello_module_size, 0);
|
|
75
|
+
js_std_loop(ctx);
|
|
76
|
+
JS_FreeContext(ctx);
|
|
77
|
+
JS_FreeRuntime(rt);
|
|
78
|
+
return 0;
|
|
79
|
+
}
|
data/quickjs/out57.c
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* File generated automatically by the QuickJS compiler. */
|
|
2
|
+
|
|
3
|
+
#include "quickjs-libc.h"
|
|
4
|
+
|
|
5
|
+
const uint32_t qjsc_a_size = 115;
|
|
6
|
+
|
|
7
|
+
const uint8_t qjsc_a[115] = {
|
|
8
|
+
0x02, 0x04, 0x02, 0x69, 0x0e, 0x63, 0x6f, 0x6e,
|
|
9
|
+
0x73, 0x6f, 0x6c, 0x65, 0x06, 0x6c, 0x6f, 0x67,
|
|
10
|
+
0x08, 0x61, 0x2e, 0x6a, 0x73, 0x0e, 0x00, 0x06,
|
|
11
|
+
0x00, 0xa0, 0x01, 0x00, 0x01, 0x00, 0x03, 0x00,
|
|
12
|
+
0x00, 0x41, 0x01, 0xa2, 0x01, 0x00, 0x00, 0x00,
|
|
13
|
+
0x3f, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x3e, 0xe1,
|
|
14
|
+
0x00, 0x00, 0x00, 0x00, 0x06, 0xc9, 0xb5, 0x39,
|
|
15
|
+
0xe1, 0x00, 0x00, 0x00, 0x38, 0xe1, 0x00, 0x00,
|
|
16
|
+
0x00, 0xba, 0xa3, 0xea, 0x23, 0x38, 0xe2, 0x00,
|
|
17
|
+
0x00, 0x00, 0x42, 0xe3, 0x00, 0x00, 0x00, 0x38,
|
|
18
|
+
0xe1, 0x00, 0x00, 0x00, 0x24, 0x01, 0x00, 0xc9,
|
|
19
|
+
0x38, 0xe1, 0x00, 0x00, 0x00, 0x8f, 0x11, 0x39,
|
|
20
|
+
0xe1, 0x00, 0x00, 0x00, 0x0e, 0xec, 0xd6, 0xc5,
|
|
21
|
+
0x28, 0xc8, 0x03, 0x01, 0x06, 0x1f, 0x21, 0x58,
|
|
22
|
+
0x00, 0x13, 0x08,
|
|
23
|
+
};
|
|
24
|
+
|
data/quickjs/out58.c
ADDED
data/quickjs/p.exe
ADDED
|
Binary file
|
data/quickjs/qjs
ADDED
|
Binary file
|