RasMol2
|
Announce,
ChangeLog,
ChangeLog.1,
ChangeLog.2,
ChangeLog.3,
ChangeLog.4,
INSTALL,
Imakefile,
Makefile,
Makefile.bak,
Makefile.in,
Makefile.nt,
Makefile.pc,
PROJECTS,
README,
TODO,
abstree.c,
abstree.h,
applemac.c,
bitmaps.h,
command.c,
command.h,
data,
doc,
font.h,
graphics.h,
molecule.c,
molecule.h,
mswin,
mswin31.c,
outfile.c,
outfile.h,
pixutils.c,
pixutils.h,
rasmac.c,
rasmol.c,
rasmol.h,
rasmol.hlp,
rasmol.sh,
raswin.c,
render.c,
render.h,
script.c,
script.h,
tokens.h,
transfor.c,
transfor.h,
vms,
x11win.c,
|
|
|
/* rasmol.h
* RasMol2 Molecular Graphics
* Roger Sayle, October 1994
* Version 2.5
*/
/*****************************/
/* User Definable Options! */
/*****************************/
/* #define IBMPC */
/* #define APPLEMAC */
/* #define DIALBOX */
#define TERMIOS
#define MITSHM
/* Use Default Depth! */
/* #define THIRTYTWOBIT */
/* #define EIGHTBIT */
/**************************/
/* Default User Options! */
/**************************/
#ifdef IBMPC
#undef THIRTYTWOBIT
#endif
#if !defined(EIGHTBIT) && !defined(THIRTYTWOBIT)
#define EIGHTBIT
#endif
#ifndef RASMOLDIR
#ifdef IBMPC
#define RASMOLDIR "C:\\RASWIN\\"
#endif
#if !defined(IBMPC) && !defined(APPLEMAC) && !defined(VMS)
#define RASMOLDIR "/usr/local/lib/rasmol/"
#endif
#endif
#if !defined(INVERT) && defined(IBMPC)
#define INVERT
#endif
#ifndef FUNCPROTO
#if defined(__STDC__) || defined(IBMPC) || defined(APPLEMAC)
#define FUNCPROTO
#endif
#endif
/********************************/
/* Application-wide Constants */
/********************************/
#ifndef True
#define True 1
#define False 0
#endif
#ifndef PI /* Avoid Linux Warnings! */
#define PI 3.14159265358979323846
#endif
typedef double Real;
#ifndef APPLEMAC
typedef unsigned char Byte;
#endif
#ifdef __STDC__
typedef signed char Char;
#else
typedef char Char;
#endif
#ifdef _LONGLONG
typedef unsigned int Card;
typedef int Long;
#else
typedef unsigned long Card;
typedef long Long;
#endif
#ifdef EIGHTBIT
typedef Byte Pixel;
#else
typedef Long Pixel;
#endif
#define Rad2Deg (180.0/PI)
#define Deg2Rad (PI/180.0)
#define AbsFun(a) (((a)<0)? -(a) : (a))
#define MinFun(a,b) (((a)<(b))? (a) : (b) )
#define MaxFun(a,b) (((a)>(b))? (a) : (b) )
#if defined(__STDC__) || defined(IBMPC) || defined(APPLEMAC) || defined(__sgi)
#define ToUpper(x) (toupper((x)))
#else
#define ToUpper(x) (islower((x))?toupper((x)):(x))
#endif
#if !defined(IBMPC) || defined(_WIN32)
#ifdef APPLEMAC
#define _fmalloc NewPtrSys
#define _ffree(x) DisposePtr((Ptr)(x))
#else
#define _fmalloc malloc
#define _ffree free
#endif
#define _fstrcmp strcmp
#define _fmemset memset
#define __huge
#define __far
#endif
#define ItemCount 8
#define AdvPickAtom 0
#define AdvPickNumber 1
#define AdvSelectCount 2
#define AdvName 3
#define AdvIdent 4
#define AdvClass 5
#define AdvImage 6
#define AdvPickCoord 7
#ifndef RASMOL
#ifdef FUNCPROTO
void WriteChar( int );
void WriteString( char* );
void RasMolFatalExit( char* );
void AdviseUpdate( int );
void RefreshScreen();
void RasMolExit();
#else /* non-ANSI C compiler */
void WriteChar();
void WriteString();
void RasMolFatalExit();
void RefreshScreen();
void AdviseUpdate();
void RasMolExit();
#endif
#endif
|