Moved some stuff around.
[jben2_gui.git] / c / kpengine / pilotcompat.h
blob27b8dcb7ebffa3ec96c7279c9632210f91e47340
1 /* -*- mode: C; c-file-style: "bsd"; tab-width: 4 -*- */
2 /* pilotcompat.h - non-Pilot compatibility defines, particularly for Unix.
3 * JStroke 1.x - Japanese Kanji handwriting recognition technology demo.
4 * Copyright (C) 1997 Robert E. Wells
5 * http://wellscs.com/pilot
6 * mailto:robert@wellscs.com
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program (gpl.html); if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 * pilotcompat.h created by Owen Taylor <owt1@cornell.edu>, 9/1997.
23 * Owen is using the jstroke recognition code on Linux in his KanjiPad
24 * application, and uses pilotcompat.h to provide compatibility with some
25 * Pilot environment definitions. Owen says: "It's a rough attempt -
26 * it probably would need some small changes for machines where malloc
27 * returns (char *) instead of (void *)." -19970907.
29 * -------------------------------------------------------------------------*/
31 #ifndef __PILOTCOMPAT_H__
32 #define __PILOTCOMPAT_H__
34 #include <stdio.h>
35 #include <stdlib.h>
36 #include <string.h>
38 typedef int Boolean;
39 typedef unsigned char Byte;
40 typedef long Long;
41 typedef unsigned long ULong;
42 typedef unsigned int UInt;
43 typedef void * VoidPtr;
44 typedef char * CharPtr;
46 #define MemPtrNew malloc
47 #define MemPtrFree free
48 #define StrLen strlen
49 #define StrIToA(str, n) sprintf((str),"%ld",(long)(n))
50 #define StrIToH(str, n) sprintf((str),"%lx",(long)(n))
51 #define false 0
52 #define true 1
54 #endif /*__PILOTCOMPAT_H__*/
55 /* ----- End of pilotcompat.h --------------------------------------------- */