]> andersk Git - splint.git/blame - src/Headers/misc.h
Committing to make sure that the ./configure works.
[splint.git] / src / Headers / misc.h
CommitLineData
885824d3 1/*
28bf4b0b 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2001.
885824d3 3** See ../LICENSE for license information.
4**
5*/
6/*
7** misc.h
8**
9** (general.c)
10*/
11
12# ifndef MISC_H
13# define MISC_H
14
885824d3 15# include "lclMisc.h"
885824d3 16
17extern void assertSet (/*@special@*/ /*@sef@*/ /*@unused@*/ void *p_x)
18 /*@sets p_x, *p_x@*/ ;
19# define assertSet(x) ;
20
cd7d9b17 21extern void assertDefined (/*@sef@*/ /*@unused@*/ void *p_x) ;
22# define assertDefined(x) ;
23
24
885824d3 25/*@-czechfcns@*/
86d93ed3 26extern int size_toInt (size_t p_x) /*@*/ /*@ensures result==p_x@*/;
27extern long size_toLong (size_t p_x) /*@*/ /*@ensures result==p_x@*/ ;
28extern size_t size_fromInt (int p_x) /*@*/ /*@ensures result==p_x@*/ ;
29extern int longUnsigned_toInt (long unsigned int p_x) /*@*/ /*@ensures result==p_x@*/ ;
30extern int long_toInt (long p_x) /*@*/ /*@ensures result==p_x@*/;
31extern long unsigned longUnsigned_fromInt (int p_x) /*@*/ /*@ensures result==p_x@*/ ;
885824d3 32/*@=czechfcns@*/
33
abd7f895 34# include "mstring.h"
885824d3 35
885824d3 36
37extern int int_compare (/*@sef@*/ int p_x, /*@sef@*/ int p_y) /*@*/ ;
38# define int_compare(x,y) (((x) > (y)) ? 1 : (((x) < (y)) ? -1 : 0))
39
40/*@-macroparams@*/
41/*@-macrofcndecl@*/ /* works for lots of types */
42# define generic_compare(x,y) (((x) > (y)) ? 1 : (((x) < (y)) ? -1 : 0))
43/*@=macrofcndecl@*/
44/*@=macroparams@*/
45
46/*@notfunction@*/
47# define GET(s) ((s *)smalloc(sizeof(s)))
48
28bf4b0b 49/*@-czechfcns@*/
885824d3 50extern bool isHeaderFile (cstring) /*@*/ ;
51
52extern void fputline (FILE *p_out, char *p_s) /*@modifies p_out@*/;
53
54extern int int_log (int p_x) /*@*/ ;
55
56extern char char_fromInt (int p_x) /*@*/ ;
57
28bf4b0b 58extern /*@exposed@*/ cstring removePreDirs (cstring p_s);
885824d3 59
60/* These are defined by the bison library (?) */
61extern /*@external@*/ int isatty (int);
62extern /*@external@*/ int yywrap (void);
28bf4b0b 63/*@=czechfcns@*/
885824d3 64
65# else
66# error "Multiple include"
67# endif
28bf4b0b 68
69
70
71
72
This page took 0.071944 seconds and 5 git commands to generate.