readme table

This commit is contained in:
Joseph Poirier 2015-06-10 16:08:17 -05:00
parent 20688e68b1
commit b95ffff9f7

View file

@ -166,6 +166,7 @@ your target platform.
picoc is published under the "New BSD License", see the LICENSE file. picoc is published under the "New BSD License", see the LICENSE file.
# Adding native C functions # Adding native C functions
## Introduction ## Introduction
@ -232,17 +233,18 @@ parameter and returns an integer value.
We've seen how to pass integers into functions. What about passing other data types? We've seen how to pass integers into functions. What about passing other data types?
Type Method Comment | Type | Method | Comment
int Param[x]->Val->Integer |-----------|-----------------------|-------
char Param[x]->Val->Integer Treated as 'int' here | int | Param[x]->Val->Integer|
double Param[x]->Val->FP Only available on some systems | char | Param[x]->Val->Integer| Treated as 'int' here
float Param[x]->Val->FP Same as 'double' | double | Param[x]->Val->FP | Only available on some systems
enum Param[x]->Val->Integer Gives integer value of enum | float | Param[x]->Val->FP | Same as 'double'
pointers See section below Slightly more complicated | enum | Param[x]->Val->Integer| Gives integer value of enum
char * See section below Slightly more complicated | pointers | See section below | Slightly more complicated
arrays See section below Slightly more complicated | char * | See section below | Slightly more complicated
struct See section below Slightly more complicated | arrays | See section below | Slightly more complicated
union See section below Slightly more complicated | struct | See section below | Slightly more complicated
| union | See section below | Slightly more complicated
## Passing pointers ## Passing pointers
Pointer parameters are slighty more complicated to access since you have to Pointer parameters are slighty more complicated to access since you have to