summaryrefslogtreecommitdiffstats
path: root/src/sc.h
diff options
context:
space:
mode:
authorandmarti1424 <andmarti@gmail.com>2017-03-14 22:49:52 -0300
committerandmarti1424 <andmarti@gmail.com>2017-03-14 22:49:52 -0300
commit387ca866ee6a411bdf46ed4be1f0b3055dfa65e0 (patch)
tree28e6a35455d82458d993af4108c573cc2ff0fe6b /src/sc.h
parent565c188e04e62015d2400ba44db8a45a93e613cd (diff)
Merge of @roman65536 LUA work
Diffstat (limited to 'src/sc.h')
-rw-r--r--src/sc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sc.h b/src/sc.h
index b3da7be..dfd81f2 100644
--- a/src/sc.h
+++ b/src/sc.h
@@ -4,7 +4,9 @@
#include <stdio.h>
#include <memory.h>
-#define ATBL(tbl, row, col) (*(tbl + row) + (col))
+//#define ATBL(tbl, row, col) (*(tbl + row) + (col))
+extern struct ent ** ATBL(struct ent ***,int ,int );
+
#define MINROWS 100 /* minimum size at startup */
/* MAX rows size of sheet. Default 65536. */
@@ -72,6 +74,7 @@ struct ent {
char * format; /* printf format for this cell */
char cellerror; /* error in a cell? */
struct ucolor * ucolor;
+ struct trigger * trigger;
int pad; // padding between other cells
};
@@ -227,8 +230,9 @@ struct go_save {
#define CHR (OP_BASE + 79)
#define SET8BIT (OP_BASE + 80)
#define REPLACE (OP_BASE + 81)
-#define FROW (OP_BASE + 82)
-#define FCOL (OP_BASE + 83)
+#define FROW (OP_BASE + 82)
+#define FCOL (OP_BASE + 83)
+#define LUA (OP_BASE + 84)
/* flag values */
#define is_valid 0001