File: label.h

package info (click to toggle)
faucc 20090220-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,356 kB
  • ctags: 2,846
  • sloc: ansic: 38,010; yacc: 1,595; xml: 519; lex: 378; makefile: 120; sh: 101
file content (41 lines) | stat: -rw-r--r-- 973 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* $Id: label.h,v 1.4 2009-01-27 15:40:22 potyra Exp $ 
 *
 * Copyright (C) 2008-2009 FAUcc Team <info@faumachine.org>.
 * This program is free software. You can redistribute it and/or modify it
 * under the terms of the GNU General Public License, either version 2 of
 * the License, or (at your option) any later version. See COPYING.
 */

#ifndef __LABEL_H_INCLUDED
#define __LABEL_H_INCLUDED

#include "stmt.h"

struct label {
	struct label *prev;
	struct label *next;

	const char *identifier;

	struct stmt *ref_first;
	struct stmt *ref_last;
	struct stmt *def_first;
	struct stmt *def_last;

	struct label *clone;
};

extern struct label *
label_new(const char *identifier);

extern void
label_ref_add(struct label *label, struct stmt *s);
extern void
label_ref_del(struct label *label, struct stmt *s);

extern void
label_def_add(struct label *label, struct stmt *s);
extern void
label_def_del(struct label *label, struct stmt *s);

#endif /* __LABEL_H_INCLUDED */