Various minor fixes for compiler/linter (other then splint itself) warnings.
[splint-patched.git] / src / Headers / mtAnnotationDecl.h
blobfdeaa7d04a4ee26a420cb08eb06e18b5f19f04a7
1 /*
2 ** Copyright (C) University of Virginia, Massachusetts Institue of Technology 1994-2003.
3 ** See ../LICENSE for license information.
4 **
5 */
6 /*
7 ** mtAnnotationDecl.h
8 */
10 # ifndef MTANNOTATIONDECL_H
11 # define MTANNOTATIONDECL_H
13 struct s_mtAnnotationDecl {
14 cstring name;
15 cstring value;
16 mtContextNode context;
17 fileloc loc;
18 } ;
20 extern cstring mtAnnotationDecl_unparse (mtAnnotationDecl p_node) /*@*/ ;
22 extern mtAnnotationDecl
23 mtAnnotationDecl_create (/*@only@*/ mttok p_id, /*@only@*/ mtContextNode p_c, /*@only@*/ mttok p_value) /*@*/ ;
25 extern /*@observer@*/ cstring mtAnnotationDecl_getName (mtAnnotationDecl p_annot) /*@*/ ;
26 # define mtAnnotationDecl_getName(annot) ((annot)->name)
28 extern /*@observer@*/ cstring mtAnnotationDecl_getValue (mtAnnotationDecl p_annot) /*@*/ ;
29 # define mtAnnotationDecl_getValue(annot) ((annot)->value)
31 extern /*@only@*/ mtContextNode mtAnnotationDecl_stealContext (mtAnnotationDecl p_annot) /*@modifies p_annot@*/ ;
33 extern /*@observer@*/ mtContextNode mtAnnotationDecl_getContext (mtAnnotationDecl p_annot) /*@*/ ;
34 # define mtAnnotationDecl_getContext(annot) ((annot)->context)
36 extern /*@observer@*/ fileloc mtAnnotationDecl_getLoc (mtAnnotationDecl p_annot) /*@*/ ;
37 # define mtAnnotationDecl_getLoc(annot) ((annot)->loc) /*@i25@*/
39 # else
40 # error "Multiple include"
41 # endif