diff options
author | Sascha Schumann <sas@php.net> | 2003-02-12 19:38:10 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-02-12 19:38:10 +0000 |
commit | 0cb1ff3bdadd3f39f09b55b5a17c95f613b714e6 (patch) | |
tree | 89d6bdf6b8addf642a040e0c64faaaf990d60a7f /ext/fbsql/php_fbsql.c | |
parent | 8fee86786550af50275b978fa41b7c63d2bee5f0 (diff) | |
download | php-git-0cb1ff3bdadd3f39f09b55b5a17c95f613b714e6.tar.gz |
- trims +100 lines of code from spprintf.c
- introduces an overflow detection in STR_TO_DEC
- eliminates dead code (e.g. assert(foo); if (foo) {..})
- removes unused macros from the original code
- simplifies code (e.g. cc was completely dropped)
- improves run-time performance
The max_len feature is never used in our code base.
Nevertheless, cpu cycles were spent on each string
operation to check the current length against max_len which
is quite inefficient. Thus, I've moved the check to
vspprintf where it is applied only once per call.
Diffstat (limited to 'ext/fbsql/php_fbsql.c')
0 files changed, 0 insertions, 0 deletions