Branch: Tag:

2001-01-10

2001-01-10 23:44:13 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

use #defines *sigh* instead of constants

Rev: lib/modules/Calendar.pmod/Gregorian.pmod:1.4
Rev: lib/modules/Calendar.pmod/ISO.pmod:1.4
Rev: lib/modules/Calendar.pmod/Language.pmod:1.8
Rev: lib/modules/Calendar.pmod/Time.pmod:1.10
Rev: lib/modules/Calendar.pmod/TimeRanges.pmod:1.13

67:       int month_number_from_name(string name)    { -  int j=(month_s2n[flat(name)]); +  int j=(month_s2n[name]) +  || (month_s2n[flat(name)]);    if (!j) error("no such month of year: %O\n",name);    return j;    }
84:       int week_day_number_from_name(string name)    { -  int j=(week_day_s2n[flat(name)]); +  int j=(week_day_s2n[name]) +  || (week_day_s2n[flat(name)]);    if (!j) error("no such day of week: %O\n",name);    return j;    }