]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Added GAVL debugging (currently commented out)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 29 Jan 2009 09:48:38 +0000 (10:48 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 29 Jan 2009 09:48:38 +0000 (10:48 +0100)
fres/cbroker/Makefile.omk
fres/cbroker/fcb.c
fres/cbroker/fcb_contract_gavl.c [new file with mode: 0644]

index 926e3c34e732fb1ba74eca0df27bc51f1de4dac6..0ac35169354627e59a2f3dc1f79a93d00b7d0e9b 100644 (file)
@@ -12,3 +12,8 @@ include_GEN_HEADERS += fcb.h
 default_CONFIG = CONFIG_FCB_INET=y
 
 LOCAL_CONFIG_H = fcb_config.h
+
+# include-pass_HOOKS = fcb_contract_gavl.inc
+
+# fcb_contract_gavl.inc: $(SOURCES_DIR)/fcb_contract_gavl.c
+#      $(c_o_COMPILE) -E -P $< | indent | sed -e '0,/__cut_here__/d' > $@
index 194e37624d2028f7c909d0e74cd31b7d52c371f3..bb6d25309137a4e8222b8d8cc6ade5949f388937 100644 (file)
@@ -200,6 +200,7 @@ GAVL_CUST_NODE_INT_DEC(fcb_contract         /* cust_prefix */,              \
                       id                   /* cust_item_key */,        \
                       fres_contract_id_cmp /* cust_cmp_fnc */);
 
+#if 1
 GAVL_CUST_NODE_INT_IMP(fcb_contract         /* cust_prefix */,         \
                       struct fcb           /* cust_root_t */,          \
                       struct fcb_contract  /* cust_item_t */,          \
@@ -208,6 +209,9 @@ GAVL_CUST_NODE_INT_IMP(fcb_contract         /* cust_prefix */,              \
                       node                 /* cust_item_node */,       \
                       id                   /* cust_item_key */,        \
                       fres_contract_id_cmp /* cust_cmp_fnc */);
+#else
+#include "fcb_contract_gavl.inc"
+#endif
 
 
 #define o2fcb(o) (struct fcb*)forb_instance_data(o)
diff --git a/fres/cbroker/fcb_contract_gavl.c b/fres/cbroker/fcb_contract_gavl.c
new file mode 100644 (file)
index 0000000..68744db
--- /dev/null
@@ -0,0 +1,13 @@
+#include <ul_gavlcust.h>
+
+___cut_here___;
+
+
+GAVL_CUST_NODE_INT_IMP(fcb_contract         /* cust_prefix */,         \
+                      struct fcb           /* cust_root_t */,          \
+                      struct fcb_contract  /* cust_item_t */,          \
+                      fres_contract_id_t   /* cust_key_t */,           \
+                      contracts            /* cust_root_node */,       \
+                      node                 /* cust_item_node */,       \
+                      id                   /* cust_item_key */,        \
+                      fres_contract_id_cmp /* cust_cmp_fnc */);