summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/new_pque.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/examples/new_pque.c b/examples/new_pque.c
index 1f968f4c..b6226582 100644
--- a/examples/new_pque.c
+++ b/examples/new_pque.c
@@ -1,15 +1,7 @@
-#include <stc/forward.h>
-
-forward_cpque(cpque_pnt, struct Point);
-
-struct MyStruct {
- cpque_pnt priority_queue;
- int id;
-};
+#include <stdio.h>
#define i_val int
#include <stc/cstack.h>
-
#define i_val int
#include <stc/cpque.h>
@@ -22,11 +14,9 @@ int Point_cmp(const Point* a, const Point* b) {
#define i_val Point
#define i_cmp Point_cmp
-#define i_opt c_is_fwd
#define i_tag pnt
#include <stc/cpque.h>
-#include <stdio.h>
int main()
{