Skip to content

Commit 2680fb4

Browse files
author
Ard Biesheuvel
committed
CS
1 parent f1141d7 commit 2680fb4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ext/interbase/php_ibase_includes.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
/* $Id$ */
2222

23-
#ifndef INTERBASE_H
24-
#define INTERBASE_H
23+
#ifndef PHP_IBASE_INCLUDES_H
24+
#define PHP_IBASE_INCLUDES_H
2525

2626
#include <ibase.h>
2727

@@ -42,7 +42,7 @@ typedef unsigned long long ISC_UINT64;
4242
#endif /* PHP_WIN32 */
4343
#endif /* SQL_DIALECT_CURRENT */
4444

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)
4646

4747
#define IB_STATUS (IBG(status))
4848

@@ -197,16 +197,16 @@ int _php_ibase_blob_add(zval **string_arg, ibase_blob *ib_blob TSRMLS_DC);
197197

198198
void _php_ibase_error(TSRMLS_D);
199199
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);
201201

202202
/* 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; } \
210210
} while (0)
211211

212212
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);
219219
#define max(a,b) ((a)>(b)?(a):(b))
220220
#endif
221221

222-
#endif /* INTERBASE_H */
222+
#endif /* PHP_IBASE_INCLUDES_H */
223223

224224
/*
225225
* Local variables:

0 commit comments

Comments
 (0)