43 |
root |
1 |
/***************************************************************************
|
52 |
andreas |
2 |
* Copyright (C) 2007 by Andreas Theofilu *
|
|
|
3 |
* andreas@TheoSys.at *
|
43 |
root |
4 |
* *
|
|
|
5 |
* This program is free software; you can redistribute it and/or modify *
|
|
|
6 |
* it under the terms of the GNU General Public License as published by *
|
52 |
andreas |
7 |
* the Free Software Foundation version 3 of the License. *
|
43 |
root |
8 |
* *
|
|
|
9 |
* This program is distributed in the hope that it will be useful, *
|
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
12 |
* GNU General Public License for more details. *
|
|
|
13 |
* *
|
|
|
14 |
* You should have received a copy of the GNU General Public License *
|
|
|
15 |
* along with this program; if not, write to the *
|
|
|
16 |
* Free Software Foundation, Inc., *
|
|
|
17 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
18 |
***************************************************************************/
|
|
|
19 |
|
|
|
20 |
#ifndef _helper_h
|
|
|
21 |
#define _helper_h
|
|
|
22 |
|
|
|
23 |
#ifndef BOOL
|
|
|
24 |
typedef unsigned char BOOL;
|
|
|
25 |
#endif
|
|
|
26 |
|
|
|
27 |
#ifndef TRUE
|
|
|
28 |
#define TRUE 1
|
|
|
29 |
#endif
|
|
|
30 |
|
|
|
31 |
#ifndef FALSE
|
|
|
32 |
#define FALSE 0
|
|
|
33 |
#endif
|
|
|
34 |
|
|
|
35 |
extern int MonLeiste[];
|
|
|
36 |
|
|
|
37 |
int ComputeSize (int OrgLen, int NewLen, int OrgSize);
|
|
|
38 |
void date_int (int *day, int *mon, int *year, long date);
|
|
|
39 |
double integer (double zahl);
|
|
|
40 |
double round (double zahl, int prez);
|
|
|
41 |
long get_date (char *sdate);
|
|
|
42 |
long get_gebos_date (char *sdate, int kenn);
|
|
|
43 |
void set_feb (int year);
|
|
|
44 |
long DateToDay (long date);
|
|
|
45 |
long DayToDate (long days);
|
|
|
46 |
long make_date (int day, int mon, int year);
|
|
|
47 |
char *PointNumber (double Zahl, int prec, char *ret);
|
|
|
48 |
|
|
|
49 |
#endif // _helper_h
|