2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
14 #ifndef PHP_PQ_ERROR_H
15 #define PHP_PQ_ERROR_H
19 typedef int STATUS
; /* SUCCESS/FAILURE */
21 /* trim LF from EOL */
25 const char *strmode(long mode
);
27 /* compare array index */
28 int compare_index(const void *lptr
, const void *rptr TSRMLS_DC
);
30 #define PHP_PQerrorMessage(c) rtrim(PQerrorMessage((c)))
31 #define PHP_PQresultErrorMessage(r) rtrim(PQresultErrorMessage((r)))
33 int php_pq_types_to_array(HashTable
*ht
, Oid
**types TSRMLS_DC
);
34 int php_pq_params_to_array(HashTable
*ht
, char ***params
, HashTable
*zdtor TSRMLS_DC
);
43 * vim600: noet sw=4 ts=4 fdm=marker
44 * vim<600: noet sw=4 ts=4