aboutsummaryrefslogtreecommitdiffstats
path: root/extension/spec_array.h
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-25 11:36:51 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-25 11:36:51 -0500
commit50c2afd6433f1c4407b04d2f75e536da7c94fe74 (patch)
tree2db32498ec56f72e41bb70fb34caf9659f628724 /extension/spec_array.h
parent1a4aaf18f5ec6149315aabc53dbe667f1abfdb62 (diff)
downloadegawk-50c2afd6433f1c4407b04d2f75e536da7c94fe74.tar.gz
egawk-50c2afd6433f1c4407b04d2f75e536da7c94fe74.tar.bz2
egawk-50c2afd6433f1c4407b04d2f75e536da7c94fe74.zip
New array extension.
Diffstat (limited to 'extension/spec_array.h')
-rw-r--r--extension/spec_array.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/extension/spec_array.h b/extension/spec_array.h
new file mode 100644
index 00000000..f75fc7ce
--- /dev/null
+++ b/extension/spec_array.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2012 the Free Software Foundation, Inc.
+ *
+ * This file is part of GAWK, the GNU implementation of the
+ * AWK Programming Language.
+ *
+ * GAWK is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * GAWK is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+
+typedef NODE *(*Fetch_func_t)(NODE *, NODE *, void *);
+typedef void(*Store_func_t)(NODE *, NODE *, NODE *, void *);
+typedef void(*Load_func_t)(NODE *, void *);
+extern void register_dyn_array(NODE *, Fetch_func_t, Store_func_t, void *);
+extern void register_deferred_array(NODE *, Load_func_t, void *);
+extern void *unregister_array_s(NODE *);