4 printf "#ifndef PHP_PQ_TYPE\n"
5 printf "# define PHP_PQ_TYPE(t,o)\n"
10 printf "#ifndef PHP_PQ_TYPE_IS_ARRAY\n"
11 printf "# define PHP_PQ_TYPE_IS_ARRAY(oid) (\\\n\t\t0 \\\n"
13 printf "\t||\t((oid) == %d) \\\n", oid
17 printf "#ifndef PHP_PQ_TYPE_OF_ARRAY\n"
18 printf "# define PHP_PQ_TYPE_OF_ARRAY(oid) ("
20 printf "\\\n\t(oid) == %d ? %s : ", oid
, arrays
[oid
]
22 printf "0 \\\n)\n#endif\n"
24 printf "#ifndef PHP_PQ_DELIM_OF_ARRAY\n"
25 printf "# define PHP_PQ_DELIM_OF_ARRAY(oid) ("
27 printf "\\\n\t(oid) == %d ? '%s' : ", oid
, delims
[oid
]
29 printf "0 \\\n)\n#endif\n"
37 if (sub("^_", "", name
)) {
42 printf "#ifndef PHP_PQ_OID_%s\n", name
43 printf "# define PHP_PQ_OID_%s %d\n", name
, oid
45 printf "PHP_PQ_TYPE(\"%s\", %d)\n", name
, oid