diff options
author | rofl0r <retnyg@gmx.net> | 2013-02-02 03:08:57 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2013-02-02 03:19:25 +0100 |
commit | c50925071cce9c6342597f5671e30d2970c6ff4a (patch) | |
tree | 32279f7c94dfb0b2b76c4eaed3880247a45a7adf /src/ctype | |
parent | facc6acbfd20accea435d10fdd070b23877e40db (diff) | |
download | musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.gz musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.bz2 musl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.xz musl-c50925071cce9c6342597f5671e30d2970c6ff4a.zip |
make some arrays const
this way they'll go into .rodata, decreasing memory pressure.
Diffstat (limited to 'src/ctype')
-rw-r--r-- | src/ctype/iswalpha.c | 2 | ||||
-rw-r--r-- | src/ctype/iswpunct.c | 2 | ||||
-rw-r--r-- | src/ctype/wcwidth.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ctype/iswalpha.c b/src/ctype/iswalpha.c index 4007c8a6..d558faef 100644 --- a/src/ctype/iswalpha.c +++ b/src/ctype/iswalpha.c @@ -1,6 +1,6 @@ #include <wctype.h> -static unsigned char table[] = { +static const unsigned char table[] = { #include "alpha.h" }; diff --git a/src/ctype/iswpunct.c b/src/ctype/iswpunct.c index a8297452..16e8703b 100644 --- a/src/ctype/iswpunct.c +++ b/src/ctype/iswpunct.c @@ -1,6 +1,6 @@ #include <wctype.h> -static unsigned char table[] = { +static const unsigned char table[] = { #include "punct.h" }; diff --git a/src/ctype/wcwidth.c b/src/ctype/wcwidth.c index 98f128e9..49c40eea 100644 --- a/src/ctype/wcwidth.c +++ b/src/ctype/wcwidth.c @@ -1,10 +1,10 @@ #include <wchar.h> -static unsigned char table[] = { +static const unsigned char table[] = { #include "nonspacing.h" }; -static unsigned char wtable[] = { +static const unsigned char wtable[] = { #include "wide.h" }; |