Changeset 38160 in project


Ignore:
Timestamp:
02/02/20 00:25:02 (8 months ago)
Author:
wasamasa
Message:

Fix typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/bind

    r38040 r38160  
    146146occur that triggers a garbage collection. Multiple {{__out}} and
    147147{{___inout}} parameters will be returned as multiple values, preceded
    148 by the normal return value of thhe function (if not {{void}}). Here is
     148by the normal return value of the function (if not {{void}}). Here is
    149149a simple example:
    150150
     
    231231
    232232All specially handled tokens preceded with {{___}} are defined as C
    233 macros in the headerfile {{chicken.h}} and will usually expand into
     233macros in the header file {{chicken.h}} and will usually expand into
    234234nothing, so they don't invalidate the processed source code.
    235235
     
    238238
    239239Keep in mind that this is not a fully general C/C++ parser. Taking an
    240 arbitrary headerfile and feeding it to {{bind}} will in most cases not
    241 work or generate riduculuous amounts of code. This FFI facility is for
    242 carefully written headerfiles, and for declarations directly embedded
     240arbitrary header file and feeding it to {{bind}} will in most cases not
     241work or generate ridiculous amounts of code. This FFI facility is for
     242carefully written header files, and for declarations directly embedded
    243243into Scheme code.
    244244
     
    265265Declares a foreign type transformation, similar to
    266266{{define-foreign-type}}. There should be two to four arguments: a C
    267 typename, a Scheme foreign type specifier and optional argument- and
     267type name, a Scheme foreign type specifier and optional argument- and
    268268result-value conversion procedures.
    269269
     
    338338<macro>(bind-rename/pattern REGEX REPLACEMENT)</macro>
    339339
    340 Declares a renaming pattern to be used for C/C++ identifiers occuring
     340Declares a renaming pattern to be used for C/C++ identifiers occurring
    341341in bound code. {{REGEX}} should be a string or SRE and replacement a
    342342string, which may optionally contain back-references to matched
     
    512512 foreign-transformer: procedure
    513513
    514 Applies the supplied procedure before emitting code. Note that the procedure is evaluated at compile-time. You can reference procedure-names when you use define-for-syntax. The procedure takes in two arguments: a bind-foreign-lambda sexpression and a rename procedure (for hygienic macros). The car of bind-foreign-lambda form is either a renamed version of 'foreign-lambda*' or 'foreign-safe-lambda*'.
     514Applies the supplied procedure before emitting code. Note that the procedure is evaluated at compile-time. You can reference procedure-names when you use define-for-syntax. The procedure takes in two arguments: a bind-foreign-lambda s-expression and a rename procedure (for hygienic macros). The car of bind-foreign-lambda form is either a renamed version of 'foreign-lambda*' or 'foreign-safe-lambda*'.
    515515
    516516  (define-for-syntax (my-transformer form rename)
     
    752752{{<c++-object>}}. Instances of this class contain a single slot named
    753753{{this}}, which holds a pointer to a heap-allocated C++ instance.  The
    754 name of the {{coops}} class is obtained by putting the C++ classname
     754name of the {{coops}} class is obtained by putting the C++ class name
    755755between angled brackets ({{<...>}}).  {{coops}} classes are not seen by
    756756C++ code.
Note: See TracChangeset for help on using the changeset viewer.