source: trunk/Lucide/SOURCE/sominc/sombtype.h @ 88

Last change on this file since 88 was 88, checked in by Eugene Romanenko, 15 years ago

UI improvements, save files, ability to compile plugins with gcc, saveAs for djvu plugin, djvu plugin compiled with gcc, get rid of ddjvuapi.dll

File size: 2.0 KB
Line 
1/*
2 *   COMPONENT_NAME: somk
3 *
4 *   ORIGINS: 27
5 *
6 *
7 *    25H7912  (C)  COPYRIGHT International Business Machines Corp. 1992,1994,1996
8 *   All Rights Reserved
9 *   Licensed Materials - Property of IBM
10 *   US Government Users Restricted Rights - Use, duplication or
11 *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
12 */
13/* @(#) somk/sombtype.h 2.10.1.4 3/25/96 19:45:45 [7/30/96 14:46:36] */
14
15/*
16 */
17
18/*
19 *    SOMBTYPE.H
20 *    SOM Base Data Types
21 */
22
23#ifndef sombtype_h
24#define sombtype_h
25
26#include <stdarg.h>
27#include <stddef.h>
28
29/*--------------------------------------------------------------
30 * Basic SOM data types for C and C++
31 */
32/* -- Generic SOM Method Procedure Pointers */
33#if defined(__OS2__) && defined(__IBMC__)
34  #ifndef __cplusplus
35    #pragma linkage( somMethodProc, system )
36    #pragma linkage( somTP_somClassInitFunc, system)
37  #endif
38#endif
39
40typedef void* SOMLINK somMethodProc(void*);
41typedef somMethodProc SOMDLINK *somMethodPtr;
42typedef void SOMLINK somTP_somClassInitFunc(void *somSelf);
43
44#ifndef NULL
45  #ifdef __cplusplus
46    #define NULL 0
47  #else
48    #define NULL ((void *) 0)
49  #endif
50#endif
51
52typedef char integer1;
53typedef short integer2;
54typedef unsigned short uinteger2;
55typedef long integer4;
56typedef unsigned long uinteger4;
57typedef float float4;
58typedef double float8;
59typedef char *zString;                 /* NULL terminated string */
60typedef char *fString;                 /* non-terminated string  */
61typedef char **somId;
62typedef void *somToken;                /* Uninterpretted value   */
63typedef signed char signed_char;
64
65#ifndef SOM_BOOLEAN
66  #define SOM_BOOLEAN
67  typedef unsigned char boolean;
68#endif /* SOM_BOOLEAN */
69
70#define SOM_DynamicMethod  1
71#define SOM_StaticMethod   0
72
73/*
74 *    Comment macros for arguments
75 */
76#ifndef IN
77#define IN
78#endif
79
80#ifndef OUT
81#define OUT
82#endif
83
84#ifndef INOUT
85#define INOUT
86#endif
87
88
89#endif /* sombtype_h */
Note: See TracBrowser for help on using the repository browser.