]> git.mdlowis.com Git - proto/gir.git/commitdiff
Added gc interface functions it internals header
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 22 Aug 2015 16:28:09 +0000 (12:28 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 22 Aug 2015 16:28:09 +0000 (12:28 -0400)
source/gc.c [new file with mode: 0644]
source/gir_internals.h
source/parser.c

diff --git a/source/gc.c b/source/gc.c
new file mode 100644 (file)
index 0000000..a454742
--- /dev/null
@@ -0,0 +1,21 @@
+#include "gir_internals.h"
+
+void gc_init(void** stkbtm) {
+    (void)stkbtm;
+}
+
+void gc_deinit(void) {
+}
+
+void* gc_alloc(size_t sz) {
+    (void)sz;
+    return NULL;
+}
+
+void gc_addref(void* obj) {
+    (void)obj;
+}
+
+void gc_delfref(void* obj) {
+    (void)obj;
+}
index 6248ddddc101e804b698c8395e46cce216e88394..f4cd95ba6b7dbf73c8caaf2838e6ec94f9a0bc55 100644 (file)
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdio.h>
+#include <ctype.h>
+
+/******************************************************************************
+ * Garbage Collection
+ *****************************************************************************/
+void gc_init(void** stkbtm);
+void gc_deinit(void);
+void* gc_alloc(size_t sz);
+void gc_addref(void* obj);
+void gc_delfref(void* obj);
 
 /******************************************************************************
  * Singly Linked List
index afbca1d09714390b7c32b5bcc877fa8360638f25..119243961f3b4ed4dcc05afa8275f7a78ee272fc 100644 (file)
@@ -1,13 +1,7 @@
 /**
   @file parser.c
 */
-//#include "parser.h"
-#include "slist.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdint.h>
+#include "gir_internals.h"
 
 #define UNKNOWN     0
 #define SYMBOL      1