Mercurial > hg > octave-lojdl > gnulib-hg
comparison lib/strftime.c @ 16235:18a38c9615f0
In commentary, do not use ` to quote.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 05 Jan 2012 23:53:49 -0800 |
parents | 8250f2777afc |
children | a712776b11ce |
comparison
equal
deleted
inserted
replaced
16234:f9b906545e2f | 16235:18a38c9615f0 |
---|---|
287 # else | 287 # else |
288 # define TOUPPER(Ch, L) toupper (Ch) | 288 # define TOUPPER(Ch, L) toupper (Ch) |
289 # define TOLOWER(Ch, L) tolower (Ch) | 289 # define TOLOWER(Ch, L) tolower (Ch) |
290 # endif | 290 # endif |
291 #endif | 291 #endif |
292 /* We don't use `isdigit' here since the locale dependent | 292 /* We don't use 'isdigit' here since the locale dependent |
293 interpretation is not what we want here. We only need to accept | 293 interpretation is not what we want here. We only need to accept |
294 the arabic digits in the ASCII range. One day there is perhaps a | 294 the arabic digits in the ASCII range. One day there is perhaps a |
295 more reliable way to accept other sets of digits. */ | 295 more reliable way to accept other sets of digits. */ |
296 #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9) | 296 #define ISDIGIT(Ch) ((unsigned int) (Ch) - L_('0') <= 9) |
297 | 297 |
435 | 435 |
436 int hour12 = tp->tm_hour; | 436 int hour12 = tp->tm_hour; |
437 #ifdef _NL_CURRENT | 437 #ifdef _NL_CURRENT |
438 /* We cannot make the following values variables since we must delay | 438 /* We cannot make the following values variables since we must delay |
439 the evaluation of these values until really needed since some | 439 the evaluation of these values until really needed since some |
440 expressions might not be valid in every situation. The `struct tm' | 440 expressions might not be valid in every situation. The 'struct tm' |
441 might be generated by a strptime() call that initialized | 441 might be generated by a strptime() call that initialized |
442 only a few elements. Dereference the pointers only if the format | 442 only a few elements. Dereference the pointers only if the format |
443 requires this. Then it is ok to fail if the pointers are invalid. */ | 443 requires this. Then it is ok to fail if the pointers are invalid. */ |
444 # define a_wkday \ | 444 # define a_wkday \ |
445 ((const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ABDAY_1) + tp->tm_wday)) | 445 ((const CHAR_T *) _NL_CURRENT (LC_TIME, NLW(ABDAY_1) + tp->tm_wday)) |
894 do_tz_offset: | 894 do_tz_offset: |
895 always_output_a_sign = true; | 895 always_output_a_sign = true; |
896 goto do_number_body; | 896 goto do_number_body; |
897 | 897 |
898 do_number_spacepad: | 898 do_number_spacepad: |
899 /* Force `_' flag unless overridden by `0' or `-' flag. */ | 899 /* Force '_' flag unless overridden by '0' or '-' flag. */ |
900 if (pad != L_('0') && pad != L_('-')) | 900 if (pad != L_('0') && pad != L_('-')) |
901 pad = L_('_'); | 901 pad = L_('_'); |
902 | 902 |
903 do_number: | 903 do_number: |
904 /* Format NUMBER_VALUE according to the MODIFIER flag. */ | 904 /* Format NUMBER_VALUE according to the MODIFIER flag. */ |