main
test-branch
| Line | |
|---|
| 1 | /* This header file contains the core definitions of the CIVL-C language,
|
|---|
| 2 | * including standard types and function prototypes.
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef __CIVLC_CIVL__
|
|---|
| 6 | #define __CIVLC_CIVL__
|
|---|
| 7 |
|
|---|
| 8 | #include <civlc.cvh>
|
|---|
| 9 | #include <bundle.cvh>
|
|---|
| 10 | /* Completes the declaration of this type in civlc.cvh */
|
|---|
| 11 | struct $int_iter {
|
|---|
| 12 | int size;
|
|---|
| 13 | int content[];
|
|---|
| 14 | int index; //initialized as 0
|
|---|
| 15 | };
|
|---|
| 16 |
|
|---|
| 17 | $atomic_f void $output_assign(void * output, const void * value, int size) {
|
|---|
| 18 | if(size == 0)
|
|---|
| 19 | return;
|
|---|
| 20 | $bundle bundle = $bundle_pack(value, size);
|
|---|
| 21 | $bundle_unpack(bundle, output);
|
|---|
| 22 | }
|
|---|
| 23 |
|
|---|
| 24 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.