diff options
author | dominik <dominik@openttd.org> | 2004-12-23 18:28:13 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-12-23 18:28:13 +0000 |
commit | 58c153b9ac5b23cbd3ce82f39923443a8cd8eba7 (patch) | |
tree | f1e8de4d7ace6e371d46705397292c0c631c5d98 /strings.c | |
parent | 60052ffb453637fb581671e8ded534eed7420a9b (diff) | |
download | openttd-58c153b9ac5b23cbd3ce82f39923443a8cd8eba7.tar.xz |
(svn r1255) Renamed "postfix" to "suffix", for strings and variable names
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -276,9 +276,9 @@ static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 n // convert from negative if (number < 0) { *buff++ = '-'; number = -number; } - // add pre part - s = spec->pre; - while (s != spec->pre + lengthof(spec->pre) && (c=*s++)) *buff++ = c; + // add prefix part + s = spec->prefix; + while (s != spec->prefix + lengthof(spec->prefix) && (c=*s++)) *buff++ = c; // for huge numbers, compact the number into k or M if (compact) { @@ -303,9 +303,9 @@ static byte *FormatGenericCurrency(byte *buff, const CurrencySpec *spec, int64 n if (compact) *buff++ = compact; - // add post part - s = spec->post; - while (s != spec->post + lengthof(spec->post) && (c=*s++)) *buff++ = c; + // add suffix part + s = spec->suffix; + while (s != spec->suffix + lengthof(spec->suffix) && (c=*s++)) *buff++ = c; return buff; } |