e714d2eaa1
Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
39 lines
1.2 KiB
C
39 lines
1.2 KiB
C
#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 "list.h"
|
|
|
|
struct cu;
|
|
struct ftype;
|
|
struct tag;
|
|
struct type;
|
|
|
|
struct type_emissions {
|
|
struct list_head definitions; /* struct type entries */
|
|
struct list_head fwd_decls; /* struct class entries */
|
|
};
|
|
|
|
void type_emissions__init(struct type_emissions *temissions);
|
|
|
|
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);
|
|
int type__emit_fwd_decl(struct type *ctype, const 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,
|
|
const struct cu *cu,
|
|
const char *name);
|
|
|
|
#endif /* _DWARVES_EMIT_H_ */
|