#!/usr/bin/env php \w+) => \'(?P(?:[^\']|(?<=\\\\)\')+)\'/', $set_data, $set_matches)) { fprintf(STDERR, "Failed matching key value pairs in set: '%s'\n", $set_data); continue; } $set = array_combine($set_matches["key"], $set_matches["val"]); $ucn = strtoupper($set["typname"]); $typ[$set["oid"]] = $ucn; if (isset($set["array_type_oid"])) { $arr[$set["array_type_oid"]] = $set["oid"]; $typ[$set["array_type_oid"]] = $ucn . "ARRAY"; } if (isset($set["typdelim"])) { $delims[$set["oid"]] = $delims[$set["array_type_oid"]] = $set["typdelim"]; } } ksort($typ, SORT_NUMERIC); ksort($arr, SORT_NUMERIC); ?> /* Generated file. See scripts/gen_pq_type-pq11.php */ #ifndef PHP_PQ_TYPE # define PHP_PQ_TYPE(t,o) #endif $ucn) : ?> #ifndef PHP_PQ_OID_ # define PHP_PQ_OID_ #endif PHP_PQ_TYPE("", ) #ifndef PHP_PQ_TYPE_IS_ARRAY # define PHP_PQ_TYPE_IS_ARRAY(oid) ( \ 0 \ $type) : ?> || ((oid) == ) \ ) #endif #ifndef PHP_PQ_TYPE_OF_ARRAY # define PHP_PQ_TYPE_OF_ARRAY(oid) ( \ $type) : ?> (oid) == ? : \ 0 \ ) #endif #ifndef PHP_PQ_DELIM_OF_ARRAY # define PHP_PQ_DELIM_OF_ARRAY(oid) ((char) ( \ $delim) : ?> (oid) == ? '' : \ ',' \ )) #endif