author | peter1138 |
Mon, 06 Nov 2006 22:06:29 +0000 | |
changeset 5041 | 6e292440425f |
parent 4914 | 5e36af0cfb1d |
child 5101 | 797a070e5b22 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
3 |
#include "stdafx.h" |
4912
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
4 |
#include "openttd.h" |
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
5 |
#include "functions.h" |
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
6 |
#include "string.h" |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
7 |
|
2234 | 8 |
#include <stdarg.h> |
4200
a45420ba0c23
(svn r5684) - Codechange: create an strtolower() function that uses tolower() on a whole string and apply it in the places this was used.
Darkvater
parents:
2775
diff
changeset
|
9 |
#include <ctype.h> // required for tolower() |
2234 | 10 |
|
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
11 |
void ttd_strlcat(char *dst, const char *src, size_t size) |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
12 |
{ |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
13 |
assert(size > 0); |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
14 |
for (; size > 0 && *dst != '\0'; --size, ++dst) {} |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
15 |
assert(size > 0); |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
16 |
while (--size > 0 && *src != '\0') *dst++ = *src++; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
17 |
*dst = '\0'; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
18 |
} |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
19 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
20 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
21 |
void ttd_strlcpy(char *dst, const char *src, size_t size) |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
22 |
{ |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
23 |
assert(size > 0); |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
24 |
while (--size > 0 && *src != '\0') *dst++ = *src++; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
25 |
*dst = '\0'; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
26 |
} |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
27 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
28 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
29 |
char* strecat(char* dst, const char* src, const char* last) |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
30 |
{ |
4912
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
31 |
assert(dst <= last); |
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
32 |
for (; *dst != '\0'; ++dst) |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
33 |
if (dst == last) return dst; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
34 |
for (; *src != '\0' && dst != last; ++dst, ++src) *dst = *src; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
35 |
*dst = '\0'; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
36 |
return strecpy(dst, src, last); |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
37 |
} |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
38 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
39 |
|
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
40 |
char* strecpy(char* dst, const char* src, const char* last) |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
41 |
{ |
4912
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
42 |
assert(dst <= last); |
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
43 |
for (; *src != '\0' && dst != last; ++dst, ++src) *dst = *src; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
44 |
*dst = '\0'; |
4914
5e36af0cfb1d
(svn r6886) -Be anal for the time being about string-wannabe-buffer-overflows
Darkvater
parents:
4912
diff
changeset
|
45 |
#if 1 |
4912
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
46 |
if (dst == last && *src != '\0') { |
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
47 |
error("String too long for destination buffer"); |
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
48 |
} |
d04b3f2bca70
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
Darkvater
parents:
4370
diff
changeset
|
49 |
#endif |
1317
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
50 |
return dst; |
f382f1b439c7
(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics
tron
parents:
diff
changeset
|
51 |
} |
2234 | 52 |
|
53 |
||
54 |
char* CDECL str_fmt(const char* str, ...) |
|
55 |
{ |
|
56 |
char buf[4096]; |
|
57 |
va_list va; |
|
58 |
int len; |
|
59 |
char* p; |
|
60 |
||
61 |
va_start(va, str); |
|
4370
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
62 |
len = vsnprintf(buf, lengthof(buf), str, va); |
2234 | 63 |
va_end(va); |
64 |
p = malloc(len + 1); |
|
65 |
if (p != NULL) memcpy(p, buf, len + 1); |
|
66 |
return p; |
|
67 |
} |
|
2775
d3ed38a97250
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
Darkvater
parents:
2234
diff
changeset
|
68 |
|
d3ed38a97250
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
Darkvater
parents:
2234
diff
changeset
|
69 |
void str_validate(char *str) |
d3ed38a97250
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
Darkvater
parents:
2234
diff
changeset
|
70 |
{ |
d3ed38a97250
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
Darkvater
parents:
2234
diff
changeset
|
71 |
for (; *str != '\0'; str++) |
4299
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
72 |
if (!IsValidAsciiChar(*str, CS_ALPHANUMERAL)) *str = '?'; |
2775
d3ed38a97250
(svn r3322) - Fix: Network window crash when it receives invalid information for example from the integrated nightly, so validate the network-input when it is received
Darkvater
parents:
2234
diff
changeset
|
73 |
} |
4200
a45420ba0c23
(svn r5684) - Codechange: create an strtolower() function that uses tolower() on a whole string and apply it in the places this was used.
Darkvater
parents:
2775
diff
changeset
|
74 |
|
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
75 |
/** |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
76 |
* Only allow certain keys. You can define the filter to be used. This makes |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
77 |
* sure no invalid keys can get into an editbox, like BELL. |
4299
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
78 |
* @param key character to be checked |
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
79 |
* @param afilter the filter to use |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
80 |
* @return true or false depending if the character is printable/valid or not |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
81 |
*/ |
4299
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
82 |
bool IsValidAsciiChar(byte key, CharSetFilter afilter) |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
83 |
{ |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
84 |
bool firsttest = false; |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
85 |
|
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
86 |
switch (afilter) { |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
87 |
case CS_ALPHANUMERAL: |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
88 |
firsttest = (key >= ' ' && key < 127); |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
89 |
break; |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
90 |
|
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
91 |
/* We are very strict here */ |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
92 |
case CS_NUMERAL: |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
93 |
return (key >= '0' && key <= '9'); |
4299
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
94 |
|
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
95 |
case CS_ALPHA: |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
96 |
default: |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
97 |
firsttest = ((key >= 'A' && key <= 'Z') || (key >= 'a' && key <= 'z')); |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
98 |
break; |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
99 |
} |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
100 |
|
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
101 |
/* Allow some special chars too that are non-ASCII but still valid (like '^' above 'a') */ |
4299
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
102 |
return (firsttest || (key >= 160 && |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
103 |
key != 0xAA && key != 0xAC && key != 0xAD && key != 0xAF && |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
104 |
key != 0xB5 && key != 0xB6 && key != 0xB7 && key != 0xB9)); |
b86602eaaff1
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
truelight
parents:
4209
diff
changeset
|
105 |
} |
4300
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
106 |
|
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
107 |
void strtolower(char *str) |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
108 |
{ |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
109 |
for (; *str != '\0'; str++) *str = tolower(*str); |
687a17c9c557
(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:
truelight
parents:
4299
diff
changeset
|
110 |
} |
4370
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
111 |
|
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
112 |
#ifdef WIN32 |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
113 |
int CDECL snprintf(char *str, size_t size, const char *format, ...) |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
114 |
{ |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
115 |
va_list ap; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
116 |
int ret; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
117 |
|
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
118 |
va_start(ap, format); |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
119 |
ret = vsnprintf(str, size, format, ap); |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
120 |
va_end(ap); |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
121 |
return ret; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
122 |
} |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
123 |
|
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
124 |
#ifdef _MSC_VER |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
125 |
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap) |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
126 |
{ |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
127 |
int ret; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
128 |
ret = _vsnprintf(str, size, format, ap); |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
129 |
if (ret < 0) str[size - 1] = '\0'; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
130 |
return ret; |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
131 |
} |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
132 |
#endif /* _MSC_VER */ |
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
133 |
|
c7bd128b1670
(svn r6089) -Backport r6088: added -s (source) and -d (destination) to strgen (Darkvater)
truelight
parents:
4300
diff
changeset
|
134 |
#endif /* WIN32 */ |