1111 | license@php.net so we can mail you a copy immediately. |
1212 +----------------------------------------------------------------------+
1313 | Author: Simonov Denis <sim-mail@list.ru> |
14+ | Author: Martins Lazdans <marrtins@dqdp.net> |
1415 +----------------------------------------------------------------------+
1516*/
1617
2526#include " php_ibase_includes.h"
2627
2728/* Returns the client version. 0 bytes are minor version, 1 bytes are major version. */
28- extern " C" unsigned fb_get_client_version (void *master_ptr)
29+ extern " C" unsigned fbu_get_client_version (void *master_ptr)
2930{
3031 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
3132 Firebird::IUtil* util = master->getUtilInterface ();
3233 return util->getClientVersion ();
3334}
3435
35- extern " C" ISC_TIME fb_encode_time (void *master_ptr, unsigned hours, unsigned minutes, unsigned seconds, unsigned fractions)
36+ extern " C" ISC_TIME fbu_encode_time (void *master_ptr, unsigned hours, unsigned minutes, unsigned seconds, unsigned fractions)
3637{
3738 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
3839 Firebird::IUtil* util = master->getUtilInterface ();
3940 return util->encodeTime (hours, minutes, seconds, fractions);
4041}
4142
42- extern " C" ISC_DATE fb_encode_date (void *master_ptr, unsigned year, unsigned month, unsigned day)
43+ extern " C" ISC_DATE fbu_encode_date (void *master_ptr, unsigned year, unsigned month, unsigned day)
4344{
4445 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
4546 Firebird::IUtil* util = master->getUtilInterface ();
4647 return util->encodeDate (year, month, day);
4748}
4849
49- static void fb_copy_status (const ISC_STATUS* from, ISC_STATUS* to, size_t maxLength)
50+ static void fbu_copy_status (const ISC_STATUS* from, ISC_STATUS* to, size_t maxLength)
5051{
5152 for (size_t i=0 ; i < maxLength; ++i) {
5253 memcpy (to + i, from + i, sizeof (ISC_STATUS));
@@ -57,7 +58,7 @@ static void fb_copy_status(const ISC_STATUS* from, ISC_STATUS* to, size_t maxLen
5758}
5859
5960/* Decodes a time with time zone into its time components. */
60- extern " C" void fb_decode_time_tz (void *master_ptr, const ISC_TIME_TZ* timeTz, unsigned * hours, unsigned * minutes, unsigned * seconds, unsigned * fractions,
61+ extern " C" void fbu_decode_time_tz (void *master_ptr, const ISC_TIME_TZ* timeTz, unsigned * hours, unsigned * minutes, unsigned * seconds, unsigned * fractions,
6162 unsigned timeZoneBufferLength, char * timeZoneBuffer)
6263{
6364 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
@@ -69,7 +70,7 @@ extern "C" void fb_decode_time_tz(void *master_ptr, const ISC_TIME_TZ* timeTz, u
6970}
7071
7172/* Decodes a timestamp with time zone into its date and time components */
72- extern " C" void fb_decode_timestamp_tz (void *master_ptr, const ISC_TIMESTAMP_TZ* timestampTz,
73+ extern " C" void fbu_decode_timestamp_tz (void *master_ptr, const ISC_TIMESTAMP_TZ* timestampTz,
7374 unsigned * year, unsigned * month, unsigned * day,
7475 unsigned * hours, unsigned * minutes, unsigned * seconds, unsigned * fractions,
7576 unsigned timeZoneBufferLength, char * timeZoneBuffer)
@@ -83,7 +84,7 @@ extern "C" void fb_decode_timestamp_tz(void *master_ptr, const ISC_TIMESTAMP_TZ*
8384 timeZoneBufferLength, timeZoneBuffer);
8485}
8586
86- extern " C" int fb_insert_aliases (void *master_ptr, ISC_STATUS* st, ibase_query *ib_query, void *statement_ptr)
87+ extern " C" int fbu_insert_aliases (void *master_ptr, ISC_STATUS* st, ibase_query *ib_query, void *statement_ptr)
8788{
8889 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
8990 Firebird::ThrowStatusWrapper status (master->getStatus ());
@@ -105,15 +106,15 @@ extern "C" int fb_insert_aliases(void *master_ptr, ISC_STATUS* st, ibase_query *
105106 catch (const Firebird::FbException& error)
106107 {
107108 if (status.hasData ()) {
108- fb_copy_status ((const ISC_STATUS*)status.getErrors (), st, 20 );
109+ fbu_copy_status ((const ISC_STATUS*)status.getErrors (), st, 20 );
109110 return st[1 ];
110111 }
111112 }
112113
113114 return 0 ;
114115}
115116
116- extern " C" int fb_insert_field_info (void *master_ptr, ISC_STATUS* st, int is_outvar, int num,
117+ extern " C" int fbu_insert_field_info (void *master_ptr, ISC_STATUS* st, int is_outvar, int num,
117118 zval *into_array, void *statement_ptr)
118119{
119120 Firebird::IMaster* master = (Firebird::IMaster*)master_ptr;
@@ -141,7 +142,7 @@ extern "C" int fb_insert_field_info(void *master_ptr, ISC_STATUS* st, int is_out
141142 catch (const Firebird::FbException& error)
142143 {
143144 if (status.hasData ()) {
144- fb_copy_status ((const ISC_STATUS*)status.getErrors (), st, 20 );
145+ fbu_copy_status ((const ISC_STATUS*)status.getErrors (), st, 20 );
145146 return st[1 ];
146147 }
147148 }
0 commit comments