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
16 printf "#ifndef PHP_PQ_TYPE_OF_ARRAY\n"
17 printf "# define PHP_PQ_TYPE_OF_ARRAY(oid) ("
19 printf "\\\n\t(oid) == %d ? %s : ", oid
, arrays
[oid
]
21 printf "0 \\\n)\n#endif\n"
28 if (sub("^_", "", name
)) {
32 printf "#ifndef PHP_PQ_OID_%s\n", name
33 printf "# define PHP_PQ_OID_%s %d\n", name
, oid
35 printf "PHP_PQ_TYPE(\"%s\", %d)\n", name
, oid