functions.c

changeset 8
28319b20968c
parent 6
be923400164c
--- a/functions.c	Fri May 27 15:10:23 2011 +0200
+++ b/functions.c	Mon May 30 08:45:08 2011 +0200
@@ -16,6 +16,12 @@
   return ret;
 }
 
+bool registerArgument(int* reg, int mask) {
+  bool ret = (*reg & mask) > 0;
+  *reg |= mask;
+  return ret;
+}
+
 bool testSuffix(char* filename, settings_t* settings) {
   bool ret = false;
   int tokenlen, fnamelen = strlen(filename);

mercurial