]> granicus.if.org Git - php/commit
- trims +100 lines of code from spprintf.c
authorSascha Schumann <sas@php.net>
Wed, 12 Feb 2003 19:38:10 +0000 (19:38 +0000)
committerSascha Schumann <sas@php.net>
Wed, 12 Feb 2003 19:38:10 +0000 (19:38 +0000)
commit0cb1ff3bdadd3f39f09b55b5a17c95f613b714e6
tree89d6bdf6b8addf642a040e0c64faaaf990d60a7f
parent8fee86786550af50275b978fa41b7c63d2bee5f0
- 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.
main/spprintf.c