com php-src: optimize structs: ext/pdo_pgsql/php_pdo_pgsq l_int.h

From: Date: Wed, 15 Apr 2015 15:57:25 +0000
Subject: com php-src: optimize structs: ext/pdo_pgsql/php_pdo_pgsq l_int.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86285@lists.php.net to get a copy of this message
Commit: 0c6753bf6bc84ac189d2b8edcdb123d3155bcbf4 Author: Anatol Belski <ab@php.net> Wed, 15 Apr 2015 16:02:15 +0200 Parents: a01e8c1fe91e73539d9f9d23d8a49e66750ef73d Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0c6753bf6bc84ac189d2b8edcdb123d3155bcbf4 Log: optimize structs Changed paths: M ext/pdo_pgsql/php_pdo_pgsql_int.h Diff: diff --git a/ext/pdo_pgsql/php_pdo_pgsql_int.h b/ext/pdo_pgsql/php_pdo_pgsql_int.h index 6cad2a4..d25cbff 100644 --- a/ext/pdo_pgsql/php_pdo_pgsql_int.h +++ b/ext/pdo_pgsql/php_pdo_pgsql_int.h @@ -43,25 +43,24 @@ typedef struct { unsigned _reserved:31; pdo_pgsql_error_info einfo; Oid pgoid; + unsigned int stmt_counter; /* The following two variables have the same purpose. Unfortunately we need to keep track of two different attributes having the same effect. */ - int emulate_prepares; - int disable_native_prepares; /* deprecated since 5.6 */ - int disable_prepares; - unsigned int stmt_counter; + zend_bool emulate_prepares; + zend_bool disable_native_prepares; /* deprecated since 5.6 */ + zend_bool disable_prepares; } pdo_pgsql_db_handle; typedef struct { char *def; + zend_long intval; Oid pgsql_type; - zend_long intval; zend_bool boolval; } pdo_pgsql_column; typedef struct { pdo_pgsql_db_handle *H; PGresult *result; - int current_row; pdo_pgsql_column *cols; char *cursor_name; char *stmt_name; @@ -70,6 +69,7 @@ typedef struct { int *param_lengths; int *param_formats; Oid *param_types; + int current_row; zend_bool is_prepared; } pdo_pgsql_stmt;

« previous php.cvs (#86285) next »