summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2004-08-30 17:41:41 +0200
committerunknown <joerg@mysql.com>2004-08-30 17:41:41 +0200
commitfb724e532c60cdcb7a2260d347444f421dda90a5 (patch)
tree01452f8d0e889aaf6bc2aedd844314c9308fd615 /sql
parent88fe390a721e4bc92918f8571cdf8961dc340796 (diff)
downloadmariadb-git-fb724e532c60cdcb7a2260d347444f421dda90a5.tar.gz
If the system has 64 bit "long", then "long long" does not add new
functionality. The existing code takes advantage of this when "typedef"ing 'longlong' in 'my_global.h'. This holds for Alpha CPUs. If the compiler then has prototypes for C99 functions 'strtoll()' and 'strtoull()' but no implementation, the existing code in 'strtoull.c' collides with that prototype. These collisions are avoided now. (backport from 4.1) include/m_string.h: Extend the "fake" approach from 'strtoull()' onto 'strtoll()' (backport from 4.1). strings/strto.c: Ensure that calling file has included necessary headers, as these are needed at the upper level already (backport from 4.1). strings/strtol.c: Cleanup/alignment with the "long long" functions. strings/strtoll.c: When "long" is 64 bit already, system function 'strtol()' can be used. Header files 'my_global.h' and 'm_string.h' will manage that, if they are included early enough (backport from 4.1). strings/strtoul.c: Cleanup/alignment with the "long long" functions. strings/strtoull.c: When "long" is 64 bit already, system function 'strtoul()' can be used. Header files 'my_global.h' and 'm_string.h' will manage that, if they are included early enough (backport from 4.1).
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions