git » fp-git.git » commit 8762ec1

moved isNumber macro to .h

author ecalot
2006-01-06 23:39:03 UTC
committer ecalot
2006-01-06 23:39:03 UTC
parent b27fa714353687c59534616cb6fc834b2593bf92

moved isNumber macro to .h

PR/src/lib/layers/stringformat.c +1 -1

diff --git a/PR/src/lib/layers/stringformat.c b/PR/src/lib/layers/stringformat.c
index 91e91ae..67abb9e 100644
--- a/PR/src/lib/layers/stringformat.c
+++ b/PR/src/lib/layers/stringformat.c
@@ -33,6 +33,7 @@ stringformat.c: Princed Resources : format string parsing feature
 
 #include <stdlib.h> /* NULL */
 #include "translate.h" /* index translation */
+#include "stringformat.h"
 #include <string.h> /* strlen */
 
 static int i;
@@ -81,7 +82,6 @@ void emitNumber(int n, int size, int zeroflag) {
 }
 
 #define readk(k) (k=*(format++))
-#define isNumber(k) ('0'<=k && k<='9')
 
 const char* parseformat(const char* format,long value,const char* index, const char* type, const char* extension, long numberOfThisType, int order, const char* desc) {
 	/* This function parses format in this way: