From: Ton v. O. <tvo...@us...> - 2007-09-28 01:23:31
|
Update of /cvsroot/easycalc/easycalc/include In directory sc8-pr-cvs17:/tmp/cvs-serv6359/include Modified Files: defuns.h Added Files: dbutil.h Log Message: Set backup attribute on calc_xxx.prc and all databases. Use a single function for opening the databases (dbutil.[ch]). --- NEW FILE: dbutil.h --- /* * $Id: dbutil.h,v 1.1 2007/09/28 01:23:25 tvoverbe Exp $ * * Scientific Calculator for Palms. * Copyright (C) 1999,2000,2007 Ondrej Palkovsky * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * 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., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. * * You can contact me at 'on...@pe...'. */ #ifndef _DBUTIL_H_ #define _DBUTIL_H_ #include <PalmOS.h> Int16 open_db(const Char *name, UInt16 dbversion, UInt32 crid, UInt32 dbtype, DmOpenRef *dbref); #endif Index: defuns.h =================================================================== RCS file: /cvsroot/easycalc/easycalc/include/defuns.h,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** defuns.h 28 Dec 2006 03:16:17 -0000 1.40 --- defuns.h 28 Sep 2007 01:23:25 -0000 1.41 *************** *** 32,47 **** /* Application specific things */ ! #define APP_ID 'OpCl' ! #define LIB_ID 'OpCl' ! #define DBNAME "CalcDB-OpCl" #define HISTORYDBNAME "CalcDB-H-OpCl" ! #define SOLVERDBNAME "CalcDB-S-OpCl" ! #define DBTYPE 'Data' ! #define SOLVERDBTYPE 'Slvr' ! #define CARDNO 0 ! #define DBVERSION 5 ! #define HIST_DB_VERSION 6 ! #define SOLVER_DB_VERSION 1 #define PREF_DEFAULT 0 --- 32,47 ---- /* Application specific things */ ! #define APP_ID 'OpCl' ! #define LIB_ID 'OpCl' ! #define DBNAME "CalcDB-OpCl" #define HISTORYDBNAME "CalcDB-H-OpCl" ! #define SOLVERDBNAME "CalcDB-S-OpCl" ! #define DBTYPE 'Data' ! #define SOLVERDBTYPE 'Slvr' ! #define CARDNO 0 ! #define DBVERSION 5 ! #define HIST_DB_VERSION 6 ! #define SOLVER_DB_VERSION 1 #define PREF_DEFAULT 0 *************** *** 53,57 **** /* Change this if you are changing contents of the preferences structure */ ! #define PREF_VERSION 44 #define PREF_RES_VERSION 2 #define PREF_GRAPH_VERSION 5 --- 53,57 ---- /* Change this if you are changing contents of the preferences structure */ ! #define PREF_VERSION 44 #define PREF_RES_VERSION 2 #define PREF_GRAPH_VERSION 5 *************** *** 62,74 **** /* Maximum length of normal strings copied from tSTR */ #define MAX_RSCLEN 30 ! #define MAX_RESULT 17 /* Rounding offset for reduce precision */ ! #define ROUND_OFFSET 13 #define PRECISION_TO_ZERO 1E-12 /* konvert.c constants */ #define MAX_RPNSIZE 105 ! #define MAX_OSTACK 45 #define NaN ((double)(3-3)/(3-3)) --- 62,74 ---- /* Maximum length of normal strings copied from tSTR */ #define MAX_RSCLEN 30 ! #define MAX_RESULT 17 /* Rounding offset for reduce precision */ ! #define ROUND_OFFSET 13 #define PRECISION_TO_ZERO 1E-12 /* konvert.c constants */ #define MAX_RPNSIZE 105 ! #define MAX_OSTACK 45 #define NaN ((double)(3-3)/(3-3)) |