2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
25 * $XConsortium: write_cP.h /main/3 1995/11/06 18:18:07 rswiston $
27 * @(#)write_cP.h 1.6 16 Feb 1994 cde_app_builder/src/abmf
29 * RESTRICTED CONFIDENTIAL INFORMATION:
31 * The information in this document is subject to special
32 * restrictions in a confidential disclosure agreement between
33 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
34 * document outside HP, IBM, Sun, USL, SCO, or Univel without
35 * Sun's specific written approval. This document and all copies
36 * and derivative works thereof must be returned or destroyed at
39 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
44 * write_cP.h - generic utilities for writing C output
46 #ifndef _ABMF_WRITE_CP_H_
47 #define _ABMF_WRITE_CP_H_
50 #include "write_codeP.h"
54 ABMF_MODIFY_UNDEF = 0,
56 ABMF_MODIFY_USER_SEGS,
59 ABMF_MODIFY_TYPE_NUM_VALUES
62 int abmfP_write_c_block_begin(GenCodeInfo genCodeInfo);
64 int abmfP_write_c_block_end(GenCodeInfo genCodeInfo);
66 int abmfP_write_c_comment(
67 GenCodeInfo genCodeInfo,
72 int abmfP_write_c_func_decl(
73 GenCodeInfo genCodeInfo,
77 ... /* "type", "name", ..., NULL */
80 int abmfP_write_c_func_begin(
81 GenCodeInfo genCodeInfo,
85 ... /* "type", "name", ..., NULL */
88 int abmfP_write_c_func_end(
93 int abmfP_write_c_include(GenCodeInfo, STRING file_name);
95 /* wriutes #include "blah" */
96 int abmfP_write_c_local_include(GenCodeInfo, STRING file_name);
98 /* writes #include <blah> */
99 int abmfP_write_c_system_include(GenCodeInfo, STRING file_name);
101 int abmfP_write_xm_callback_decl(
107 int abmfP_write_xm_callback_begin(
113 int abmfP_write_tooltalk_callback_decl(
119 int abmfP_write_session_save_callback_decl(
125 int abmfP_write_session_restore_callback_decl(
131 int abmfP_write_tooltalk_callback_begin(
138 int abmfP_write_clear_proc_decl(
143 int abmfP_write_msg_clear_proc_decl(
148 int abmfP_write_clear_proc_begin(
154 int abmfP_write_create_proc_decl(
159 int abmfP_write_create_proc_begin(
165 int abmfP_write_init_proc_decl(
170 int abmfP_write_init_proc_begin(
175 int abmfP_write_file_header(
176 GenCodeInfo genCodeInfo,
181 ABMF_MODIFY_TYPE modifyType,
185 int abmfP_write_file_footer(
186 GenCodeInfo genCodeInfo,
192 extern STRING abmfP_str_bool;
193 extern STRING abmfP_str_int;
194 extern STRING abmfP_str_string;
195 extern STRING abmfP_str_void;
196 extern STRING abmfP_str_void_ptr;
197 extern STRING abmfP_str_widget;
198 extern STRING abmfP_str_xtpointer;
201 extern STRING abmfP_str_empty; /* "" */
202 extern STRING abmfP_str_null; /* "NULL" */
203 extern STRING abmfP_str_zero; /* "0" */
205 #endif /* _ABMF_WRITE_CP_H_ */