Changeset 8408 in project


Ignore:
Timestamp:
02/12/08 09:44:01 (12 years ago)
Author:
Kon Lovett
Message:

Removed macro versions of tm struct set/get.

Location:
chicken/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/buildsvnrevision

    r8397 r8408  
    1 8393
     18405
  • chicken/trunk/posixunix.scm

    r8361 r8408  
    371371        (C_set_block_item(v, 9, C_fix(C_tm.tm_gmtoff)))
    372372
    373 #if 0
    374373#if !defined(C_GNU_ENV) || defined(__CYGWIN__) || defined(__uClinux__)
    375 # define C_tm_set(v) (C_tm_set_08(v), &C_tm)
    376 # define C_tm_get(v) (C_tm_get_08(v), v)
    377 #else
    378 # define C_tm_set(v) (C_tm_set_08(v), C_tm_set_9(v), &C_tm)
    379 # define C_tm_get(v) (C_tm_get_08(v), C_tm_get_9(v), v)
    380 #endif
    381 #else
    382 #if !defined(C_GNU_ENV) || defined(__CYGWIN__) || defined(__uClinux__)
     374
    383375static struct tm *
    384376C_tm_set (C_word v)
     
    387379  return &C_tm;
    388380}
     381
    389382static C_word
    390383C_tm_get (C_word v)
    391384{
    392385  C_tm_get_08 (v);
    393   C_tm_set_9 (v);
    394386  return v;
    395387}
     388
    396389#else
     390
    397391static struct tm *
    398392C_tm_set (C_word v)
    399393{
    400394  C_tm_set_08 (v);
     395  C_tm_set_9 (v);
    401396  return &C_tm;
    402397}
     398
    403399static C_word
    404400C_tm_get (C_word v)
     
    408404  return v;
    409405}
    410 #endif
     406
    411407#endif
    412408
Note: See TracChangeset for help on using the changeset viewer.