Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtksh / ksh93 / src / lib / libast / include / sfdisc.h
1 /* $XConsortium: sfdisc.h /main/2 1996/05/08 19:43:47 drk $ */
2 /***************************************************************
3 *                                                              *
4 *                      AT&T - PROPRIETARY                      *
5 *                                                              *
6 *         THIS IS PROPRIETARY SOURCE CODE LICENSED BY          *
7 *                          AT&T CORP.                          *
8 *                                                              *
9 *                Copyright (c) 1995 AT&T Corp.                 *
10 *                     All Rights Reserved                      *
11 *                                                              *
12 *           This software is licensed by AT&T Corp.            *
13 *       under the terms and conditions of the license in       *
14 *       http://www.research.att.com/orgs/ssr/book/reuse        *
15 *                                                              *
16 *               This software was created by the               *
17 *           Software Engineering Research Department           *
18 *                    AT&T Bell Laboratories                    *
19 *                                                              *
20 *               For further information contact                *
21 *                     gsf@research.att.com                     *
22 *                                                              *
23 ***************************************************************/
24
25 /* : : generated by proto : : */
26                   
27 /*
28  * AT&T Bell Laboratories
29  *
30  * sfio discipline interface definitions
31  */
32
33 #ifndef _SFDISC_H
34 #if !defined(__PROTO__)
35 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
36 #if defined(__cplusplus)
37 #define __MANGLE__      "C"
38 #else
39 #define __MANGLE__
40 #endif
41 #define __STDARG__
42 #define __PROTO__(x)    x
43 #define __OTORP__(x)
44 #define __PARAM__(n,o)  n
45 #if !defined(__STDC__) && !defined(__cplusplus)
46 #if !defined(c_plusplus)
47 #define const
48 #endif
49 #define signed
50 #define void            int
51 #define volatile
52 #define __V_            char
53 #else
54 #define __V_            void
55 #endif
56 #else
57 #define __PROTO__(x)    ()
58 #define __OTORP__(x)    x
59 #define __PARAM__(n,o)  o
60 #define __MANGLE__
61 #define __V_            char
62 #define const
63 #define signed
64 #define void            int
65 #define volatile
66 #endif
67 #if defined(__cplusplus) || defined(c_plusplus)
68 #define __VARARG__      ...
69 #else
70 #define __VARARG__
71 #endif
72 #if defined(__STDARG__)
73 #define __VA_START__(p,a)       va_start(p,a)
74 #else
75 #define __VA_START__(p,a)       va_start(p)
76 #endif
77 #endif
78
79 #define _SFDISC_H
80
81 #include <ast.h>
82
83 /*
84  * %(...) printf support
85  */
86
87 typedef int (*Sf_key_lookup_t) __PROTO__((__V_*, const char*, const char*, int, char**, long*));
88 typedef char* (*Sf_key_convert_t) __PROTO__((__V_*, const char*, const char*, int, char*, long));
89
90 extern __MANGLE__ int           sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_convert_t));
91
92 /*
93  * slow io exception discipline
94  */
95
96 extern __MANGLE__ int           sfslowio __PROTO__((Sfio_t*));
97
98 #endif