1 |
wdelano |
58 |
#include <stdio.h> |
2 |
|
|
#include <stdlib.h> |
3 |
|
|
#include <unistd.h> |
4 |
|
|
#include <stddef.h> |
5 |
|
|
#include <string.h> |
6 |
|
|
#include <ctype.h> |
7 |
|
|
#include <math.h> |
8 |
|
|
#include <limits.h> |
9 |
|
|
//#include <malloc.h> |
10 |
|
|
//#include <direct.h> |
11 |
tjod |
3 |
|
12 |
wdelano |
58 |
#define strnicmp strncasecmp |
13 |
tjod |
3 |
|
14 |
|
|
#define TRUE True |
15 |
|
|
#define FALSE False |
16 |
wdelano |
58 |
#define true True |
17 |
|
|
#define false False |
18 |
tjod |
3 |
|
19 |
|
|
#ifndef PI /* Avoid Linux Warnings! */ |
20 |
|
|
#define PI 3.14159265358979323846 |
21 |
|
|
#endif |
22 |
|
|
|
23 |
|
|
#define Rad2Deg (180.0/PI) |
24 |
|
|
#define Deg2Rad (PI/180.0) |
25 |
|
|
#define AbsFun(a) (((a)<0)? -(a) : (a)) |
26 |
|
|
#define MinFun(a,b) (((a)<(b))? (a) : (b) ) |
27 |
|
|
#define MaxFun(a,b) (((a)>(b))? (a) : (b) ) |
28 |
|
|
|
29 |
|
|
|
30 |
|
|
struct FileInfoStruct { |
31 |
|
|
int ftype ; |
32 |
|
|
char path[255] ; |
33 |
|
|
char fname[255] ; |
34 |
|
|
} ; |
35 |
|
|
|
36 |
|
|
typedef struct FileInfoStruct Boxstruct; |
37 |
|
|
EXTERN Boxstruct Openbox ,Savebox; |
38 |
gilbertke |
63 |
|
39 |
|
|
// global routines |
40 |
|
|
void message_alert(char *, char *); |