Changes between Version 2 and Version 3 of Libraries


Ignore:
Timestamp:
05/13/23 18:34:11 (3 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Libraries

    v2 v3  
    99CIVL-C includes a type named `$bundle`, declared in the CIVL-C standard header `bundle.cvh`. A bundle is basically a sequence of data, wrapped into an atomic package. A bundle is created using a function that specifies a region of memory. One can create a bundle from an array of integers, and another bundle from an array of reals. Both bundles have the same type, `$bundle`. They can therefore be entered into an array of `$bundle`, for example. Hence bundles are useful for mixing objects of different (even statically unknown) types into a single data structure. Later, the contents of a bundle can be extracted with another function that specifies a region of memory into which to unpack the bundle; if that memory does not have the right type to receive the contents of the bundle, a runtime error is generated. The bundle type and its functions are provided by the library `bundle.cvh`.
    1010The relevant functions for creating and manipulating bundles are given in ...
     11
     12
     13== `seq.cvh`
     14
     15== `scope.cvh`
     16
     17== `domain.cvh`
     18
     19== `comm.cvh`
     20
     21== `concurrency.cvh`
     22
     23== `pointer.cvh`
     24
     25== `mem.cvh`
     26
     27== `memory.cvh`
     28
     29
     30
     31== C Standard library
     32
     33=== `stdlib.h`
     34
     35=== `stdio.h`
     36
     37=== `string.h`
     38