]> andersk Git - splint.git/blame - src/Headers/flagMarker.h
Created html faq file to replace the faq.txt
[splint.git] / src / Headers / flagMarker.h
CommitLineData
885824d3 1/*
c0de361f 2** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
885824d3 3** See ../LICENSE for license information.
4**
5*/
6/*
7** invariant: line1 <= line2
8** if line1 == line2, col1 <= col2.
9*/
10
11# ifndef FLAGMARKER_H
12# define FLAGMARKER_H
13
14typedef enum
15{
16 FMK_LOCALSET,
17 FMK_IGNOREON,
18 FMK_IGNORECOUNT,
19 FMK_IGNOREOFF,
20 FMK_SUPPRESS
21} flagMarkerKind ;
22
28bf4b0b 23typedef struct
885824d3 24{
25 flagMarkerKind kind;
26 flagcode code;
27
28 /*@reldef@*/ union {
29 ynm set;
30 int nerrors;
31 } info;
32
28bf4b0b 33 fileloc loc;
885824d3 34} *flagMarker ;
35
36extern bool flagMarker_isLocalSet (flagMarker p_c) /*@*/ ;
37# define flagMarker_isLocalSet(c) ((c)->kind == FMK_LOCALSET)
38
39extern bool flagMarker_isSuppress (flagMarker p_c) /*@*/ ;
40# define flagMarker_isSuppress(c) ((c)->kind == FMK_SUPPRESS)
41
42extern bool flagMarker_isIgnoreOn (flagMarker p_c) /*@*/ ;
43# define flagMarker_isIgnoreOn(c) ((c)->kind == FMK_IGNOREON)
44
45extern bool flagMarker_isIgnoreOff (flagMarker p_c) /*@*/ ;
46# define flagMarker_isIgnoreOff(c) ((c)->kind == FMK_IGNOREOFF)
47
48extern bool flagMarker_isIgnoreCount (flagMarker p_c) /*@*/ ;
49# define flagMarker_isIgnoreCount(c) ((c)->kind == FMK_IGNORECOUNT)
50
51extern flagMarker
52 flagMarker_createLocalSet (flagcode p_code, ynm p_set, fileloc p_loc) /*@*/ ;
53
54extern flagMarker
55 flagMarker_createIgnoreOn (fileloc p_loc) /*@*/ ;
56
57extern flagMarker
58 flagMarker_createIgnoreOff (fileloc p_loc) /*@*/ ;
59
60extern flagMarker
61 flagMarker_createIgnoreCount (int p_count, fileloc p_loc) /*@*/ ;
62
63extern flagMarker
64 flagMarker_createSuppress (flagcode p_code, fileloc p_loc) /*@*/ ;
65
66extern void flagMarker_free (/*@only@*/ flagMarker p_c) ;
67
68extern bool flagMarker_sameFile (flagMarker p_c, fileloc p_loc) /*@*/ ;
69extern /*@only@*/ cstring flagMarker_unparse (flagMarker p_c) /*@*/ ;
70
71extern bool flagMarker_beforeMarker (flagMarker p_c, fileloc p_loc) /*@*/ ;
72
abd7f895 73extern bool flagMarker_equal (flagMarker p_f1, flagMarker p_f2) /*@*/ ;
74
885824d3 75extern ynm flagMarker_getSet (flagMarker p_f) /*@*/ ;
76extern flagcode flagMarker_getCode (flagMarker p_f) /*@*/ ;
77extern int flagMarker_getCount (flagMarker p_f) /*@*/ ;
78
79extern /*@observer@*/ fileloc flagMarker_getLoc (flagMarker p_f) /*@*/ ;
80
81# define flagMarker_getLoc(f) ((f)->loc)
82
83# else
84# error "Multiple include"
85# endif
This page took 0.071798 seconds and 5 git commands to generate.