]> andersk Git - splint.git/blame - src/Headers/misc.h
Fixed line numbering when multi-line macro parameters are used.
[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
15# ifndef NOLCL
16# include "lclMisc.h"
17# endif
18
19extern void assertSet (/*@special@*/ /*@sef@*/ /*@unused@*/ void *p_x)
20 /*@sets p_x, *p_x@*/ ;
21# define assertSet(x) ;
22
cd7d9b17 23extern void assertDefined (/*@sef@*/ /*@unused@*/ void *p_x) ;
24# define assertDefined(x) ;
25
26
885824d3 27/*@-czechfcns@*/
86d93ed3 28extern int size_toInt (size_t p_x) /*@*/ /*@ensures result==p_x@*/;
29extern long size_toLong (size_t p_x) /*@*/ /*@ensures result==p_x@*/ ;
30extern size_t size_fromInt (int p_x) /*@*/ /*@ensures result==p_x@*/ ;
31extern int longUnsigned_toInt (long unsigned int p_x) /*@*/ /*@ensures result==p_x@*/ ;
32extern int long_toInt (long p_x) /*@*/ /*@ensures result==p_x@*/;
33extern long unsigned longUnsigned_fromInt (int p_x) /*@*/ /*@ensures result==p_x@*/ ;
885824d3 34/*@=czechfcns@*/
35
abd7f895 36# include "mstring.h"
885824d3 37
885824d3 38
39extern int int_compare (/*@sef@*/ int p_x, /*@sef@*/ int p_y) /*@*/ ;
40# define int_compare(x,y) (((x) > (y)) ? 1 : (((x) < (y)) ? -1 : 0))
41
42/*@-macroparams@*/
43/*@-macrofcndecl@*/ /* works for lots of types */
44# define generic_compare(x,y) (((x) > (y)) ? 1 : (((x) < (y)) ? -1 : 0))
45/*@=macrofcndecl@*/
46/*@=macroparams@*/
47
48/*@notfunction@*/
49# define GET(s) ((s *)smalloc(sizeof(s)))
50
28bf4b0b 51/*@-czechfcns@*/
885824d3 52extern bool isHeaderFile (cstring) /*@*/ ;
53
54extern void fputline (FILE *p_out, char *p_s) /*@modifies p_out@*/;
55
56extern int int_log (int p_x) /*@*/ ;
57
58extern char char_fromInt (int p_x) /*@*/ ;
59
28bf4b0b 60extern /*@exposed@*/ cstring removePreDirs (cstring p_s);
885824d3 61
62/* These are defined by the bison library (?) */
63extern /*@external@*/ int isatty (int);
64extern /*@external@*/ int yywrap (void);
28bf4b0b 65/*@=czechfcns@*/
885824d3 66
67# else
68# error "Multiple include"
69# endif
28bf4b0b 70
71
72
73
74
This page took 0.089945 seconds and 5 git commands to generate.