source:
CIVL/include/impls/civlc.cvl@
1aaefd4
| Last change on this file since 1aaefd4 was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 559 bytes | |
| Rev | Line | |
|---|---|---|
| [4208097] | 1 | /* This header file contains the core definitions of the CIVL-C language, |
| 2 | * including standard types and function prototypes. | |
| 3 | */ | |
| 4 | ||
| [bf584ca] | 5 | #ifndef __CIVLC_CIVL__ |
| [06d6af3] | 6 | #define __CIVLC_CIVL__ |
| [4208097] | 7 | |
| [06d6af3] | 8 | #include <civlc.cvh> |
| [f010003] | 9 | #include <bundle.cvh> |
| [06d6af3] | 10 | /* Completes the declaration of this type in civlc.cvh */ |
| [4779aa1] | 11 | struct $int_iter { |
| [4208097] | 12 | int size; |
| 13 | int content[]; | |
| 14 | int index; //initialized as 0 | |
| 15 | }; | |
| [3015b4e] | 16 | |
| [f010003] | 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 | ||
| [4208097] | 24 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
