20
20
21
21
/* $Id$ */
22
22
23
- #ifndef INTERBASE_H
24
- #define INTERBASE_H
23
+ #ifndef PHP_IBASE_INCLUDES_H
24
+ #define PHP_IBASE_INCLUDES_H
25
25
26
26
#include <ibase.h>
27
27
@@ -42,7 +42,7 @@ typedef unsigned long long ISC_UINT64;
42
42
#endif /* PHP_WIN32 */
43
43
#endif /* SQL_DIALECT_CURRENT */
44
44
45
- #define RESET_ERRMSG { IBG(errmsg)[0] = '\0'; IBG(sql_code) = 0; }
45
+ #define RESET_ERRMSG do { IBG(errmsg)[0] = '\0'; IBG(sql_code) = 0; } while (0)
46
46
47
47
#define IB_STATUS (IBG(status))
48
48
@@ -197,16 +197,16 @@ int _php_ibase_blob_add(zval **string_arg, ibase_blob *ib_blob TSRMLS_DC);
197
197
198
198
void _php_ibase_error (TSRMLS_D );
199
199
void _php_ibase_module_error (char * TSRMLS_DC , ...)
200
- PHP_ATTRIBUTE_FORMAT (printf ,1 ,PHP_ATTR_FMT_OFFSET + 2 );
200
+ PHP_ATTRIBUTE_FORMAT (printf ,1 ,PHP_ATTR_FMT_OFFSET + 2 );
201
201
202
202
/* determine if a resource is a link or transaction handle */
203
- #define PHP_IBASE_LINK_TRANS (pzval , lh , th ) \
204
- do { if (!pzval) { \
205
- ZEND_FETCH_RESOURCE2(lh, ibase_db_link *, NULL, IBG(default_link), \
206
- "InterBase link", le_link, le_plink) } \
207
- else \
208
- _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &pzval, &lh, &th); \
209
- if (SUCCESS != _php_ibase_def_trans(lh, &th TSRMLS_CC)) { RETURN_FALSE; } \
203
+ #define PHP_IBASE_LINK_TRANS (pzval , lh , th ) \
204
+ do { if (!pzval) { \
205
+ ZEND_FETCH_RESOURCE2(lh, ibase_db_link *, NULL, IBG(default_link), \
206
+ "InterBase link", le_link, le_plink) } \
207
+ else \
208
+ _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &pzval, &lh, &th); \
209
+ if (SUCCESS != _php_ibase_def_trans(lh, &th TSRMLS_CC)) { RETURN_FALSE; } \
210
210
} while (0)
211
211
212
212
int _php_ibase_def_trans (ibase_db_link * ib_link , ibase_trans * * trans TSRMLS_DC );
@@ -219,7 +219,7 @@ void _php_ibase_event_free(char *event_buf, char *result_buf);
219
219
#define max (a ,b ) ((a)>(b)?(a):(b))
220
220
#endif
221
221
222
- #endif /* INTERBASE_H */
222
+ #endif /* PHP_IBASE_INCLUDES_H */
223
223
224
224
/*
225
225
* Local variables:
0 commit comments