[go: up one dir, main page]

File: dwarves_emit.h

package info (click to toggle)
dwarves 1.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,908 kB
  • sloc: ansic: 154,000; python: 926; sh: 725; makefile: 194
file content (39 lines) | stat: -rw-r--r-- 1,254 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
#ifndef _DWARVES_EMIT_H_
#define _DWARVES_EMIT_H_ 1
/*
  SPDX-License-Identifier: GPL-2.0-only

  Copyright (C) 2006 Mandriva Conectiva S.A.
  Copyright (C) 2006 Arnaldo Carvalho de Melo <acme@mandriva.com>
  Copyright (C) 2007 Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
*/

#include <stdio.h>
#include <stdint.h>
#include "list.h"

struct cu;
struct ftype;
struct tag;
struct type;
struct conf_fprintf;

struct type_emissions {
	struct list_head definitions; /* struct type entries */
	struct list_head base_type_definitions; /* struct base_type entries */
	struct list_head fwd_decls;   /* struct class entries */
	struct conf_fprintf *conf_fprintf;
};

void type_emissions__init(struct type_emissions *temissions, struct conf_fprintf *conf_fprintf);

int ftype__emit_definitions(struct ftype *ftype, struct cu *cu,
			    struct type_emissions *emissions, FILE *fp);
int type__emit_definitions(struct tag *tag, struct cu *cu,
			   struct type_emissions *emissions, FILE *fp);
void type__emit(struct tag *tag_type, struct cu *cu,
		const char *prefix, const char *suffix, FILE *fp);
struct type *type_emissions__find_definition(const struct type_emissions *temissions,
					     uint16_t tag, const char *name);

#endif /* _DWARVES_EMIT_H_ */