File: meta.h

package info (click to toggle)
snacc 1.3bbn-9.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,484 kB
  • ctags: 4,134
  • sloc: ansic: 35,869; sh: 7,050; cpp: 4,380; yacc: 2,215; lex: 517; makefile: 253; sed: 4
file content (54 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (8)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * file: compiler/core/meta.h
 *
 * Copyright  1994 1995 Robert Joop <rj@rainbow.in-berlin.de>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program and the associated libraries are distributed in the hope
 * that they will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License and GNU Library General
 * Public License for more details.
 *
 * $Header: /usr/app/odstb/CVS/snacc/compiler/core/meta.h,v 1.4 1995/09/07 19:14:26 rj Exp $
 * $Log: meta.h,v $
 * Revision 1.4  1995/09/07 19:14:26  rj
 * enum MetaNameStyle introduced.
 *
 * Revision 1.3  1995/08/17  15:00:12  rj
 * the PDU flag belongs to the metacode, not only to the tcl interface. (type and variable named adjusted)
 *
 * Revision 1.1  1995/07/27  10:54:11  rj
 * new file
 */

#if META

typedef enum
{
  META_off = 0,		/* metacode generation disabled */
  META_asn1_names,	/* names as defined in .asn1 file */
  META_backend_names,	/* names as being used by the backend code */
} MetaNameStyle;

typedef struct
{
  const char	*srcfn;
  FILE		*srcfp;
} Meta;

typedef struct MetaPDU
{
  const char	*module, *type;
  int		used;

  struct MetaPDU	*next;
} MetaPDU;

extern int	isMetaPDU PROTO ((const char *module, const char *type, MetaPDU *pdus));

#endif /* META */