move all code relative to readline into separate file (2)
[calc.git] / element.h
index 54679784a1b819a1c8ff65b829318cd2e37a55f9..03b8128d72fbe943fe87a0d00ac55bee5780d573 100644 (file)
--- a/element.h
+++ b/element.h
@@ -1,8 +1,6 @@
 #ifndef __ELEMENT_H__
 #define __ELEMENT_H__
 
-/* global variables */
-
 /* function type */
 
 typedef enum {
@@ -36,6 +34,20 @@ typedef struct _keyword_t {
     float prio;
 } keyword_t;
 
+/* global variables */
+
+#define NB_OPERATORS 14
+extern keyword_t operators[];
+
+#define NB_FUNCTIONS 56
+extern keyword_t functions[];
+
+#define NB_CONSTANTS 3
+extern keyword_t constants[];
+
+#define NB_SYMBOLS 4
+extern char *symbols[];
+
 /* calculus element type */
 
 typedef struct _element_t {