00001 /* -*- mode: C; c-file-style: "bsd"; tab-width: 4 -*- */ 00002 /* memowrite.h - definitions for MemoWrite utility trace functions. 00003 * JStroke 1.x - Japanese Kanji handwriting recognition technology demo. 00004 * Copyright (C) 1997 Robert E. Wells 00005 * http://wellscs.com/pilot 00006 * mailto:robert@wellscs.com 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program (gpl.html); if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 * 00022 * See readme.txt, changelo, and gpl.html for more information. 00023 * 00024 * Commentary: 00025 * 00026 * This provides a mechanism for generating traces from a program as Pilot 00027 * Memo entries, where they can be examined, HotSync'ed, and deleted using 00028 * standard applications. 00029 * ------------------------------------------------------------------------- */ 00030 #ifndef __MEMOWRITE_H__ 00031 #define __MEMOWRITE_H__ 00032 00033 #ifdef FOR_MEMOWRITE 00034 00035 #define MemoWriteOpen() Memo_WriteOpen() 00036 #define MemoWriteClose() Memo_WriteClose() 00037 #define MemoWriteLen(a,b) Memo_WriteLen((a),(b)) 00038 #define MemoWrite(a) Memo_Write(a) 00039 #define MemoWriteln(a) Memo_Writeln(a) 00040 #define MemoWrite2(a,b) Memo_Write2((a),(b)) 00041 #define MemoWrite2d(a,b) Memo_Write2d((a),(b)) 00042 #define MemoWrite2h(a,b) Memo_Write2h((a),(b)) 00043 00044 void Memo_WriteOpen(void); 00045 void Memo_WriteClose(void); 00046 void Memo_WriteLen(char* cp, UInt len); 00047 void Memo_Write(char* cp); 00048 void Memo_Writeln(char* cp); 00049 void Memo_Write2(char* cp, char* cpVal); 00050 void Memo_Write2d(char* cp, long iVal); 00051 void Memo_Write2h(char* cp, long iVal); 00052 00053 #else /* FOR_MEMOWRITE not defined */ 00054 00055 #define MemoWriteOpen() 00056 #define MemoWriteClose() 00057 #define MemoWriteLen(a,b) 00058 #define MemoWrite(a) 00059 #define MemoWriteln(a) 00060 #define MemoWrite2(a,b) 00061 #define MemoWrite2d(a,b) 00062 #define MemoWrite2h(a,b) 00063 00064 #endif /* FOR_MEMOWRITE not defined */ 00065 00066 #endif /*__MEMOWRITE_H__*/ 00067 /* ----- end of memowrite.h ------------------------------------------------*/