From: johanknol Date: Tue, 28 Aug 2001 11:53:23 +0000 (+0000) Subject: constant strings should be in codespace X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=ae8d22552c38d80a8269ba2a4c9df28ca114cd42;p=fw%2Fsdcc constant strings should be in codespace git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1183 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/time.c b/device/lib/time.c index 0df57670..34bb60c8 100755 --- a/device/lib/time.c +++ b/device/lib/time.c @@ -60,10 +60,10 @@ time_t time(time_t *timeptr) { static _CODE char monthDays[]={31,28,31,30,31,30,31,31,30,31,30,31}; -static _CODE char *month[]={"Jan","Feb","Mar","Apr","May","Jun", - "Jul","Aug","Sep","Oct","Nov","Dec"}; +_CODE char * _CODE __month[]={"Jan","Feb","Mar","Apr","May","Jun", + "Jul","Aug","Sep","Oct","Nov","Dec"}; -static _CODE char *day[]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; +_CODE char * _CODE __day[]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"}; static char ascTimeBuffer[32]; @@ -90,7 +90,7 @@ static void CheckTime(struct tm *timeptr) { char *asctime(struct tm *timeptr) { CheckTime(timeptr); sprintf (ascTimeBuffer, "%s %s %2d %02d:%02d:%02d %04d\n", - day[timeptr->tm_wday], month[timeptr->tm_mon], timeptr->tm_mday, + __day[timeptr->tm_wday], __month[timeptr->tm_mon], timeptr->tm_mday, timeptr->tm_hour, timeptr->tm_min, timeptr->tm_sec, timeptr->tm_year+1900); return ascTimeBuffer;