Changeset 14047 in project


Ignore:
Timestamp:
04/03/09 04:02:32 (11 years ago)
Author:
Kon Lovett
Message:

Update.

Location:
wiki/eggref
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/3/locale

    r13957 r14047  
    1515
    1616''locale'' does not interact with the C library routines {{setlocale}} or
    17 {{tzset}}.
     17{{tzset}}, except for the {{with-tzset}} routine (see below).
    1818
    1919''locale'' does not provide a localized message service, see [[srfi-29|SRFI 29]].
     
    2323''locale'' does not provide a localized collating service.
    2424
    25 ''locale'' does not provide anything beyond locale identification.
     25''locale'' does not provide much of anything beyond locale identification.
    2626
    2727=== Locale Components
     
    329329==== local-timezone
    330330
    331 <procedure>(local-timezone YEAR MONTH DAY [HOUR 12 [MINUTE 0]] [#:offset? OFFSET? #f]) => STRING</procedure>
     331<procedure>(local-timezone TM | YEAR MONTH DAY [HOUR 12 [MINUTE 0 [SECOND 0]]] [#:offset? OFFSET? #f]) => STRING</procedure>
    332332
    333333Returns the timezone for the given date as a string, (e.g. "EST"). If
    334334{{OFFSET?}} is {{#t}}, then return it in RFC-822 format (e.g. "-0500").
    335335
     336The date maybe specified using a 10-element time-vector {{TM}} or separately as
     337{{YEAR MONTH DAY [HOUR 12 [MINUTE 0 [SECOND 0]]]}}.
     338
     339{{YEAR}} will be biased by {{-1900}}, except for a {{TM}} argument.
     340((MONTH}} in [0 11].
     341{{DAY}} in [1 31].
     342{{HOUR}} in [0 23].
     343{{MINUTE}} in [0 59].
     344{{SECOND}} in [0 60].
     345
    336346==== local-timezone-offset
    337347
    338 <procedure>(local-timezone-offset YEAR MONTH DAY [HOUR 12 [MINUTE 0]]) => FIXNUM</procedure>
     348<procedure>(local-timezone-offset TM | YEAR MONTH DAY [HOUR 12 [MINUTE 0 [SECOND 0]]]) => FIXNUM</procedure>
    339349
    340350Returns the timezone offset as seconds where positive is east of UTC & negative
    341351is west of UTC.
     352
     353==== with-tzset
     354
     355<procedure>(with-tzset TZ THUNK) => OBJECT</procedure>
     356
     357Invoke {{THUNK}} with the TZ environment variable bound to the string {{TZ}}.
     358Uses the C library routine {{tzset}}. Restores the original TZ value.
    342359
    343360
     
    441458== Version history
    442459
     460; 0.5.1 : Added 'with-tzset'. Added TM argument support to 'local-timezone' & 'local-timezone-offset'.
    443461; 0.5.0 : Added 'local-timezone' & 'local-timezone-offset'.
    444462; 0.4.0 : Added "buitlin" timezone & locale. Added categories.
    445 ; 0.3.3 : Removed use of 'critical-section'
    446 ; 0.3.2 : Dropped :optional
    447 ; 0.3.1 : Bug fix for default dst offset
    448 ; 0.3 : Reverts to defaults for timezone & locale when parse errors
    449 ; 0.2 : Exports
    450 ; 0.1 : Initial release
     463; 0.3.3 : Removed use of 'critical-section'.
     464; 0.3.2 : Dropped ':optional'.
     465; 0.3.1 : Bug fix for default dst offset.
     466; 0.3 : Reverts to defaults for timezone & locale when parse errors.
     467; 0.2 : Exports.
     468; 0.1 : Initial release.
    451469
    452470
  • wiki/eggref/4/err5rs-arithmetic

    r14017 r14047  
    100100==== fxmodulo
    101101
    102 <procedure>(fxmodulo FX-N FX-D) => FIXNUM</procedure>
     102<procedure>(fxmodulo FXN FXD) => FIXNUM</procedure>
    103103
    104104==== fxdiv
    105105
    106 <procedure>(fxdiv FX-N FX-D) => FIXNUM</procedure>
     106<procedure>(fxdiv FXN FXD) => FIXNUM</procedure>
    107107
    108108==== fxdiv-and-mod
    109109
    110 <procedure>(fxdiv-and-mod FX-N FX-D) => FIXNUM</procedure>
     110<procedure>(fxdiv-and-mod FXN FXD) => FIXNUM</procedure>
    111111
    112112==== fxdiv0
    113113
    114 <procedure>(fxdiv0 FX-N FX-D) => FIXNUM</procedure>
     114<procedure>(fxdiv0 FXN FXD) => FIXNUM</procedure>
    115115
    116116==== fxmod0
    117117
    118 <procedure>(fxmod0 FX-N FX-D) => FIXNUM</procedure>
     118<procedure>(fxmod0 FXN FXD) => FIXNUM</procedure>
    119119
    120120==== fxdiv0-and-mod0
    121121
    122 <procedure>(fxdiv0-and-mod0 FX-N FX-D) => FIXNUM</procedure>
     122<procedure>(fxdiv0-and-mod0 FXN FXD) => FIXNUM</procedure>
    123123
    124124==== fx*/carry
     
    212212==== Extras
    213213
    214 (All `$fx...' identifiers are reserved.)
     214(All `-fx...' identifiers are reserved.)
    215215
    216216==== fx<>?
     
    244244==== fxquotient
    245245
    246 <procedure>(fxquotient FX-N FX-D) => FIXNUM</procedure>
     246<procedure>(fxquotient FXN FXD) => FIXNUM</procedure>
    247247
    248248==== fxremainder
    249249
    250 <procedure>(fxremainder FX-N FX-D) => FIXNUM</procedure>
     250<procedure>(fxremainder FXN FXD) => FIXNUM</procedure>
    251251
    252252===== fxpow2log2
     
    266266<procedure>(fixnum->string FX [RADIX]) => STRING</procedure>
    267267
    268 ===== *fx=?
    269 
    270 <macro>(*fx=? FX [FX1...]) => BOOLEAN</macro>
    271 
    272 ===== *fx<?
    273 
    274 <macro>(*fx<? FX [FX1...]) => BOOLEAN</macro>
    275 
    276 ===== *fx>?
    277 
    278 <macro>(*fx>? FX [FX1...]) => BOOLEAN</macro>
    279 
    280 ===== *fx<=?
    281 
    282 <macro>(*fx<=? FX [FX1...]) => BOOLEAN</macro>
    283 
    284 ===== *fx>=?
    285 
    286 <macro>(*fx>=? FX [FX1...]) => BOOLEAN</macro>
    287 
    288 ===== *fxmax
    289 
    290 <macro>(*fxmax FX [FX1...]) => FIXNUM</macro>
    291 
    292 ===== *fxmin
    293 
    294 <macro>(*fxmin FX [FX1...]) => FIXNUM</macro>
    295 
    296 ===== *fxand
    297 
    298 <macro>(*fxand FX [FX1...]) => FIXNUM</macro>
    299 
    300 ===== *fxior
    301 
    302 <macro>(*fxior FX [FX1...]) => FIXNUM</macro>
    303 
    304 ===== *fxxor
    305 
    306 <macro>(*fxxor FX [FX1...]) => FIXNUM</macro>
    307 
    308 ===== *fx+
    309 
    310 <macro>(*fx+ FX [FX1...]) => FIXNUM</macro>
    311 
    312 ===== *fx-
    313 
    314 <macro>(*fx- FX [FX1...]) => FIXNUM</macro>
    315 
    316 ===== *fx*
    317 
    318 <macro>(*fx* FX [FX1...]) => FIXNUM</macro>
    319 
    320 ===== *fx/
    321 
    322 <macro>(*fx/ FX [FX1...]) => FIXNUM</macro>
     268===== $fx=?
     269
     270<macro>($fx=? FX [FX1...]) => BOOLEAN</macro>
     271
     272===== $fx<?
     273
     274<macro>($fx<? FX [FX1...]) => BOOLEAN</macro>
     275
     276===== $fx>?
     277
     278<macro>($fx>? FX [FX1...]) => BOOLEAN</macro>
     279
     280===== $fx<=?
     281
     282<macro>($fx<=? FX [FX1...]) => BOOLEAN</macro>
     283
     284===== $fx>=?
     285
     286<macro>($fx>=? FX [FX1...]) => BOOLEAN</macro>
     287
     288===== $fxmax
     289
     290<macro>($fxmax FX [FX1...]) => FIXNUM</macro>
     291
     292===== $fxmin
     293
     294<macro>($fxmin FX [FX1...]) => FIXNUM</macro>
     295
     296===== $fxand
     297
     298<macro>($fxand FX [FX1...]) => FIXNUM</macro>
     299
     300===== $fxior
     301
     302<macro>($fxior FX [FX1...]) => FIXNUM</macro>
     303
     304===== $fxxor
     305
     306<macro>($fxxor FX [FX1...]) => FIXNUM</macro>
     307
     308===== $fx+
     309
     310<macro>($fx+ FX [FX1...]) => FIXNUM</macro>
     311
     312===== $fx-
     313
     314<macro>($fx- FX [FX1...]) => FIXNUM</macro>
     315
     316===== $fx*
     317
     318<macro>($fx* FX [FX1...]) => FIXNUM</macro>
     319
     320===== $fx/
     321
     322<macro>($fx/ FX [FX1...]) => FIXNUM</macro>
    323323
    324324==== Chicken Originals
     
    334334===== chicken:fx*
    335335===== chicken:fx/
    336 ===== chicken:fxmod)
     336===== chicken:fxmod
    337337
    338338
     
    347347<procedure>(real->flonum NUMBER) => FLONUM</procedure>
    348348
     349{{NUMBER}} may only be a {{fixnum}} or {{flonum}}.
     350
    349351==== fixnum->flonum
    350352
     
    457459==== fldiv
    458460
    459 <procedure>(fldiv FL-N FL-D) => FLONUM</procedure>
     461<procedure>(fldiv FLN FLD) => FLONUM</procedure>
    460462
    461463==== flmod
    462464
    463 <procedure>(flmod FL-N FL-D) => FLONUM</procedure>
     465<procedure>(flmod FLN FLD) => FLONUM</procedure>
    464466
    465467==== fldiv-and-mod
    466468
    467 <procedure>(fldiv-and-mod FL-N FL-D) => FLONUM</procedure>
     469<procedure>(fldiv-and-mod FLN FLD) => FLONUM</procedure>
    468470
    469471==== fldiv0
    470472
    471 <procedure>(fldiv0 FL-N FL-D) => FLONUM</procedure>
     473<procedure>(fldiv0 FLN FLD) => FLONUM</procedure>
    472474
    473475==== flmod0
    474476
    475 <procedure>(flmod0 FL-N FL-D) => FLONUM</procedure>
     477<procedure>(flmod0 FLN FLD) => FLONUM</procedure>
    476478
    477479==== fldiv0-and-mod0
    478480
    479 <procedure>(fldiv0-and-mod0 FL-N FL-D) => FLONUM</procedure>
     481<procedure>(fldiv0-and-mod0 FLN FLD) => FLONUM</procedure>
    480482
    481483==== flexp
     
    529531==== Extras
    530532
    531 (All `$fl...' identifiers are reserved.)
     533(All `-fl...' identifiers are reserved.)
    532534
    533535==== fl<>?
     
    547549<procedure>(flnegate FP) => FLONUM</procedure>
    548550
    549 ===== *fl=?
    550 
    551 <macro>(*fl=? FP [FP1...]) => BOOLEAN</macro>
    552 
    553 ===== *fl<?
    554 
    555 <macro>(*fl<? FP [FP1...]) => BOOLEAN</macro>
    556 
    557 ===== *fl>?
    558 
    559 <macro>(*fl>? FP [FP1...]) => BOOLEAN</macro>
    560 
    561 ===== *fl<=?
    562 
    563 <macro>(*fl<=? FP [FP1...]) => BOOLEAN</macro>
    564 
    565 ===== *fl>=?
    566 
    567 <macro>(*fl>=? FP [FP1...]) => BOOLEAN</macro>
    568 
    569 ===== *flmax
    570 
    571 <macro>(*flmax FP [FP1...]) => FIXNUM</macro>
    572 
    573 ===== *flmin
    574 
    575 <macro>(*flmin FP [FP1...]) => FIXNUM</macro>
    576 
    577 ===== *fland
    578 
    579 <macro>(*fland FP [FP1...]) => FIXNUM</macro>
    580 
    581 ===== *flior
    582 
    583 <macro>(*flior FP [FP1...]) => FIXNUM</macro>
    584 
    585 ===== *flxor
    586 
    587 <macro>(*flxor FP [FP1...]) => FIXNUM</macro>
    588 
    589 ===== *fl+
    590 
    591 <macro>(*fl+ FP [FP1...]) => FIXNUM</macro>
    592 
    593 ===== *fl-
    594 
    595 <macro>(*fl- FP [FP1...]) => FIXNUM</macro>
    596 
    597 ===== *fl*
    598 
    599 <macro>(*fl* FP [FP1...]) => FIXNUM</macro>
    600 
    601 ===== *fl/
    602 
    603 <macro>(*fl/ FP [FP1...]) => FIXNUM</macro>
     551===== $fl=?
     552
     553<macro>($fl=? FP [FP1...]) => BOOLEAN</macro>
     554
     555===== $fl<?
     556
     557<macro>($fl<? FP [FP1...]) => BOOLEAN</macro>
     558
     559===== $fl>?
     560
     561<macro>($fl>? FP [FP1...]) => BOOLEAN</macro>
     562
     563===== $fl<=?
     564
     565<macro>($fl<=? FP [FP1...]) => BOOLEAN</macro>
     566
     567===== $fl>=?
     568
     569<macro>($fl>=? FP [FP1...]) => BOOLEAN</macro>
     570
     571===== $flmax
     572
     573<macro>($flmax FP [FP1...]) => FIXNUM</macro>
     574
     575===== $flmin
     576
     577<macro>($flmin FP [FP1...]) => FIXNUM</macro>
     578
     579===== $fland
     580
     581<macro>($fland FP [FP1...]) => FIXNUM</macro>
     582
     583===== $flior
     584
     585<macro>($flior FP [FP1...]) => FIXNUM</macro>
     586
     587===== $flxor
     588
     589<macro>($flxor FP [FP1...]) => FIXNUM</macro>
     590
     591===== $fl+
     592
     593<macro>($fl+ FP [FP1...]) => FIXNUM</macro>
     594
     595===== $fl-
     596
     597<macro>($fl- FP [FP1...]) => FIXNUM</macro>
     598
     599===== $fl*
     600
     601<macro>($fl* FP [FP1...]) => FIXNUM</macro>
     602
     603===== $fl/
     604
     605<macro>($fl/ FP [FP1...]) => FIXNUM</macro>
    604606
    605607
     
    789791== Bugs and Limitations
    790792
    791 * No ERR5RS full-numeric-tower arithmetic routines.
    792 
    793 * No full-numeric-tower suuport for {{real->flonum}}.
     793* No full-numeric-tower arithmetic routines.
     794
     795* No full-numeric-tower suuport.
    794796
    795797
Note: See TracChangeset for help on using the changeset viewer.