diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 21:11:08 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 22:10:52 -0800 |
commit | 7a588b73582cb178acdb6c6b578d87f98cebfec9 (patch) | |
tree | 37e55a3a2e773d62c5a4c84f5424e2175eb163e8 | |
parent | 9fbe47e349fb261a3845c3c74f8832dbadfdbe8d (diff) |
Delete more unused macros from utils.h
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | utils.h | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -42,10 +42,6 @@ _XFUNCPROTOBEGIN -#ifndef NUL -#define NUL '\0' -#endif - /***====================================================================***/ #ifndef BOOLEAN_DEFINED @@ -56,17 +52,6 @@ typedef char Boolean; #define True ((Boolean)1) #define False ((Boolean)0) #endif /* ndef True */ -#define booleanText(b) ((b)?"True":"False") - -#ifndef COMPARISON_DEFINED -typedef int Comparison; - -#define Greater ((Comparison)1) -#define Equal ((Comparison)0) -#define Less ((Comparison)-1) -#define CannotCompare ((Comparison)-37) -#define comparisonText(c) ((c)?((c)<0?"Less":"Greater"):"Equal") -#endif /***====================================================================***/ @@ -82,10 +67,6 @@ extern void uInternalError(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2); #define NullString ((char *)NULL) -#define uStringText(s) ((s)==NullString?"<NullString>":(s)) -#define uStringEqual(s1,s2) (uStringCompare(s1,s2)==Equal) -#define uStringPrefix(p,s) (strncmp(p,s,strlen(p))==0) -#define uStringCompare(s1,s2) (strcmp(s1,s2)) #define uStrCaseEqual(s1,s2) (uStrCaseCmp(s1,s2)==0) #ifdef HAVE_STRCASECMP #define uStrCaseCmp(s1,s2) (strcasecmp(s1,s2)) |