printfuncs.h revision 2775:892d346f56a9
1284345Ssjg/*
2284345Ssjg * CDDL HEADER START
3284345Ssjg *
4284345Ssjg * The contents of this file are subject to the terms of the
5284345Ssjg * Common Development and Distribution License, Version 1.0 only
6284345Ssjg * (the "License").  You may not use this file except in compliance
7284345Ssjg * with the License.
8296587Sbdrewery *
9284345Ssjg * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10284345Ssjg * or http://www.opensolaris.org/os/licensing.
11284345Ssjg * See the License for the specific language governing permissions
12284345Ssjg * and limitations under the License.
13284345Ssjg *
14296587Sbdrewery * When distributing Covered Code, include this CDDL HEADER in each
15296587Sbdrewery * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16296587Sbdrewery * If applicable, add the following below this CDDL HEADER, with the
17296587Sbdrewery * fields enclosed by brackets "[]" replaced with your own identifying
18284345Ssjg * information: Portions Copyright [yyyy] [name of copyright owner]
19284345Ssjg *
20284345Ssjg * CDDL HEADER END
21284345Ssjg */
22284345Ssjg/*
23284345Ssjg * Copyright (c) 1997-1999 by Sun Microsystems, Inc.
24284345Ssjg * All rights reserved.
25 */
26
27#ifndef _PRINTFUNCS_H
28#define	_PRINTFUNCS_H
29
30#pragma ident	"%Z%%M%	%I%	%E% SMI"
31
32
33#ifdef	__cplusplus
34extern "C" {
35#endif
36
37/* Types */
38enum { CHAR, SHORT, UNSIGNED_SHORT, INT, UNSIGNED, LONG, UNSIGNED_LONG,
39	CHAR_P, POINTER, FLOAT, LONG_LONG, UNSIGNED_LONG_LONG, VOID_,
40	NONPRIMITIVE};
41
42void generate_printf(ENTRY *);
43
44/* Define, declare, initialize and use pointers to printfuncs. */
45void generate_print_definitions(FILE *);
46void generate_print_declarations(FILE *);
47void generate_print_initializations(void);
48void generate_printfunc_calls(ENTRY *); /* Use. */
49
50int is_void(ENTRY *);
51
52#ifdef	__cplusplus
53}
54#endif
55
56#endif	/* _PRINTFUNCS_H */
57