summaryrefslogtreecommitdiffstats
path: root/src/vmtbl.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-03-15 11:53:42 -0300
committermongo <andmarti@gmail.com>2017-03-15 11:53:42 -0300
commitc2c258889f95ddae8e4b5cfedd07878031857bf1 (patch)
treeecff666178c40721bc3f9c9feaedbe1dc65615d7 /src/vmtbl.c
parent814ba1072df3d7b73d10d4c71ac2d3835878aa1c (diff)
moved ATBL to vmtbl.c
Diffstat (limited to 'src/vmtbl.c')
-rw-r--r--src/vmtbl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vmtbl.c b/src/vmtbl.c
index 146381a..e22af55 100644
--- a/src/vmtbl.c
+++ b/src/vmtbl.c
@@ -6,6 +6,7 @@
#include "macros.h"
#include "color.h" // for set_ucolor
#include "conf.h" // for set_ucolor
+#include "trigger.h"
#include <stdlib.h> // for atoi
//LINUX - PSC not def
@@ -196,3 +197,14 @@ int growtbl(int rowcol, int toprow, int topcol) {
maxcols = newcols;
return (TRUE);
}
+
+struct ent ** ATBL(struct ent ***tbl, int row, int col) {
+ struct ent **ent=(*(tbl+row)+(col));
+ struct ent *v= *ent;
+
+ if ((v) && (v->trigger) && ((v->trigger->flag & TRG_READ) == TRG_READ))
+ do_trigger(v,TRG_READ);
+ return ent;
+}
+
+