mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Remove #pragmas to switch to the RODATA segment since the compiler will do
this now without help. git-svn-id: svn://svn.cc65.org/cc65/trunk@263 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
bb115c8ae2
commit
2f65b8f5c6
@ -7,9 +7,6 @@
|
||||
|
||||
|
||||
|
||||
/* Data in this module is read-only, put it into the RODATA segment */
|
||||
#pragma dataseg ("RODATA")
|
||||
|
||||
const unsigned char _hextab [16] = {
|
||||
'0', '1', '2', '3', '4', '5', '6', '7',
|
||||
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
||||
|
@ -9,10 +9,7 @@
|
||||
|
||||
|
||||
|
||||
/* Place the following data into the readonly data segment */
|
||||
#pragma dataseg ("RODATA")
|
||||
|
||||
const char* _sys_errlist[] = {
|
||||
const char* const _sys_errlist[] = {
|
||||
"Unknown error", /* 0 */
|
||||
"No such file or directory", /* 1 */
|
||||
"Out of memory", /* 2 */
|
||||
|
@ -17,13 +17,10 @@
|
||||
|
||||
|
||||
|
||||
/* Data in this module is read-only, put it into the RODATA segment */
|
||||
#pragma dataseg ("RODATA");
|
||||
|
||||
/* For memory efficiency use a separate empty string */
|
||||
static const char EmptyString [] = "";
|
||||
|
||||
static struct lconv lc = {
|
||||
static const struct lconv lc = {
|
||||
EmptyString, /* currency_symbol */
|
||||
".", /* decimal_point */
|
||||
EmptyString, /* grouping */
|
||||
@ -44,9 +41,6 @@ static struct lconv lc = {
|
||||
CHAR_MAX, /* p_sign_posn */
|
||||
};
|
||||
|
||||
/* Restore the old data segment name */
|
||||
#pragma dataseg ("DATA");
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
@ -75,4 +69,4 @@ char* setlocale (int, const char* locale)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user