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
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__
39 typedef unsigned char Byte
;
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
49 #define StrIToA(str, n) sprintf((str),"%ld",(long)(n))
50 #define StrIToH(str, n) sprintf((str),"%lx",(long)(n))
54 #endif /*__PILOTCOMPAT_H__*/
55 /* ----- End of pilotcompat.h --------------------------------------------- */