Changeset 12553 in project


Ignore:
Timestamp:
11/18/08 02:01:33 (12 years ago)
Author:
Ivan Raikov
Message:

Merged manual changes.

Location:
chicken/branches/chicken-3/manual
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chicken/branches/chicken-3/manual

  • chicken/branches/chicken-3/manual/C interface

    r7036 r12553  
    321321 extern int callout(int, int, int);
    322322 <#
    323 
     323 
    324324 (define callout (foreign-safe-lambda int "callout" int int int))
    325 
     325 
    326326 (define-external (callin (scheme-object xyz)) int
    327327   (print "This is 'callin': " xyz)
    328328   123)
    329 
     329 
    330330 (print (callout 1 2 3))
    331331
     
    333333 #include <stdio.h>
    334334 #include "chicken.h"
    335 
     335 
    336336 extern int callout(int, int, int);
    337337 extern int callin(C_word x);
    338 
     338 
    339339 int callout(int x, int y, int z)
    340340 {
    341341   C_word *ptr = C_alloc(C_SIZEOF_LIST(3));
    342342   C_word lst;
    343 
     343 
    344344   printf("This is 'callout': %d, %d, %d\n", x, y, z);
    345345   lst = C_list(&ptr, 3, C_fix(x), C_fix(y), C_fix(z));
  • chicken/branches/chicken-3/manual/Unit lolevel

    r5945 r12553  
    458458object has been reclaimed by garbage collection, an error is signalled.
    459459
     460 (locative-ref (make-locative "abc" 1)) ==> #\b
    460461
    461462==== locative-set!
     
    476477{{#f}} if the container has been reclaimed by garbage collection.
    477478
     479 (locative->object (make-locative "abc" 1)) ==> "abc"
    478480
    479481
Note: See TracChangeset for help on using the changeset viewer.