From: Mapi B. <ma...@us...> - 2009-09-24 21:15:38
|
Update of /cvsroot/easycalc/PPCport/compat In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14137 Modified Files: DataManager.cpp PalmOS.h Added Files: PalmOS.cpp Log Message: Subset of the code, compiling, but not yet linking Index: PalmOS.h =================================================================== RCS file: /cvsroot/easycalc/PPCport/compat/PalmOS.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PalmOS.h 6 Aug 2009 21:41:01 -0000 1.4 --- PalmOS.h 24 Sep 2009 21:15:27 -0000 1.5 *************** *** 70,74 **** #define SysRandom(x) (srand(x), rand()) #define sysRandomMax RAND_MAX ! unsigned long nan[2]={0xffffffff, 0x7fffffff}; #define NaN (*((double *) nan)) --- 70,74 ---- #define SysRandom(x) (srand(x), rand()) #define sysRandomMax RAND_MAX ! extern unsigned long nan[]; #define NaN (*((double *) nan)) *************** *** 77,81 **** ! #define ErrFatalDisplayIf(a,b) #define SYS_TRAP(a) --- 77,81 ---- ! void ErrFatalDisplayIf(int cond, TCHAR *msg); // Declared in Easycalc.cpp #define SYS_TRAP(a) --- NEW FILE: PalmOS.cpp --- /***************************************************************************** * EasyCalc -- a scientific calculator * Copyright (C) 2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *****************************************************************************/ #include "StdAfx.h" unsigned long nan[2]={0xffffffff, 0x7fffffff}; Index: DataManager.cpp =================================================================== RCS file: /cvsroot/easycalc/PPCport/compat/DataManager.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DataManager.cpp 6 Aug 2009 21:41:00 -0000 1.2 --- DataManager.cpp 24 Sep 2009 21:15:27 -0000 1.3 *************** *** 550,556 **** // Insert in the array if (i+1 < num) { ! memcpy (dbP->sortArray+i+1, ! dbP->sortArray+i, ! (num-i-1) * sizeof(DataRecord **)); } dbP->sortArray[i] = temp; --- 550,556 ---- // Insert in the array if (i+1 < num) { ! memmove (dbP->sortArray+i+1, ! dbP->sortArray+i, ! (num-i-1) * sizeof(DataRecord **)); } dbP->sortArray[i] = temp; |