forked from len0rd/rockbox
Try and save some bytes, seeing as we already assumed LANG_ constants for month and weekday names are contiguous.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15289 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1e45eecb23
commit
fda41b892e
4 changed files with 13 additions and 73 deletions
|
|
@ -1160,12 +1160,12 @@ static char *get_token_value(struct gui_wps *gwps,
|
|||
|
||||
case WPS_TOKEN_RTC_WEEKDAY_NAME:
|
||||
/* a: abbreviated weekday name (Sun..Sat) */
|
||||
snprintf(buf, buf_size, "%s",str(dayname[tm->tm_wday]));
|
||||
snprintf(buf, buf_size, "%s",str(LANG_WEEKDAY_SUNDAY + tm->tm_wday));
|
||||
return buf;
|
||||
|
||||
case WPS_TOKEN_RTC_MONTH_NAME:
|
||||
/* b: abbreviated month name (Jan..Dec) */
|
||||
snprintf(buf, buf_size, "%s",str(monthname[tm->tm_mon]));
|
||||
snprintf(buf, buf_size, "%s",str(LANG_MONTH_JANUARY + tm->tm_mon));
|
||||
return buf;
|
||||
|
||||
case WPS_TOKEN_RTC_DAY_OF_WEEK_START_MON:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue