]> andersk Git - splint.git/blobdiff - src/Headers/cprim.h
*** empty log message ***
[splint.git] / src / Headers / cprim.h
index a0eb0d82a8bca53520477536e2760a19852de0fa..9cd8ba2df46574d118bd453cf71a378463738e21 100644 (file)
@@ -1,5 +1,5 @@
 /*
-** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
+** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
 ** See ../LICENSE for license information.
 **
 */
@@ -93,8 +93,13 @@ extern bool cprim_isAnyChar (/*@sef@*/ cprim p_c);
 extern bool cprim_isAnyInt (/*@sef@*/ cprim p_c);
 extern bool cprim_isAnyReal (/*@sef@*/ cprim p_c);
 
-# define cprim_isAnyInt(c) ((c) >= CTX_INT && (c) <= CTX_SIGNEDINTEGRAL)
-# define cprim_isAnyReal(c) ((c) >= CTX_FLOAT && (c) <= CTX_LDOUBLE)
+# define cprim_isAnyInt(c)         ((c) >= CTX_INT && (c) <= CTX_SIGNEDINTEGRAL)
+
+extern bool cprim_isAnyUnsignedInt (/*@sef@*/ cprim p_c);
+# define cprim_isAnyUnsignedInt(c) ((c) == CTX_UINT || (c) == CTX_USINT \
+                                   || (c) == CTX_ULINT || (c) == CTX_ULLINT \
+                                   || (c) == CTX_UNSIGNEDINTEGRAL)
+# define cprim_isAnyReal(c)        ((c) >= CTX_FLOAT && (c) <= CTX_LDOUBLE)
 
 /*@constant int CTX_LAST;@*/
 # define CTX_LAST CTX_LDOUBLE
@@ -109,8 +114,8 @@ extern bool cprim_closeEnough (cprim, cprim) /*@*/ ;
 extern bool cprim_closeEnoughDeep (cprim, cprim) /*@*/ ;
 extern /*@only@*/ cstring cprim_unparse (cprim) /*@*/ ;
 extern cprim cprim_fromInt (int p_i);
-
 extern bool cprim_isInt(cprim p_c);
+extern int cprim_getExpectedBits (cprim p_c) /*@*/ ;
 
 # else
 # error "Multiple include"
This page took 0.054258 seconds and 4 git commands to generate.