mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 07:17:16 +00:00
Merge pull request #11924 from s-hadinger/berry_solidify_simplified
Berry simplified solidification
This commit is contained in:
commit
a81f58f088
@ -30,8 +30,8 @@ static const bupvaldesc add_cmd_0_upvals[2] = {
|
||||
be_local_const_upval(1, 0),
|
||||
};
|
||||
|
||||
be_define_local_const_str(add_cmd_0_str_name, "add_cmd_0", 607256038, 0, 8, 0);
|
||||
be_define_local_const_str(add_cmd_0_str_source, "input", -103256197, 0, 5, 0);
|
||||
be_define_local_const_str(add_cmd_0_str_name, "add_cmd_0", 607256038, 8);
|
||||
be_define_local_const_str(add_cmd_0_str_source, "input", -103256197, 5);
|
||||
|
||||
static const uint32_t add_cmd_0_code[8] = {
|
||||
0x68100000, // 0000 GETUPV R4 U0
|
||||
@ -51,10 +51,10 @@ static const bproto *add_cmd_subproto[1] = {
|
||||
&add_cmd_0_proto,
|
||||
};
|
||||
|
||||
be_define_local_const_str(add_cmd_str_name, "add_cmd", -933336417, 0, 7, 0);
|
||||
be_define_local_const_str(add_cmd_str_source, "input", -103256197, 0, 5, 0);
|
||||
be_define_local_const_str(add_cmd_str_0, "get_tasmota", 334356779, 0, 11, 0);
|
||||
be_define_local_const_str(add_cmd_str_1, "add_cmd", -933336417, 0, 7, 0);
|
||||
be_define_local_const_str(add_cmd_str_name, "add_cmd", -933336417, 7);
|
||||
be_define_local_const_str(add_cmd_str_source, "input", -103256197, 5);
|
||||
be_define_local_const_str(add_cmd_str_0, "get_tasmota", 334356779, 11);
|
||||
be_define_local_const_str(add_cmd_str_1, "add_cmd", -933336417, 7);
|
||||
|
||||
static const bvalue add_cmd_ktab[2] = {
|
||||
{ { .s=be_local_const_str(add_cmd_str_0) }, BE_STRING},
|
||||
|
@ -10,6 +10,9 @@
|
||||
|
||||
#ifdef USE_LVGL
|
||||
|
||||
// temporary work-around
|
||||
#define be_define_local_const_str2(a,b,c,d,e,f) be_define_local_const_str(a,b,c,e)
|
||||
|
||||
#include "lvgl.h"
|
||||
|
||||
extern int lv0_start(bvm *vm);
|
||||
@ -632,67 +635,67 @@ be_define_native_module(lvgl, NULL);
|
||||
|
||||
#else
|
||||
|
||||
be_define_local_const_str(SYMBOL_AUDIO, "\xef\x80\x81", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_VIDEO, "\xef\x80\x88", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_LIST, "\xef\x80\x8b", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_OK, "\xef\x80\x8c", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_CLOSE, "\xef\x80\x8d", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_POWER, "\xef\x80\x91", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_SETTINGS, "\xef\x80\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_HOME, "\xef\x80\x95", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_DOWNLOAD, "\xef\x80\x99", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_DRIVE, "\xef\x80\x9c", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_REFRESH, "\xef\x80\xa1", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_MUTE, "\xef\x80\xa6", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_VOLUME_MID, "\xef\x80\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_VOLUME_MAX, "\xef\x80\xa8", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_IMAGE, "\xef\x80\xbe", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_EDIT, "\xef\x8C\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_PREV, "\xef\x81\x88", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_PLAY, "\xef\x81\x8b", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_PAUSE, "\xef\x81\x8c", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_STOP, "\xef\x81\x8d", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_NEXT, "\xef\x81\x91", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_EJECT, "\xef\x81\x92", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_LEFT, "\xef\x81\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_RIGHT, "\xef\x81\x94", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_PLUS, "\xef\x81\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_MINUS, "\xef\x81\xa8", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_EYE_OPEN, "\xef\x81\xae", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_EYE_CLOSE, "\xef\x81\xb0", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_WARNING, "\xef\x81\xb1", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_SHUFFLE, "\xef\x81\xb4", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_UP, "\xef\x81\xb7", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_DOWN, "\xef\x81\xb8", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_LOOP, "\xef\x81\xb9", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_DIRECTORY, "\xef\x81\xbb", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_UPLOAD, "\xef\x82\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_CALL, "\xef\x82\x95", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_CUT, "\xef\x83\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_COPY, "\xef\x83\x85", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_SAVE, "\xef\x83\x87", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_CHARGE, "\xef\x83\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_PASTE, "\xef\x83\xAA", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BELL, "\xef\x83\xb3", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_KEYBOARD, "\xef\x84\x9c", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_GPS, "\xef\x84\xa4", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_FILE, "\xef\x85\x9b", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_WIFI, "\xef\x87\xab", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BATTERY_FULL, "\xef\x89\x80", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BATTERY_3, "\xef\x89\x81", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BATTERY_2, "\xef\x89\x82", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BATTERY_1, "\xef\x89\x83", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BATTERY_EMPTY, "\xef\x89\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_USB, "\xef\x8a\x87", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BLUETOOTH, "\xef\x8a\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_TRASH, "\xef\x8B\xAD", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_BACKSPACE, "\xef\x95\x9A", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_SD_CARD, "\xef\x9F\x82", 0, 0, 3, 0);
|
||||
be_define_local_const_str(SYMBOL_NEW_LINE, "\xef\xA2\xA2", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_AUDIO, "\xef\x80\x81", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_VIDEO, "\xef\x80\x88", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_LIST, "\xef\x80\x8b", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_OK, "\xef\x80\x8c", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_CLOSE, "\xef\x80\x8d", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_POWER, "\xef\x80\x91", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_SETTINGS, "\xef\x80\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_HOME, "\xef\x80\x95", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_DOWNLOAD, "\xef\x80\x99", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_DRIVE, "\xef\x80\x9c", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_REFRESH, "\xef\x80\xa1", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_MUTE, "\xef\x80\xa6", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_VOLUME_MID, "\xef\x80\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_VOLUME_MAX, "\xef\x80\xa8", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_IMAGE, "\xef\x80\xbe", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_EDIT, "\xef\x8C\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_PREV, "\xef\x81\x88", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_PLAY, "\xef\x81\x8b", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_PAUSE, "\xef\x81\x8c", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_STOP, "\xef\x81\x8d", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_NEXT, "\xef\x81\x91", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_EJECT, "\xef\x81\x92", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_LEFT, "\xef\x81\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_RIGHT, "\xef\x81\x94", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_PLUS, "\xef\x81\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_MINUS, "\xef\x81\xa8", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_EYE_OPEN, "\xef\x81\xae", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_EYE_CLOSE, "\xef\x81\xb0", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_WARNING, "\xef\x81\xb1", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_SHUFFLE, "\xef\x81\xb4", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_UP, "\xef\x81\xb7", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_DOWN, "\xef\x81\xb8", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_LOOP, "\xef\x81\xb9", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_DIRECTORY, "\xef\x81\xbb", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_UPLOAD, "\xef\x82\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_CALL, "\xef\x82\x95", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_CUT, "\xef\x83\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_COPY, "\xef\x83\x85", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_SAVE, "\xef\x83\x87", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_CHARGE, "\xef\x83\xa7", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_PASTE, "\xef\x83\xAA", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BELL, "\xef\x83\xb3", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_KEYBOARD, "\xef\x84\x9c", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_GPS, "\xef\x84\xa4", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_FILE, "\xef\x85\x9b", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_WIFI, "\xef\x87\xab", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BATTERY_FULL, "\xef\x89\x80", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BATTERY_3, "\xef\x89\x81", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BATTERY_2, "\xef\x89\x82", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BATTERY_1, "\xef\x89\x83", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BATTERY_EMPTY, "\xef\x89\x84", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_USB, "\xef\x8a\x87", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BLUETOOTH, "\xef\x8a\x93", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_TRASH, "\xef\x8B\xAD", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BACKSPACE, "\xef\x95\x9A", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_SD_CARD, "\xef\x9F\x82", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_NEW_LINE, "\xef\xA2\xA2", 0, 0, 3, 0);
|
||||
|
||||
be_define_local_const_str(SYMBOL_DUMMY, "\xEF\xA3\xBF", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_DUMMY, "\xEF\xA3\xBF", 0, 0, 3, 0);
|
||||
|
||||
be_define_local_const_str(SYMBOL_BULLET, "\xE2\x80\xA2", 0, 0, 3, 0);
|
||||
be_define_local_const_str2(SYMBOL_BULLET, "\xE2\x80\xA2", 0, 0, 3, 0);
|
||||
|
||||
|
||||
/* @const_object_info_begin
|
||||
|
@ -3,9 +3,12 @@
|
||||
*
|
||||
* To use: `import tasmota`
|
||||
*******************************************************************/
|
||||
#include "be_object.h"
|
||||
#include "berry.h"
|
||||
//#include "be_object.h"
|
||||
#include "be_string.h"
|
||||
#include "be_gc.h"
|
||||
|
||||
// temporary work-around
|
||||
#define be_define_local_const_str2(a,b,c,d,e,f) be_define_local_const_str(a,b,c,e)
|
||||
|
||||
extern int l_getFreeHeap(bvm *vm);
|
||||
extern int l_publish(bvm *vm);
|
||||
@ -60,9 +63,9 @@ extern int l_i2cenabled(bvm *vm);
|
||||
** Solidified function: chars_in_string
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(chars_in_string_str_name, "chars_in_string", -1146182164, 0, 15, 0);
|
||||
be_define_local_const_str(chars_in_string_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(chars_in_string_str_2, "stop_iteration", -121173395, 0, 14, 0);
|
||||
be_define_local_const_str2(chars_in_string_str_name, "chars_in_string", -1146182164, 0, 15, 0);
|
||||
be_define_local_const_str2(chars_in_string_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(chars_in_string_str_2, "stop_iteration", -121173395, 0, 14, 0);
|
||||
|
||||
static const bvalue chars_in_string_ktab[3] = {
|
||||
{ { .i=0 }, BE_INT},
|
||||
@ -120,7 +123,7 @@ static const uint32_t chars_in_string_code[44] = {
|
||||
static const bproto chars_in_string_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked 0x08
|
||||
12, // nstack
|
||||
0, // nupvals
|
||||
4, // argc
|
||||
@ -148,7 +151,7 @@ static const bproto chars_in_string_proto = {
|
||||
const bclosure chars_in_string_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &chars_in_string_proto, // proto
|
||||
@ -176,13 +179,13 @@ end
|
||||
** Solidified function: find_key_i
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(find_key_i_str_name, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str(find_key_i_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(find_key_i_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(find_key_i_str_1, "toupper", -602983720, 0, 7, 0);
|
||||
be_define_local_const_str(find_key_i_str_2, "keys", -112588595, 0, 4, 0);
|
||||
be_define_local_const_str(find_key_i_str_3, "?", 973910158, 0, 1, 0);
|
||||
be_define_local_const_str(find_key_i_str_4, "stop_iteration", -121173395, 0, 14, 0);
|
||||
be_define_local_const_str2(find_key_i_str_name, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str2(find_key_i_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(find_key_i_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(find_key_i_str_1, "toupper", -602983720, 0, 7, 0);
|
||||
be_define_local_const_str2(find_key_i_str_2, "keys", -112588595, 0, 4, 0);
|
||||
be_define_local_const_str2(find_key_i_str_3, "?", 973910158, 0, 1, 0);
|
||||
be_define_local_const_str2(find_key_i_str_4, "stop_iteration", -121173395, 0, 14, 0);
|
||||
|
||||
static const bvalue find_key_i_ktab[5] = {
|
||||
{ { .s=be_local_const_str(find_key_i_str_0) }, BE_STRING},
|
||||
@ -229,7 +232,7 @@ static const uint32_t find_key_i_code[31] = {
|
||||
static const bproto find_key_i_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
10, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -257,7 +260,7 @@ static const bproto find_key_i_proto = {
|
||||
const bclosure find_key_i_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &find_key_i_proto, // proto
|
||||
@ -294,12 +297,12 @@ const bclosure find_key_i_closure = {
|
||||
** Solidified function: find_op
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(find_op_str_name, "find_op", -528253920, 0, 7, 0);
|
||||
be_define_local_const_str(find_op_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(find_op_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(find_op_str_1, "=<>!", -1630497019, 0, 4, 0);
|
||||
be_define_local_const_str(find_op_str_2, "chars_in_string", -1146182164, 0, 15, 0);
|
||||
be_define_local_const_str(find_op_str_4, "split", -2017972765, 0, 5, 0);
|
||||
be_define_local_const_str2(find_op_str_name, "find_op", -528253920, 0, 7, 0);
|
||||
be_define_local_const_str2(find_op_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(find_op_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(find_op_str_1, "=<>!", -1630497019, 0, 4, 0);
|
||||
be_define_local_const_str2(find_op_str_2, "chars_in_string", -1146182164, 0, 15, 0);
|
||||
be_define_local_const_str2(find_op_str_4, "split", -2017972765, 0, 5, 0);
|
||||
|
||||
static const bvalue find_op_ktab[6] = {
|
||||
{ { .s=be_local_const_str(find_op_str_0) }, BE_STRING},
|
||||
@ -358,7 +361,7 @@ static const uint32_t find_op_code[42] = {
|
||||
static const bproto find_op_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
13, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -386,7 +389,7 @@ static const bproto find_op_proto = {
|
||||
const bclosure find_op_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &find_op_proto, // proto
|
||||
@ -414,12 +417,12 @@ const bclosure find_op_closure = {
|
||||
** Solidified function: add_rule
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(add_rule_str_name, "add_rule", 596540743, 0, 8, 0);
|
||||
be_define_local_const_str(add_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(add_rule_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str(add_rule_str_1, "function", -1630125495, 0, 8, 0);
|
||||
be_define_local_const_str(add_rule_str_2, "value_error", 773297791, 0, 11, 0);
|
||||
be_define_local_const_str(add_rule_str_3, "the second argument is not a function", -340392827, 0, 37, 0);
|
||||
be_define_local_const_str2(add_rule_str_name, "add_rule", 596540743, 0, 8, 0);
|
||||
be_define_local_const_str2(add_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(add_rule_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str2(add_rule_str_1, "function", -1630125495, 0, 8, 0);
|
||||
be_define_local_const_str2(add_rule_str_2, "value_error", 773297791, 0, 11, 0);
|
||||
be_define_local_const_str2(add_rule_str_3, "the second argument is not a function", -340392827, 0, 37, 0);
|
||||
|
||||
static const bvalue add_rule_ktab[4] = {
|
||||
{ { .s=be_local_const_str(add_rule_str_0) }, BE_STRING},
|
||||
@ -449,7 +452,7 @@ static const uint32_t add_rule_code[15] = {
|
||||
static const bproto add_rule_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
5, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -477,7 +480,7 @@ static const bproto add_rule_proto = {
|
||||
static const bclosure add_rule_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &add_rule_proto, // proto
|
||||
@ -498,10 +501,10 @@ static const bclosure add_rule_closure = {
|
||||
** Solidified function: remove_rule
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(remove_rule_str_name, "remove_rule", -838755968, 0, 11, 0);
|
||||
be_define_local_const_str(remove_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(remove_rule_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str(remove_rule_str_1, "remove", -611183107, 0, 6, 0);
|
||||
be_define_local_const_str2(remove_rule_str_name, "remove_rule", -838755968, 0, 11, 0);
|
||||
be_define_local_const_str2(remove_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(remove_rule_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str2(remove_rule_str_1, "remove", -611183107, 0, 6, 0);
|
||||
|
||||
static const bvalue remove_rule_ktab[2] = {
|
||||
{ { .s=be_local_const_str(remove_rule_str_0) }, BE_STRING},
|
||||
@ -521,7 +524,7 @@ static const uint32_t remove_rule_code[7] = {
|
||||
static const bproto remove_rule_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
5, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -549,7 +552,7 @@ static const bproto remove_rule_proto = {
|
||||
static const bclosure remove_rule_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &remove_rule_proto, // proto
|
||||
@ -600,22 +603,22 @@ static const bclosure remove_rule_closure = {
|
||||
** Solidified function: try_rule
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(try_rule_str_name, "try_rule", 1986449405, 0, 8, 0);
|
||||
be_define_local_const_str(try_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(try_rule_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(try_rule_str_1, "find_op", -528253920, 0, 7, 0);
|
||||
be_define_local_const_str(try_rule_str_2, "split", -2017972765, 0, 5, 0);
|
||||
be_define_local_const_str(try_rule_str_4, "#", 638357778, 0, 1, 0);
|
||||
be_define_local_const_str(try_rule_str_5, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str(try_rule_str_6, "stop_iteration", -121173395, 0, 14, 0);
|
||||
be_define_local_const_str(try_rule_str_9, "==", -1863000881, 0, 2, 0);
|
||||
be_define_local_const_str(try_rule_str_10, "!==", 559817114, 0, 3, 0);
|
||||
be_define_local_const_str(try_rule_str_11, "=", 940354920, 0, 1, 0);
|
||||
be_define_local_const_str(try_rule_str_12, "!=", -1866252285, 0, 2, 0);
|
||||
be_define_local_const_str(try_rule_str_13, ">", 990687777, 0, 1, 0);
|
||||
be_define_local_const_str(try_rule_str_14, ">=", 284975636, 0, 2, 0);
|
||||
be_define_local_const_str(try_rule_str_15, "<", 957132539, 0, 1, 0);
|
||||
be_define_local_const_str(try_rule_str_16, "<=", -1795743310, 0, 2, 0);
|
||||
be_define_local_const_str2(try_rule_str_name, "try_rule", 1986449405, 0, 8, 0);
|
||||
be_define_local_const_str2(try_rule_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(try_rule_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(try_rule_str_1, "find_op", -528253920, 0, 7, 0);
|
||||
be_define_local_const_str2(try_rule_str_2, "split", -2017972765, 0, 5, 0);
|
||||
be_define_local_const_str2(try_rule_str_4, "#", 638357778, 0, 1, 0);
|
||||
be_define_local_const_str2(try_rule_str_5, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str2(try_rule_str_6, "stop_iteration", -121173395, 0, 14, 0);
|
||||
be_define_local_const_str2(try_rule_str_9, "==", -1863000881, 0, 2, 0);
|
||||
be_define_local_const_str2(try_rule_str_10, "!==", 559817114, 0, 3, 0);
|
||||
be_define_local_const_str2(try_rule_str_11, "=", 940354920, 0, 1, 0);
|
||||
be_define_local_const_str2(try_rule_str_12, "!=", -1866252285, 0, 2, 0);
|
||||
be_define_local_const_str2(try_rule_str_13, ">", 990687777, 0, 1, 0);
|
||||
be_define_local_const_str2(try_rule_str_14, ">=", 284975636, 0, 2, 0);
|
||||
be_define_local_const_str2(try_rule_str_15, "<", 957132539, 0, 1, 0);
|
||||
be_define_local_const_str2(try_rule_str_16, "<=", -1795743310, 0, 2, 0);
|
||||
|
||||
static const bvalue try_rule_ktab[17] = {
|
||||
{ { .s=be_local_const_str(try_rule_str_0) }, BE_STRING},
|
||||
@ -786,7 +789,7 @@ static const uint32_t try_rule_code[143] = {
|
||||
static const bproto try_rule_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
14, // nstack
|
||||
0, // nupvals
|
||||
4, // argc
|
||||
@ -814,7 +817,7 @@ static const bproto try_rule_proto = {
|
||||
static const bclosure try_rule_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &try_rule_proto, // proto
|
||||
@ -850,15 +853,15 @@ static const bclosure try_rule_closure = {
|
||||
** Solidified function: exec_rules
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(exec_rules_str_name, "exec_rules", 1445221092, 0, 10, 0);
|
||||
be_define_local_const_str(exec_rules_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(exec_rules_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str(exec_rules_str_1, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str(exec_rules_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str(exec_rules_str_3, "BRY: ERROR, bad json: ", -1579831487, 0, 22, 0);
|
||||
be_define_local_const_str(exec_rules_str_5, "keys", -112588595, 0, 4, 0);
|
||||
be_define_local_const_str(exec_rules_str_6, "try_rule", 1986449405, 0, 8, 0);
|
||||
be_define_local_const_str(exec_rules_str_7, "stop_iteration", -121173395, 0, 14, 0);
|
||||
be_define_local_const_str2(exec_rules_str_name, "exec_rules", 1445221092, 0, 10, 0);
|
||||
be_define_local_const_str2(exec_rules_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(exec_rules_str_0, "_rules", -28750191, 0, 6, 0);
|
||||
be_define_local_const_str2(exec_rules_str_1, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str2(exec_rules_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str2(exec_rules_str_3, "BRY: ERROR, bad json: ", -1579831487, 0, 22, 0);
|
||||
be_define_local_const_str2(exec_rules_str_5, "keys", -112588595, 0, 4, 0);
|
||||
be_define_local_const_str2(exec_rules_str_6, "try_rule", 1986449405, 0, 8, 0);
|
||||
be_define_local_const_str2(exec_rules_str_7, "stop_iteration", -121173395, 0, 14, 0);
|
||||
|
||||
static const bvalue exec_rules_ktab[8] = {
|
||||
{ { .s=be_local_const_str(exec_rules_str_0) }, BE_STRING},
|
||||
@ -917,7 +920,7 @@ static const uint32_t exec_rules_code[40] = {
|
||||
static const bproto exec_rules_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
12, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -945,7 +948,7 @@ static const bproto exec_rules_proto = {
|
||||
const bclosure exec_rules_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &exec_rules_proto, // proto
|
||||
@ -965,11 +968,11 @@ const bclosure exec_rules_closure = {
|
||||
** Solidified function: set_timer
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(set_timer_str_name, "set_timer", 2135414533, 0, 9, 0);
|
||||
be_define_local_const_str(set_timer_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(set_timer_str_0, "_timers", -1694866380, 0, 7, 0);
|
||||
be_define_local_const_str(set_timer_str_1, "push", -2022703139, 0, 4, 0);
|
||||
be_define_local_const_str(set_timer_str_2, "millis", 1214679063, 0, 6, 0);
|
||||
be_define_local_const_str2(set_timer_str_name, "set_timer", 2135414533, 0, 9, 0);
|
||||
be_define_local_const_str2(set_timer_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(set_timer_str_0, "_timers", -1694866380, 0, 7, 0);
|
||||
be_define_local_const_str2(set_timer_str_1, "push", -2022703139, 0, 4, 0);
|
||||
be_define_local_const_str2(set_timer_str_2, "millis", 1214679063, 0, 6, 0);
|
||||
|
||||
static const bvalue set_timer_ktab[3] = {
|
||||
{ { .s=be_local_const_str(set_timer_str_0) }, BE_STRING},
|
||||
@ -999,7 +1002,7 @@ static const uint32_t set_timer_code[16] = {
|
||||
static const bproto set_timer_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
9, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -1027,7 +1030,7 @@ static const bproto set_timer_proto = {
|
||||
const bclosure set_timer_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &set_timer_proto, // proto
|
||||
@ -1058,12 +1061,12 @@ const bclosure set_timer_closure = {
|
||||
** Solidified function: run_deferred
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(run_deferred_str_name, "run_deferred", 371594696, 0, 12, 0);
|
||||
be_define_local_const_str(run_deferred_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(run_deferred_str_0, "_timers", -1694866380, 0, 7, 0);
|
||||
be_define_local_const_str(run_deferred_str_2, "size", 597743964, 0, 4, 0);
|
||||
be_define_local_const_str(run_deferred_str_3, "time_reached", 2075136773, 0, 12, 0);
|
||||
be_define_local_const_str(run_deferred_str_5, "remove", -611183107, 0, 6, 0);
|
||||
be_define_local_const_str2(run_deferred_str_name, "run_deferred", 371594696, 0, 12, 0);
|
||||
be_define_local_const_str2(run_deferred_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(run_deferred_str_0, "_timers", -1694866380, 0, 7, 0);
|
||||
be_define_local_const_str2(run_deferred_str_2, "size", 597743964, 0, 4, 0);
|
||||
be_define_local_const_str2(run_deferred_str_3, "time_reached", 2075136773, 0, 12, 0);
|
||||
be_define_local_const_str2(run_deferred_str_5, "remove", -611183107, 0, 6, 0);
|
||||
|
||||
static const bvalue run_deferred_ktab[6] = {
|
||||
{ { .s=be_local_const_str(run_deferred_str_0) }, BE_STRING},
|
||||
@ -1107,7 +1110,7 @@ static const uint32_t run_deferred_code[27] = {
|
||||
static const bproto run_deferred_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
6, // nstack
|
||||
0, // nupvals
|
||||
1, // argc
|
||||
@ -1135,7 +1138,7 @@ static const bproto run_deferred_proto = {
|
||||
const bclosure run_deferred_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &run_deferred_proto, // proto
|
||||
@ -1162,12 +1165,12 @@ const bclosure run_deferred_closure = {
|
||||
** Solidified function: add_cmd
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(add_cmd_str_name, "add_cmd", -933336417, 0, 7, 0);
|
||||
be_define_local_const_str(add_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(add_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str(add_cmd_str_1, "function", -1630125495, 0, 8, 0);
|
||||
be_define_local_const_str(add_cmd_str_2, "value_error", 773297791, 0, 11, 0);
|
||||
be_define_local_const_str(add_cmd_str_3, "the second argument is not a function", -340392827, 0, 37, 0);
|
||||
be_define_local_const_str2(add_cmd_str_name, "add_cmd", -933336417, 0, 7, 0);
|
||||
be_define_local_const_str2(add_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(add_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str2(add_cmd_str_1, "function", -1630125495, 0, 8, 0);
|
||||
be_define_local_const_str2(add_cmd_str_2, "value_error", 773297791, 0, 11, 0);
|
||||
be_define_local_const_str2(add_cmd_str_3, "the second argument is not a function", -340392827, 0, 37, 0);
|
||||
|
||||
static const bvalue add_cmd_ktab[4] = {
|
||||
{ { .s=be_local_const_str(add_cmd_str_0) }, BE_STRING},
|
||||
@ -1197,7 +1200,7 @@ static const uint32_t add_cmd_code[15] = {
|
||||
static const bproto add_cmd_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
5, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -1225,7 +1228,7 @@ static const bproto add_cmd_proto = {
|
||||
static const bclosure add_cmd_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &add_cmd_proto, // proto
|
||||
@ -1247,10 +1250,10 @@ static const bclosure add_cmd_closure = {
|
||||
** Solidified function: remove_cmd
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(remove_cmd_str_name, "remove_cmd", -462651594, 0, 10, 0);
|
||||
be_define_local_const_str(remove_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(remove_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str(remove_cmd_str_1, "remove", -611183107, 0, 6, 0);
|
||||
be_define_local_const_str2(remove_cmd_str_name, "remove_cmd", -462651594, 0, 10, 0);
|
||||
be_define_local_const_str2(remove_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(remove_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str2(remove_cmd_str_1, "remove", -611183107, 0, 6, 0);
|
||||
|
||||
static const bvalue remove_cmd_ktab[2] = {
|
||||
{ { .s=be_local_const_str(remove_cmd_str_0) }, BE_STRING},
|
||||
@ -1270,7 +1273,7 @@ static const uint32_t remove_cmd_code[7] = {
|
||||
static const bproto remove_cmd_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
5, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -1298,7 +1301,7 @@ static const bproto remove_cmd_proto = {
|
||||
static const bclosure remove_cmd_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &remove_cmd_proto, // proto
|
||||
@ -1327,13 +1330,13 @@ static const bclosure remove_cmd_closure = {
|
||||
** Solidified function: exec_cmd
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(exec_cmd_str_name, "exec_cmd", 493567399, 0, 8, 0);
|
||||
be_define_local_const_str(exec_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(exec_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str(exec_cmd_str_1, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str(exec_cmd_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str(exec_cmd_str_3, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str(exec_cmd_str_4, "resolvecmnd", 993361485, 0, 11, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_name, "exec_cmd", 493567399, 0, 8, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_0, "_ccmd", -2131545883, 0, 5, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_1, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_3, "find_key_i", 850136726, 0, 10, 0);
|
||||
be_define_local_const_str2(exec_cmd_str_4, "resolvecmnd", 993361485, 0, 11, 0);
|
||||
|
||||
static const bvalue exec_cmd_ktab[5] = {
|
||||
{ { .s=be_local_const_str(exec_cmd_str_0) }, BE_STRING},
|
||||
@ -1376,7 +1379,7 @@ static const uint32_t exec_cmd_code[27] = {
|
||||
static const bproto exec_cmd_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
12, // nstack
|
||||
0, // nupvals
|
||||
4, // argc
|
||||
@ -1404,7 +1407,7 @@ static const bproto exec_cmd_proto = {
|
||||
static const bclosure exec_cmd_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &exec_cmd_proto, // proto
|
||||
@ -1426,11 +1429,12 @@ static const bclosure exec_cmd_closure = {
|
||||
** Solidified function: gc
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(gc_str_name, "gc", 1042313471, 0, 2, 0);
|
||||
be_define_local_const_str(gc_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(gc_str_0, "gc", 1042313471, 0, 2, 0);
|
||||
be_define_local_const_str(gc_str_1, "collect", -1895928271, 0, 7, 0);
|
||||
be_define_local_const_str(gc_str_2, "allocated", 429986098, 0, 9, 0);
|
||||
/********** Solidified proto: gc */
|
||||
be_define_local_const_str(gc_str_name, "gc", 1042313471, 2);
|
||||
be_define_local_const_str(gc_str_source, "string", 398550328, 6);
|
||||
be_define_local_const_str(gc_str_0, "gc", 1042313471, 2);
|
||||
be_define_local_const_str(gc_str_1, "collect", -1895928271, 7);
|
||||
be_define_local_const_str(gc_str_2, "allocated", 429986098, 9);
|
||||
|
||||
static const bvalue gc_ktab[3] = {
|
||||
{ { .s=be_local_const_str(gc_str_0) }, BE_STRING},
|
||||
@ -1447,43 +1451,8 @@ static const uint32_t gc_code[6] = {
|
||||
0x80040400, // 0005 RET 1 R2
|
||||
};
|
||||
|
||||
static const bproto gc_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
4, // nstack
|
||||
0, // nupvals
|
||||
1, // argc
|
||||
0, // varg
|
||||
NULL, // bgcobject *gray
|
||||
NULL, // bupvaldesc *upvals
|
||||
(bvalue*) &gc_ktab, // ktab
|
||||
NULL, // bproto **ptab
|
||||
(binstruction*) &gc_code, // code
|
||||
be_local_const_str(gc_str_name), // name
|
||||
6, // codesize
|
||||
3, // nconst
|
||||
0, // nproto
|
||||
be_local_const_str(gc_str_source), // source
|
||||
#if BE_DEBUG_RUNTIME_INFO /* debug information */
|
||||
NULL, // lineinfo
|
||||
0, // nlineinfo
|
||||
#endif
|
||||
#if BE_DEBUG_VAR_INFO
|
||||
NULL, // varinfo
|
||||
0, // nvarinfo
|
||||
#endif
|
||||
};
|
||||
|
||||
const bclosure gc_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &gc_proto, // proto
|
||||
{ NULL } // upvals
|
||||
};
|
||||
be_define_local_proto(gc, 4, 1, 1, 0, 0);
|
||||
be_define_local_closure(gc);
|
||||
|
||||
/*******************************************************************/
|
||||
|
||||
@ -1525,30 +1494,31 @@ const bclosure gc_closure = {
|
||||
** Solidified function: event
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(event_str_name, "event", -30355297, 0, 5, 0);
|
||||
be_define_local_const_str(event_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(event_str_0, "cmd", -158181397, 0, 3, 0);
|
||||
be_define_local_const_str(event_str_1, "exec_cmd", 493567399, 0, 8, 0);
|
||||
be_define_local_const_str(event_str_2, "rule", -64077613, 0, 4, 0);
|
||||
be_define_local_const_str(event_str_3, "exec_rules", 1445221092, 0, 10, 0);
|
||||
be_define_local_const_str(event_str_4, "mqtt_data", -1756753932, 0, 9, 0);
|
||||
be_define_local_const_str(event_str_5, "gc", 1042313471, 0, 2, 0);
|
||||
be_define_local_const_str(event_str_6, "every_50ms", -1911083288, 0, 10, 0);
|
||||
be_define_local_const_str(event_str_7, "run_deferred", 371594696, 0, 12, 0);
|
||||
be_define_local_const_str(event_str_8, "_drivers", -1034638311, 0, 8, 0);
|
||||
be_define_local_const_str(event_str_9, "every_second", 2075451465, 0, 12, 0);
|
||||
be_define_local_const_str(event_str_10, "every_100ms", 1546407804, 0, 11, 0);
|
||||
be_define_local_const_str(event_str_11, "web_add_button", -757092238, 0, 14, 0);
|
||||
be_define_local_const_str(event_str_12, "web_add_main_button", -334599632, 0, 19, 0);
|
||||
be_define_local_const_str(event_str_13, "save_before_restart", 1253239338, 0, 19, 0);
|
||||
be_define_local_const_str(event_str_14, "web_sensor", -1394870324, 0, 10, 0);
|
||||
be_define_local_const_str(event_str_15, "json_append", -1292948012, 0, 11, 0);
|
||||
be_define_local_const_str(event_str_16, "button_pressed", 1694209616, 0, 14, 0);
|
||||
be_define_local_const_str(event_str_17, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(event_str_18, "log", 1062293841, 0, 3, 0);
|
||||
be_define_local_const_str(event_str_19, "format", -1180859054, 0, 6, 0);
|
||||
be_define_local_const_str(event_str_20, "BRY: exception %s - %m", -1290966132, 0, 22, 0);
|
||||
be_define_local_const_str(event_str_22, "stop_iteration", -121173395, 0, 14, 0);
|
||||
/********** Solidified proto: event */
|
||||
be_define_local_const_str(event_str_name, "event", -30355297, 5);
|
||||
be_define_local_const_str(event_str_source, "string", 398550328, 6);
|
||||
be_define_local_const_str(event_str_0, "cmd", -158181397, 3);
|
||||
be_define_local_const_str(event_str_1, "exec_cmd", 493567399, 8);
|
||||
be_define_local_const_str(event_str_2, "rule", -64077613, 4);
|
||||
be_define_local_const_str(event_str_3, "exec_rules", 1445221092, 10);
|
||||
be_define_local_const_str(event_str_4, "mqtt_data", -1756753932, 9);
|
||||
be_define_local_const_str(event_str_5, "gc", 1042313471, 2);
|
||||
be_define_local_const_str(event_str_6, "every_50ms", -1911083288, 10);
|
||||
be_define_local_const_str(event_str_7, "run_deferred", 371594696, 12);
|
||||
be_define_local_const_str(event_str_8, "_drivers", -1034638311, 8);
|
||||
be_define_local_const_str(event_str_9, "every_second", 2075451465, 12);
|
||||
be_define_local_const_str(event_str_10, "every_100ms", 1546407804, 11);
|
||||
be_define_local_const_str(event_str_11, "web_add_button", -757092238, 14);
|
||||
be_define_local_const_str(event_str_12, "web_add_main_button", -334599632, 19);
|
||||
be_define_local_const_str(event_str_13, "save_before_restart", 1253239338, 19);
|
||||
be_define_local_const_str(event_str_14, "web_sensor", -1394870324, 10);
|
||||
be_define_local_const_str(event_str_15, "json_append", -1292948012, 11);
|
||||
be_define_local_const_str(event_str_16, "button_pressed", 1694209616, 14);
|
||||
be_define_local_const_str(event_str_17, "string", 398550328, 6);
|
||||
be_define_local_const_str(event_str_18, "log", 1062293841, 3);
|
||||
be_define_local_const_str(event_str_19, "format", -1180859054, 6);
|
||||
be_define_local_const_str(event_str_20, "BRY: exception %s - %m", -1290966132, 22);
|
||||
be_define_local_const_str(event_str_22, "stop_iteration", -121173395, 14);
|
||||
|
||||
static const bvalue event_ktab[23] = {
|
||||
{ { .s=be_local_const_str(event_str_0) }, BE_STRING},
|
||||
@ -1710,43 +1680,8 @@ static const uint32_t event_code[131] = {
|
||||
0x80000000, // 0082 RET 0 R0
|
||||
};
|
||||
|
||||
static const bproto event_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
16, // nstack
|
||||
0, // nupvals
|
||||
5, // argc
|
||||
0, // varg
|
||||
NULL, // bgcobject *gray
|
||||
NULL, // bupvaldesc *upvals
|
||||
(bvalue*) &event_ktab, // ktab
|
||||
NULL, // bproto **ptab
|
||||
(binstruction*) &event_code, // code
|
||||
be_local_const_str(event_str_name), // name
|
||||
131, // codesize
|
||||
23, // nconst
|
||||
0, // nproto
|
||||
be_local_const_str(event_str_source), // source
|
||||
#if BE_DEBUG_RUNTIME_INFO /* debug information */
|
||||
NULL, // lineinfo
|
||||
0, // nlineinfo
|
||||
#endif
|
||||
#if BE_DEBUG_VAR_INFO
|
||||
NULL, // varinfo
|
||||
0, // nvarinfo
|
||||
#endif
|
||||
};
|
||||
|
||||
static const bclosure event_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &event_proto, // proto
|
||||
{ NULL } // upvals
|
||||
};
|
||||
be_define_local_proto(event, 16, 5, 1, 0, 0);
|
||||
be_define_local_closure(event);
|
||||
|
||||
/*******************************************************************/
|
||||
|
||||
@ -1766,10 +1701,10 @@ static const bclosure event_closure = {
|
||||
** Solidified function: add_driver
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(add_driver_str_name, "add_driver", 1654458371, 0, 10, 0);
|
||||
be_define_local_const_str(add_driver_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(add_driver_str_0, "_drivers", -1034638311, 0, 8, 0);
|
||||
be_define_local_const_str(add_driver_str_1, "push", -2022703139, 0, 4, 0);
|
||||
be_define_local_const_str2(add_driver_str_name, "add_driver", 1654458371, 0, 10, 0);
|
||||
be_define_local_const_str2(add_driver_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(add_driver_str_0, "_drivers", -1034638311, 0, 8, 0);
|
||||
be_define_local_const_str2(add_driver_str_1, "push", -2022703139, 0, 4, 0);
|
||||
|
||||
static const bvalue add_driver_ktab[2] = {
|
||||
{ { .s=be_local_const_str(add_driver_str_0) }, BE_STRING},
|
||||
@ -1794,7 +1729,7 @@ static const uint32_t add_driver_code[12] = {
|
||||
static const bproto add_driver_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
5, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -1822,7 +1757,7 @@ static const bproto add_driver_proto = {
|
||||
const bclosure add_driver_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &add_driver_proto, // proto
|
||||
@ -1868,24 +1803,24 @@ const bclosure add_driver_closure = {
|
||||
** Solidified function: load
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(load_str_name, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str(load_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(load_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(load_str_1, "split", -2017972765, 0, 5, 0);
|
||||
be_define_local_const_str(load_str_2, ".", 722245873, 0, 1, 0);
|
||||
be_define_local_const_str(load_str_4, "be", 942383232, 0, 2, 0);
|
||||
be_define_local_const_str(load_str_5, "bec", 1336821081, 0, 3, 0);
|
||||
be_define_local_const_str(load_str_6, "file extension is not '.be' or '.bec'", -1199247657, 0, 37, 0);
|
||||
be_define_local_const_str(load_str_7, "c", -435409838, 0, 1, 0);
|
||||
be_define_local_const_str(load_str_9, "/", 705468254, 0, 1, 0);
|
||||
be_define_local_const_str(load_str_10, "file", -1427482813, 0, 4, 0);
|
||||
be_define_local_const_str(load_str_11, "save", -855671224, 0, 4, 0);
|
||||
be_define_local_const_str(load_str_12, "log", 1062293841, 0, 3, 0);
|
||||
be_define_local_const_str(load_str_13, "format", -1180859054, 0, 6, 0);
|
||||
be_define_local_const_str(load_str_14, "BRY: could not save compiled file %s (%s)", 736659787, 0, 41, 0);
|
||||
be_define_local_const_str(load_str_15, "BRY: sucessfully loaded '%s'", -675188639, 0, 28, 0);
|
||||
be_define_local_const_str(load_str_16, "Could not load file '%s'", -708657871, 0, 24, 0);
|
||||
be_define_local_const_str(load_str_17, "io_error", 1970281036, 0, 8, 0);
|
||||
be_define_local_const_str2(load_str_name, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str2(load_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(load_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(load_str_1, "split", -2017972765, 0, 5, 0);
|
||||
be_define_local_const_str2(load_str_2, ".", 722245873, 0, 1, 0);
|
||||
be_define_local_const_str2(load_str_4, "be", 942383232, 0, 2, 0);
|
||||
be_define_local_const_str2(load_str_5, "bec", 1336821081, 0, 3, 0);
|
||||
be_define_local_const_str2(load_str_6, "file extension is not '.be' or '.bec'", -1199247657, 0, 37, 0);
|
||||
be_define_local_const_str2(load_str_7, "c", -435409838, 0, 1, 0);
|
||||
be_define_local_const_str2(load_str_9, "/", 705468254, 0, 1, 0);
|
||||
be_define_local_const_str2(load_str_10, "file", -1427482813, 0, 4, 0);
|
||||
be_define_local_const_str2(load_str_11, "save", -855671224, 0, 4, 0);
|
||||
be_define_local_const_str2(load_str_12, "log", 1062293841, 0, 3, 0);
|
||||
be_define_local_const_str2(load_str_13, "format", -1180859054, 0, 6, 0);
|
||||
be_define_local_const_str2(load_str_14, "BRY: could not save compiled file %s (%s)", 736659787, 0, 41, 0);
|
||||
be_define_local_const_str2(load_str_15, "BRY: sucessfully loaded '%s'", -675188639, 0, 28, 0);
|
||||
be_define_local_const_str2(load_str_16, "Could not load file '%s'", -708657871, 0, 24, 0);
|
||||
be_define_local_const_str2(load_str_17, "io_error", 1970281036, 0, 8, 0);
|
||||
|
||||
static const bvalue load_ktab[18] = {
|
||||
{ { .s=be_local_const_str(load_str_0) }, BE_STRING},
|
||||
@ -1987,7 +1922,7 @@ static const uint32_t load_code[73] = {
|
||||
static const bproto load_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
14, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -2015,7 +1950,7 @@ static const bproto load_proto = {
|
||||
const bclosure load_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &load_proto, // proto
|
||||
@ -2040,12 +1975,12 @@ const bclosure load_closure = {
|
||||
** Solidified function: wire_scan
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(wire_scan_str_name, "wire_scan", -1623691416, 0, 9, 0);
|
||||
be_define_local_const_str(wire_scan_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(wire_scan_str_0, "i2c_enabled", 218388101, 0, 11, 0);
|
||||
be_define_local_const_str(wire_scan_str_1, "wire1", -1082245877, 0, 5, 0);
|
||||
be_define_local_const_str(wire_scan_str_2, "detect", 8884370, 0, 6, 0);
|
||||
be_define_local_const_str(wire_scan_str_3, "wire2", -1065468258, 0, 5, 0);
|
||||
be_define_local_const_str2(wire_scan_str_name, "wire_scan", -1623691416, 0, 9, 0);
|
||||
be_define_local_const_str2(wire_scan_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(wire_scan_str_0, "i2c_enabled", 218388101, 0, 11, 0);
|
||||
be_define_local_const_str2(wire_scan_str_1, "wire1", -1082245877, 0, 5, 0);
|
||||
be_define_local_const_str2(wire_scan_str_2, "detect", 8884370, 0, 6, 0);
|
||||
be_define_local_const_str2(wire_scan_str_3, "wire2", -1065468258, 0, 5, 0);
|
||||
|
||||
static const bvalue wire_scan_ktab[4] = {
|
||||
{ { .s=be_local_const_str(wire_scan_str_0) }, BE_STRING},
|
||||
@ -2085,7 +2020,7 @@ static const uint32_t wire_scan_code[25] = {
|
||||
static const bproto wire_scan_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
6, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -2113,7 +2048,7 @@ static const bproto wire_scan_proto = {
|
||||
static const bclosure wire_scan_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &wire_scan_proto, // proto
|
||||
@ -2134,18 +2069,18 @@ static const bclosure wire_scan_closure = {
|
||||
********************************************************************/
|
||||
|
||||
/********** Solidified proto: time_str */
|
||||
be_define_local_const_str(time_str_str_name, "time_str", -1681139684, 0, 8, 0);
|
||||
be_define_local_const_str(time_str_str_source, "input", -103256197, 0, 5, 0);
|
||||
be_define_local_const_str(time_str_str_0, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(time_str_str_1, "time_dump", -964556549, 0, 9, 0);
|
||||
be_define_local_const_str(time_str_str_2, "format", -1180859054, 0, 6, 0);
|
||||
be_define_local_const_str(time_str_str_3, "%04d-%02d-%02dT%02d:%02d:%02d", -869438695, 0, 29, 0);
|
||||
be_define_local_const_str(time_str_str_4, "year", -1367388900, 0, 4, 0);
|
||||
be_define_local_const_str(time_str_str_5, "month", -696646139, 0, 5, 0);
|
||||
be_define_local_const_str(time_str_str_6, "day", -464576003, 0, 3, 0);
|
||||
be_define_local_const_str(time_str_str_7, "hour", -1241306097, 0, 4, 0);
|
||||
be_define_local_const_str(time_str_str_8, "min", -913357481, 0, 3, 0);
|
||||
be_define_local_const_str(time_str_str_9, "sec", -1155074638, 0, 3, 0);
|
||||
be_define_local_const_str(time_str_str_name, "time_str", -1681139684, 8);
|
||||
be_define_local_const_str(time_str_str_source, "input", -103256197, 5);
|
||||
be_define_local_const_str(time_str_str_0, "string", 398550328, 6);
|
||||
be_define_local_const_str(time_str_str_1, "time_dump", -964556549, 9);
|
||||
be_define_local_const_str(time_str_str_2, "format", -1180859054, 6);
|
||||
be_define_local_const_str(time_str_str_3, "%04d-%02d-%02dT%02d:%02d:%02d", -869438695, 29);
|
||||
be_define_local_const_str(time_str_str_4, "year", -1367388900, 4);
|
||||
be_define_local_const_str(time_str_str_5, "month", -696646139, 5);
|
||||
be_define_local_const_str(time_str_str_6, "day", -464576003, 3);
|
||||
be_define_local_const_str(time_str_str_7, "hour", -1241306097, 4);
|
||||
be_define_local_const_str(time_str_str_8, "min", -913357481, 3);
|
||||
be_define_local_const_str(time_str_str_9, "sec", -1155074638, 3);
|
||||
|
||||
static const bvalue time_str_ktab[10] = {
|
||||
{ { .s=be_local_const_str(time_str_str_0) }, BE_STRING},
|
||||
@ -2199,13 +2134,13 @@ be_define_local_closure(time_str);
|
||||
** Solidified function: cmd
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(cmd_str_name, "cmd", -158181397, 0, 3, 0);
|
||||
be_define_local_const_str(cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(cmd_str_0, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str(cmd_str_1, "_cmd", -875145154, 0, 4, 0);
|
||||
be_define_local_const_str(cmd_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str(cmd_str_3, "instance", 193386898, 0, 8, 0);
|
||||
be_define_local_const_str(cmd_str_4, "response", 1499316702, 0, 8, 0);
|
||||
be_define_local_const_str2(cmd_str_name, "cmd", -158181397, 0, 3, 0);
|
||||
be_define_local_const_str2(cmd_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(cmd_str_0, "json", 916562499, 0, 4, 0);
|
||||
be_define_local_const_str2(cmd_str_1, "_cmd", -875145154, 0, 4, 0);
|
||||
be_define_local_const_str2(cmd_str_2, "load", -435725847, 0, 4, 0);
|
||||
be_define_local_const_str2(cmd_str_3, "instance", 193386898, 0, 8, 0);
|
||||
be_define_local_const_str2(cmd_str_4, "response", 1499316702, 0, 8, 0);
|
||||
|
||||
static const bvalue cmd_ktab[5] = {
|
||||
{ { .s=be_local_const_str(cmd_str_0) }, BE_STRING},
|
||||
@ -2240,7 +2175,7 @@ static const uint32_t cmd_code[19] = {
|
||||
static const bproto cmd_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
7, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -2268,7 +2203,7 @@ static const bproto cmd_proto = {
|
||||
static const bclosure cmd_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &cmd_proto, // proto
|
||||
@ -2293,11 +2228,11 @@ static const bclosure cmd_closure = {
|
||||
** Solidified function: get_light
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(get_light_str_name, "get_light", 381930476, 0, 9, 0);
|
||||
be_define_local_const_str(get_light_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(get_light_str_0, "tasmota.get_light() is deprecated, use light.get()", -769213649, 0, 50, 0);
|
||||
be_define_local_const_str(get_light_str_1, "light", -493019601, 0, 5, 0);
|
||||
be_define_local_const_str(get_light_str_2, "get", 1410115415, 0, 3, 0);
|
||||
be_define_local_const_str2(get_light_str_name, "get_light", 381930476, 0, 9, 0);
|
||||
be_define_local_const_str2(get_light_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(get_light_str_0, "tasmota.get_light() is deprecated, use light.get()", -769213649, 0, 50, 0);
|
||||
be_define_local_const_str2(get_light_str_1, "light", -493019601, 0, 5, 0);
|
||||
be_define_local_const_str2(get_light_str_2, "get", 1410115415, 0, 3, 0);
|
||||
|
||||
static const bvalue get_light_ktab[3] = {
|
||||
{ { .s=be_local_const_str(get_light_str_0) }, BE_STRING},
|
||||
@ -2327,7 +2262,7 @@ static const uint32_t get_light_code[16] = {
|
||||
static const bproto get_light_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
6, // nstack
|
||||
0, // nupvals
|
||||
2, // argc
|
||||
@ -2355,7 +2290,7 @@ static const bproto get_light_proto = {
|
||||
static const bclosure get_light_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &get_light_proto, // proto
|
||||
@ -2382,11 +2317,11 @@ static const bclosure get_light_closure = {
|
||||
** Solidified function: set_light
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(set_light_str_name, "set_light", -1118891144, 0, 9, 0);
|
||||
be_define_local_const_str(set_light_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(set_light_str_0, "tasmota.set_light() is deprecated, use light.set()", 2124937871, 0, 50, 0);
|
||||
be_define_local_const_str(set_light_str_1, "light", -493019601, 0, 5, 0);
|
||||
be_define_local_const_str(set_light_str_2, "set", -970520829, 0, 3, 0);
|
||||
be_define_local_const_str2(set_light_str_name, "set_light", -1118891144, 0, 9, 0);
|
||||
be_define_local_const_str2(set_light_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(set_light_str_0, "tasmota.set_light() is deprecated, use light.set()", 2124937871, 0, 50, 0);
|
||||
be_define_local_const_str2(set_light_str_1, "light", -493019601, 0, 5, 0);
|
||||
be_define_local_const_str2(set_light_str_2, "set", -970520829, 0, 3, 0);
|
||||
|
||||
static const bvalue set_light_ktab[3] = {
|
||||
{ { .s=be_local_const_str(set_light_str_0) }, BE_STRING},
|
||||
@ -2418,7 +2353,7 @@ static const uint32_t set_light_code[18] = {
|
||||
static const bproto set_light_proto = {
|
||||
NULL, // bgcobject *next
|
||||
8, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
8, // nstack
|
||||
0, // nupvals
|
||||
3, // argc
|
||||
@ -2446,7 +2381,7 @@ static const bproto set_light_proto = {
|
||||
static const bclosure set_light_closure = {
|
||||
NULL, // bgcobject *next
|
||||
36, // type
|
||||
GC_CONST, // marked
|
||||
0x08, // marked
|
||||
0, // nupvals
|
||||
NULL, // bgcobject *gray
|
||||
(bproto*) &set_light_proto, // proto
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include "be_string.h"
|
||||
#include "be_gc.h"
|
||||
|
||||
// temporary work-around
|
||||
#define be_define_local_const_str2(a,b,c,d,e,f) be_define_local_const_str(a,b,c,e)
|
||||
#ifdef USE_I2C
|
||||
|
||||
extern int b_wire_init(bvm *vm);
|
||||
@ -43,14 +45,14 @@ extern int b_wire_detect(bvm *vm);
|
||||
** Solidified function: read_bytes
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(read_bytes_str_name, "read_bytes", -718234123, 0, 10, 0);
|
||||
be_define_local_const_str(read_bytes_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(read_bytes_str_0, "_begin_transmission", -1515506120, 0, 19, 0);
|
||||
be_define_local_const_str(read_bytes_str_1, "_write", -2079504471, 0, 6, 0);
|
||||
be_define_local_const_str(read_bytes_str_2, "_end_transmission", -1057486896, 0, 17, 0);
|
||||
be_define_local_const_str(read_bytes_str_3, "_request_from", -329818692, 0, 13, 0);
|
||||
be_define_local_const_str(read_bytes_str_4, "_available", 1306196581, 0, 10, 0);
|
||||
be_define_local_const_str(read_bytes_str_5, "_read", 346717030, 0, 5, 0);
|
||||
be_define_local_const_str2(read_bytes_str_name, "read_bytes", -718234123, 0, 10, 0);
|
||||
be_define_local_const_str2(read_bytes_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(read_bytes_str_0, "_begin_transmission", -1515506120, 0, 19, 0);
|
||||
be_define_local_const_str2(read_bytes_str_1, "_write", -2079504471, 0, 6, 0);
|
||||
be_define_local_const_str2(read_bytes_str_2, "_end_transmission", -1057486896, 0, 17, 0);
|
||||
be_define_local_const_str2(read_bytes_str_3, "_request_from", -329818692, 0, 13, 0);
|
||||
be_define_local_const_str2(read_bytes_str_4, "_available", 1306196581, 0, 10, 0);
|
||||
be_define_local_const_str2(read_bytes_str_5, "_read", 346717030, 0, 5, 0);
|
||||
|
||||
static const bvalue read_bytes_ktab[6] = {
|
||||
{ { .s=be_local_const_str(read_bytes_str_0) }, BE_STRING},
|
||||
@ -141,11 +143,11 @@ const bclosure read_bytes_closure = {
|
||||
** Solidified function: write_bytes
|
||||
********************************************************************/
|
||||
|
||||
be_define_local_const_str(write_bytes_str_name, "write_bytes", 1227543792, 0, 11, 0);
|
||||
be_define_local_const_str(write_bytes_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str(write_bytes_str_0, "_begin_transmission", -1515506120, 0, 19, 0);
|
||||
be_define_local_const_str(write_bytes_str_1, "_write", -2079504471, 0, 6, 0);
|
||||
be_define_local_const_str(write_bytes_str_2, "_end_transmission", -1057486896, 0, 17, 0);
|
||||
be_define_local_const_str2(write_bytes_str_name, "write_bytes", 1227543792, 0, 11, 0);
|
||||
be_define_local_const_str2(write_bytes_str_source, "string", 398550328, 0, 6, 0);
|
||||
be_define_local_const_str2(write_bytes_str_0, "_begin_transmission", -1515506120, 0, 19, 0);
|
||||
be_define_local_const_str2(write_bytes_str_1, "_write", -2079504471, 0, 6, 0);
|
||||
be_define_local_const_str2(write_bytes_str_2, "_end_transmission", -1057486896, 0, 17, 0);
|
||||
|
||||
static const bvalue write_bytes_ktab[3] = {
|
||||
{ { .s=be_local_const_str(write_bytes_str_0) }, BE_STRING},
|
||||
|
@ -80,9 +80,9 @@ static void m_solidify_proto(bvm *vm, bproto *pr, const char * func_name, int bu
|
||||
}
|
||||
|
||||
/* create static strings for name and source */
|
||||
logfmt("be_define_local_const_str(%s_str_name, \"%s\", %i, 0, %u, 0);\n",
|
||||
logfmt("be_define_local_const_str(%s_str_name, \"%s\", %i, %u);\n",
|
||||
func_name, str(pr->name), be_strhash(pr->name), str_len(pr->name));
|
||||
logfmt("be_define_local_const_str(%s_str_source, \"%s\", %i, 0, %u, 0);\n",
|
||||
logfmt("be_define_local_const_str(%s_str_source, \"%s\", %i, %u);\n",
|
||||
func_name, func_source, be_strhash(pr->source), str_len(pr->source));
|
||||
|
||||
/* create static strings first */
|
||||
@ -95,7 +95,7 @@ static void m_solidify_proto(bvm *vm, bproto *pr, const char * func_name, int bu
|
||||
if (len >= 255) {
|
||||
be_raise(vm, "internal_error", "Strings greater than 255 chars not supported yet");
|
||||
}
|
||||
logfmt("\", %i, 0, %zu, 0);\n", be_strhash(pr->ktab[i].v.s), len >= 255 ? 255 : len);
|
||||
logfmt("\", %i, %zu);\n", be_strhash(pr->ktab[i].v.s), len >= 255 ? 255 : len);
|
||||
}
|
||||
}
|
||||
logfmt("\n");
|
||||
|
@ -252,11 +252,11 @@ typedef struct bntvmodule {
|
||||
|
||||
/* support for solidified berry functions */
|
||||
/* native const strings outside of global string hash */
|
||||
#define be_define_local_const_str(_name, _s, _hash, _extra, _len, _next) \
|
||||
#define be_define_local_const_str(_name, _s, _hash, _len) \
|
||||
static const bcstring be_local_const_str_##_name = { \
|
||||
.next = (bgcobject *)NULL, \
|
||||
.type = BE_STRING, \
|
||||
.marked = GC_CONST, \
|
||||
.marked = 0x08, /* GC_CONST */ \
|
||||
.extra = 0, \
|
||||
.slen = _len, \
|
||||
.hash = 0, \
|
||||
@ -297,7 +297,7 @@ typedef struct bntvmodule {
|
||||
static const bproto _name##_proto = { \
|
||||
NULL, /* bgcobject *next */ \
|
||||
8, /* type BE_PROTO */ \
|
||||
GC_CONST, /* marked outside of GC */ \
|
||||
0x08, /* marked outside of GC */ \
|
||||
(_nstack), /* nstack */ \
|
||||
BE_IIF(_is_upval)(sizeof(_name##_upvals)/sizeof(bupvaldesc),0),/* nupvals */ \
|
||||
(_argc), /* argc */ \
|
||||
@ -320,7 +320,7 @@ typedef struct bntvmodule {
|
||||
const bclosure _name##_closure = { \
|
||||
NULL, /* bgcobject *next */ \
|
||||
36, /* type BE_CLOSURE */ \
|
||||
GC_CONST, /* marked */ \
|
||||
0x08, /* marked GC_CONST */ \
|
||||
0, /* nupvals */ \
|
||||
NULL, /* bgcobject *gray */ \
|
||||
(bproto*) &_name##_proto, /* proto */ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user