Commit ec6f4ebc543c3f4c24dec72a07f5f93dc63a749d

Authored by Salvador Abreu
1 parent a5ffa1f0
Exists in master

Include fz/examples in sources (similar to bench)

Generate fd_init() call
1 SRC = src 1 SRC = src
2 -VPATH = $(SRC):bench 2 +VPATH = $(SRC):bench:fz/examples
3 3
4 ARCH = $(shell uname -s) 4 ARCH = $(shell uname -s)
5 5
@@ -74,7 +74,10 @@ else @@ -74,7 +74,10 @@ else
74 endif 74 endif
75 75
76 76
77 -FDC_SRCS = $(subst bench/,,$(wildcard bench/*.c)) 77 +FDC_SRCS = \
  78 + $(subst bench/,,$(wildcard bench/*.c)) \
  79 + $(subst fz/examples/,,$(wildcard fz/examples/*.c))
  80 +
78 FDC_NAMES = $(subst .c,,$(FDC_SRCS)) 81 FDC_NAMES = $(subst .c,,$(FDC_SRCS))
79 FDC_BINS = $(FDC_NAMES) x 82 FDC_BINS = $(FDC_NAMES) x
80 83
fz/examples/aust-paccs.c
@@ -4,6 +4,8 @@ int main(int argc, char *argv[]) @@ -4,6 +4,8 @@ int main(int argc, char *argv[])
4 { 4 {
5 int i, j; 5 int i, j;
6 6
  7 + fd_init (&argc, &argv);
  8 +
7 fd_int t = fd_new(1, 3); 9 fd_int t = fd_new(1, 3);
8 fd_int v = fd_new(1, 3); 10 fd_int v = fd_new(1, 3);
9 fd_int nsw = fd_new(1, 3); 11 fd_int nsw = fd_new(1, 3);
fz/paccs/output.pl
@@ -121,7 +121,8 @@ cg_prefix --> @@ -121,7 +121,8 @@ cg_prefix -->
121 "#include \"paccs.h\"\n\n", 121 "#include \"paccs.h\"\n\n",
122 "int main(int argc, char *argv[])\n", 122 "int main(int argc, char *argv[])\n",
123 "{\n", 123 "{\n",
124 - " int i, j;\n". 124 + " int i, j;\n\n",
  125 + " fd_init (&argc, &argv);\n".
125 126
126 cg_suffix --> 127 cg_suffix -->
127 "}\n". 128 "}\n".