alberth
604e56adc2
(svn r20025) -Doc: Fix/add comments to let Doxygen know about the documentation.
14 years ago
rubidium
be79aba6eb
(svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille)
14 years ago
rubidium
e3df7caf18
(svn r19874) -Fix [FS#3845]: NetBSD compilation was still broken in some cases (Krille)
14 years ago
rubidium
dcf7d2de54
(svn r19703) -Add: hexadecimal string filter
14 years ago
rubidium
8aad995e32
(svn r19703) -Add: hexadecimal string filter
14 years ago
rubidium
7e05c1fcd0
(svn r19158) -Fix (r19149): MSVC 64 bits compile warning
15 years ago
rubidium
3c5d19e411
(svn r19158) -Fix (r19149): MSVC 64 bits compile warning
15 years ago
rubidium
7353e104ba
(svn r19149) -Codechange: make our vsnprintf implementation for Windows more POSIX compliant (adf88)
15 years ago
rubidium
a6112670d0
(svn r19149) -Codechange: make our vsnprintf implementation for Windows more POSIX compliant (adf88)
15 years ago
rubidium
28cc56d11d
(svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added characters excluding '\0' on truncation (adf88)
15 years ago
rubidium
1b0e78c588
(svn r19148) -Fix [FS#3627]: [v]seprintf should return the number of added characters excluding '\0' on truncation (adf88)
15 years ago
glx
47636b3093
(svn r18919) -Fix (r15371): strcasestr() return should not be const
15 years ago
glx
918b3aff5e
(svn r18919) -Fix (r15371): strcasestr() return should not be const
15 years ago
rubidium
c3525c3c5c
(svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list
15 years ago
rubidium
a5d005dd53
(svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list
15 years ago
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
510541afac
(svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary.
15 years ago
rubidium
dc161c72e0
(svn r15963) -Fix [FS#2814]: (v)seprintf chopped of strings one character earlier than necessary.
15 years ago
rubidium
c3e87f345d
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
15 years ago
rubidium
b25a4f8231
(svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too
15 years ago
rubidium
34bd9ee636
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
15 years ago
rubidium
86ca408d46
(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
15 years ago
smatz
9c6d6c0d0e
(svn r15625) -Codechange: remove unneeded assert
15 years ago
smatz
c3a7e6b693
(svn r15625) -Codechange: remove unneeded assert
15 years ago
rubidium
057ceec51c
(svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network.
16 years ago
rubidium
13bc604fde
(svn r15537) -Fix (r5215): don't allow special sprite characters (e.g. the ship sprite) as characters in input like filenames or text that is sent over the network.
16 years ago
rubidium
e856287029
(svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances.
16 years ago
rubidium
cecc3863cd
(svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances.
16 years ago
rubidium
0ffb019103
(svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined.
16 years ago
rubidium
35c5da08c5
(svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined.
16 years ago
glx
47a61fb10c
(svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel
16 years ago
glx
6d6e2232ea
(svn r15316) -Fix [NoAI]: ignore unprintable chars when returning a string to squirrel
16 years ago
smatz
9021c20b5e
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
rubidium
1bc8e3f536
(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
16 years ago
rubidium
07e135547e
(svn r15135) -Fix/Change: allow str_validate (part of receiving strings from the network) to pass newlines instead of replacing them with question marks, but only when asked to do so.
16 years ago
rubidium
28ea38ae55
(svn r14949) -Cleanup: pointer coding style
16 years ago
rubidium
11da45ee55
(svn r14949) -Cleanup: pointer coding style
16 years ago
skidd13
609a635fac
(svn r14557) -Codechange: Remove a redundant line of code
16 years ago
skidd13
6d94be75e9
(svn r14557) -Codechange: Remove a redundant line of code
16 years ago
skidd13
5b62536381
(svn r14546) -Codechange: Unify string(cpy|cat) functions
...
-Doc: string(cpy|cat) functions
16 years ago
skidd13
38efdc8222
(svn r14546) -Codechange: Unify string(cpy|cat) functions
...
-Doc: string(cpy|cat) functions
16 years ago
rubidium
56d0990d62
(svn r14541) -Fix (r14540): mingw didn't like it :(
16 years ago
rubidium
da0a0ef8ca
(svn r14541) -Fix (r14540): mingw didn't like it :(
16 years ago
rubidium
0d2f84e117
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
16 years ago
rubidium
0d254e8914
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
16 years ago
glx
4bb40a7d44
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
16 years ago
glx
2ddb86eea5
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
16 years ago
rubidium
1ce0b03bf0
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
16 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
16 years ago
rubidium
90acd52f22
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
17 years ago
rubidium
b09d957f31
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
rubidium
a3ccdcea36
(svn r11777) -Codechange: split the string header and make do not include it when it's not necessary.
17 years ago
glx
3265ed1b70
(svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
17 years ago
glx
6f7f4adffc
(svn r11744) -Codechange: don't redefine snprintf when using MinGW Runtime 3.14 or superior, as it now have snprintf() and vsnprintf conform to C99
17 years ago
rubidium
81bf9f8503
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago
rubidium
00c9d3ef20
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
bf98e25e43
(svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed.
17 years ago
rubidium
8ebdfb258f
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
rubidium
01e20c9140
(svn r11674) -Codechange: refactor some functions out of macros.h into more logical locations.
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
71c4325c50
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
rubidium
c598d1b446
(svn r10566) -Fix [FS#1025]: a NewGRF could have a information message that is too long for the internal buffers to handle. We should not crash on such a case even though the message is too big for the window anyway.
17 years ago
rubidium
197245eefe
(svn r10566) -Fix [FS#1025]: a NewGRF could have a information message that is too long for the internal buffers to handle. We should not crash on such a case even though the message is too big for the window anyway.
17 years ago
belugas
6a86e75870
(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near
17 years ago
belugas
dfe5533db6
(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near
17 years ago
Darkvater
a59eec1c36
(svn r9083) -Codechange: Be more lenient when trimming UTF-8 strings and don't terminate the string when an invalid encoding is encountered, but only focus on maximum length.
18 years ago
Darkvater
3b3c7554b7
(svn r9083) -Codechange: Be more lenient when trimming UTF-8 strings and don't terminate the string when an invalid encoding is encountered, but only focus on maximum length.
18 years ago
tron
30d1b223c8
(svn r9015) -Fix
...
NL at EOF
18 years ago
tron
e092b2d8c7
(svn r9015) -Fix
...
NL at EOF
18 years ago
Darkvater
2ff94ab000
(svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
...
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
18 years ago
Darkvater
915ae8ffc2
(svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
...
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
18 years ago
Darkvater
95024bb21c
(svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it.
18 years ago
Darkvater
5ed33e549e
(svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it.
18 years ago
Darkvater
47a7b714e3
(svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'...
18 years ago
Darkvater
c09b7e7fac
(svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'...
18 years ago
Darkvater
1b6467b0e3
(svn r8089) -[win32] MS-borkedness: All *nprintf functions are broken, but we didn't test to fix it ourselves when 'len = count'.
18 years ago
Darkvater
120f57b865
(svn r8089) -[win32] MS-borkedness: All *nprintf functions are broken, but we didn't test to fix it ourselves when 'len = count'.
18 years ago
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
18 years ago
KUDr
33be1ecfb1
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
18 years ago
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
18 years ago
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago
KUDr
e373ea7096
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
18 years ago