X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=php_pq_type.awk;h=93c4a8db75688e2884358155f0d484b4e23c6972;hp=b5d07b4d53c1a6e5707a5265610ef82bbbc4b9ae;hb=34c095436315742ca4af4b671f54ad235b905c6f;hpb=d3fbce1b02b41d7ee1f3d0b60dc8df411aae7d79 diff --git a/php_pq_type.awk b/php_pq_type.awk index b5d07b4..93c4a8d 100755 --- a/php_pq_type.awk +++ b/php_pq_type.awk @@ -13,20 +13,20 @@ END { printf "\t||\t((oid) == %d) \\\n", oid } printf ")\n#endif\n" - + printf "#ifndef PHP_PQ_TYPE_OF_ARRAY\n" printf "# define PHP_PQ_TYPE_OF_ARRAY(oid) (" for (oid in arrays) { printf "\\\n\t(oid) == %d ? %s : ", oid, arrays[oid] } printf "0 \\\n)\n#endif\n" - + printf "#ifndef PHP_PQ_DELIM_OF_ARRAY\n" printf "# define PHP_PQ_DELIM_OF_ARRAY(oid) (" for (oid in delims) { printf "\\\n\t(oid) == %d ? '%s' : ", oid, delims[oid] } - printf "0 \\\n)\n#endif\n" + printf "\\\n\t0 \\\n)\n#endif\n" } /^DATA/ {