ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/freemol/trunk/src/mengine/src/pcwin.h
Revision: 63
Committed: Wed Dec 3 03:46:32 2008 UTC (12 years, 10 months ago) by gilbertke
File size: 813 byte(s)
Log Message:
updated read_sdf type_mmx and first pass at using best practices
Line File contents
1 #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
12 #define strnicmp strncasecmp
13
14 #define TRUE True
15 #define FALSE False
16 #define true True
17 #define false False
18
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
39 // global routines
40 void message_alert(char *, char *);