functions.c

changeset 8
28319b20968c
parent 6
be923400164c
equal deleted inserted replaced
7:1b55f3fa52c9 8:28319b20968c
11 ret |= (strchr(arg, expected[t]) > 0) << t; 11 ret |= (strchr(arg, expected[t]) > 0) << t;
12 } 12 }
13 } 13 }
14 } 14 }
15 15
16 return ret;
17 }
18
19 bool registerArgument(int* reg, int mask) {
20 bool ret = (*reg & mask) > 0;
21 *reg |= mask;
16 return ret; 22 return ret;
17 } 23 }
18 24
19 bool testSuffix(char* filename, settings_t* settings) { 25 bool testSuffix(char* filename, settings_t* settings) {
20 bool ret = false; 26 bool ret = false;

mercurial