arguments.c

changeset 30
d642fdb6745e
parent 20
43725438ac50
equal deleted inserted replaced
29:fa625066ae52 30:d642fdb6745e
25 bool registerArgument(int* reg, int mask) { 25 bool registerArgument(int* reg, int mask) {
26 bool ret = (*reg & mask) > 0; 26 bool ret = (*reg & mask) > 0;
27 *reg |= mask; 27 *reg |= mask;
28 return ret; 28 return ret;
29 } 29 }
30
31 bool checkParamOpt(int* paropt) {
32 bool ret = *paropt == 0;
33 *paropt = 1;
34 return ret;
35 }
36
37 void parseCSL(char* csl, string_list_t* list) {
38 if (csl != NULL) {
39 char* finder = strtok(csl, ",");
40 while (finder != NULL) {
41 add_string(list, finder);
42 finder = strtok(NULL, ",");
43 }
44 }
45 }

mercurial