mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +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] = {
|
const unsigned char _hextab [16] = {
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7',
|
'0', '1', '2', '3', '4', '5', '6', '7',
|
||||||
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
|
||||||
|
@ -9,10 +9,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Place the following data into the readonly data segment */
|
const char* const _sys_errlist[] = {
|
||||||
#pragma dataseg ("RODATA")
|
|
||||||
|
|
||||||
const char* _sys_errlist[] = {
|
|
||||||
"Unknown error", /* 0 */
|
"Unknown error", /* 0 */
|
||||||
"No such file or directory", /* 1 */
|
"No such file or directory", /* 1 */
|
||||||
"Out of memory", /* 2 */
|
"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 */
|
/* For memory efficiency use a separate empty string */
|
||||||
static const char EmptyString [] = "";
|
static const char EmptyString [] = "";
|
||||||
|
|
||||||
static struct lconv lc = {
|
static const struct lconv lc = {
|
||||||
EmptyString, /* currency_symbol */
|
EmptyString, /* currency_symbol */
|
||||||
".", /* decimal_point */
|
".", /* decimal_point */
|
||||||
EmptyString, /* grouping */
|
EmptyString, /* grouping */
|
||||||
@ -44,9 +41,6 @@ static struct lconv lc = {
|
|||||||
CHAR_MAX, /* p_sign_posn */
|
CHAR_MAX, /* p_sign_posn */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Restore the old data segment name */
|
|
||||||
#pragma dataseg ("DATA");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user