Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VReo > Reo__Matrix_Mult
comparison ParamHelper/Param.h @ 3:a6b3cab179b1
Added no-measurments option for platforms without support. Added static X86, ARM
and basic Kalray build support. This branch requires the longjmp versions of
libprt and libvreo
| author | Philipe Louchtch - de Raadt |
|---|---|
| date | Sat, 12 Jul 2014 20:21:47 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:5fea80e89755 |
|---|---|
| 1 /* | |
| 2 * | |
| 3 * Author: SeanHalle@yahoo.com | |
| 4 * | |
| 5 * Created on November 19, 2009, 6:30 PM | |
| 6 */ | |
| 7 | |
| 8 #ifndef _PARAM_H | |
| 9 #define _PARAM_H | |
| 10 | |
| 11 typedef | |
| 12 struct | |
| 13 { int type; | |
| 14 int intValue; | |
| 15 char * strValue; | |
| 16 float floatValue; | |
| 17 } | |
| 18 ParamStruc; | |
| 19 | |
| 20 #define INT_PARAM_TYPE 0 | |
| 21 #define STRING_PARAM_TYPE 1 | |
| 22 #define FLOAT_PARAM_TYPE 2 | |
| 23 | |
| 24 #define PARAM_BAG_HASHSIZE 1024 | |
| 25 | |
| 26 typedef struct _ParamBagHashEntry ParamBagHashEntry; | |
| 27 | |
| 28 struct _ParamBagHashEntry | |
| 29 { | |
| 30 char *key; | |
| 31 ParamStruc *param; | |
| 32 struct _ParamBagHashEntry *next; | |
| 33 } | |
| 34 /*ParamBagHashEntry*/; | |
| 35 | |
| 36 | |
| 37 typedef | |
| 38 struct | |
| 39 { int bagSz; | |
| 40 ParamBagHashEntry* *entries; | |
| 41 } | |
| 42 ParamBag; | |
| 43 | |
| 44 | |
| 45 ParamBag *makeParamBag(); | |
| 46 void readParamFileIntoBag( char *paramFileName, ParamBag * bag ); | |
| 47 ParamStruc *getParamFromBag( char *key, ParamBag * bag ); | |
| 48 int addParamToBag( char* key, ParamStruc *param, ParamBag *bag ); | |
| 49 void freeParamBag( ParamBag *bag ); | |
| 50 //char *paramBagToString( ParamBag * bag ); | |
| 51 ParamStruc *makeParamStruc(); | |
| 52 ParamStruc *makeParamFromStrs( char * type, char *value ); | |
| 53 ssize_t getline( char **lineptr, size_t *n, FILE *stream ); | |
| 54 | |
| 55 #endif /* _PARAM_H */ | |
| 56 |
