0853
|
ScianEvents.c,
ScianFixedClasses.h,
ScianFontSystem.c,
ScianGaryFiles.c,
ScianGeoBrush.h,
ScianHwuFiles.c,
ScianIcons.c,
ScianIcons.h,
ScianMain.c,
ScianObjFunctions.c,
ScianPictures.c,
ScianSpaces.c,
ScianVisMesh.c,
ScianVisObjects.c,
ScianWindowFunctions.c,
ScianWindowFunctions.h,
ScianWindows.c,
machine.h,
|
|
|
/*machine.h
Eric Pepke
May 29, 1991
Defines some machine-specific stuff
*/
#ifndef _H_L_MACHINE
#define _H_L_MACHINE
/*Names of libraries*/
#define LIBMALLOC "malloc" /*Faster MALLOC library*/
#define LIBHDF "df" /*NCSA HDF library*/
#define LIBNETCDF "netcdf" /*NetCDF library*/
#define LIBSUN "sun" /*sun library*/
#define LIBRPCSVC "rpcsvc" /*rpcsvc library*/
#define LIBJPEG "CLRjpeg4" /*JPEG library*/
#define LIBCAVESIM "cavesim" /*CAVE simulator library*/
#define LIBCAVE "cave" /*CAVE library*/
/*Supported machine types*/
#define IRIS4D 1 /*Silicon Graphics IRIS 4D*/
#define RS6000 2 /*IBM RS-6000*/
#define CRAYYMP 3 /*Cray Y/MP (computation only)*/
#define CONVEX 4 /*Convex*/
/*Attempt to guess the machine type based on built-in processor directives*/
#ifdef sgi
#define MACHINE IRIS4D /*4D cpp defines sgi*/
#else
#ifdef __sgi
#define MACHINE IRIS4D /*-ansi cpp defines sgi*/
#else
#define MACHINE RS6000 /*Must be a 6000*/
#endif
#endif
/*If this machine cannot be guessed, put in a #define MACHINE here*/
/*Depending on the machine, define (or don't) the following flags:
GL4D GL library as defined on the IRIS4D is present
FMATH math routines have float as well as double versions
MATHF math routines have float with f at end
FONTS4D fonts as defined on the IRIS4D are present
CURSORS4D cursors as defined on the IRIS4D are present
MENUS4D menus are done using GL as on the IRIS4D
MENUSGLOVER menus are done using GL overlay planes, if possible
WINDOWS4D windows are defined as on the IRIS4D
IRISNTSC NTSC functions as defined on the IRIS4D are present
IRIS the machine is some kind of IRIS, 4D or not
HAVE_PROTOTYPES use ANSI C prototypes (never been tested without)
DIRENT Directory is struct dirent else it is struct direct
FORTRAN_ FORTRAN routines need an underscore after the name
SOCKETS sockets are available and are to be used
STDLIB stdlib.h is present
INTERWINDRAG can drag between windows
WINNOCLOSE never actually close windows, just hide 'em
GETPWNAM use getpwnam call to determine ~name
MENUSFROM0 menus items are defined starting from 0 instead of 1
NOHIDEFRAME cannot hide window frames
GRAPHICS version has graphics at all
INTERACTIVE version has interactive functions at all
TERMIO machine has terminal IO, needed for some recorders
SELNEWWINDOWS select new windows when they are created
BIGFONTSOK big bit-mapped fonts are OK
GETGDESCAFTER must do all "getgdesc" after config, bug in IBM GL
NEEDSGAMMA machine doesn't do gamma correction, needs it.
IBMORTHO ortho and ortho2, funny for IBM
DONTCLIP don't try to clip windows to draw minimum possible
CHANGECURSOR change cursor when it moves from window to window
DIALBOX use dial box, if connected
GRAPHOBJ use graphical objects, if available
The following variables are set by ScianPreInstall
in machine.*.h
HDFDEF HDF library is defined
HDF31 HDF version 3.1 or earlier is present
NETCDFDEF netCDF library is defined
MALLOCH there is a malloc.h available and we're using the lib
FORTRAN we want to compile with FORTRAN
WINDOWSCAVESIM virtual windows are defined for the CAVE simulator
*/
#if MACHINE == IRIS4D
#define GL4D
#define MATHF
#define FONTS4D
#define CURSORS4D
#define IRISNTSC
#define IRIS
#define HAVE_PROTOTYPES
#define SOCKETS
#define FORTRAN_
#define STDLIB
#define INTERWINDRAG
#define GETPWNAM
#define MENUS4D
#define WINDOWS4D
#define GRAPHICS
#define INTERACTIVE
#define TERMIO
#define BIGFONTSOK
#define DIALBOX
#define GRAPHOBJ
#else
#if MACHINE == RS6000
#define GL4D
#define HAVE_PROTOTYPES
#define GETPWNAM
#define NOHIDEFRAME
#define INTERWINDRAG
#define MENUS4D
#define WINDOWS4D
#define GRAPHICS
#define INTERACTIVE
#define TERMIO
#define STDLIB
#define SELNEWWINDOWS
#define GETGDESCAFTER
#define NEEDSGAMMA
#define IBMORTHO
#define DONTCLIP
#define SOCKETS
#define GRAPHOBJ
/* Insert a #define MENUSFROM0 for version 3.1.5 */
#undef _ANSI_C_SOURCE /*Gotta do this; I don't know why.*/
#define DIRENT
#else
#if MACHINE == CONVEX
#define HAVE_PROTOTYPES
#define FORTRAN_
#define MATHF
#define SOCKETS
#define STDLIB
#define COMPONLY
#else
Hey! No machine is defined!
#endif
#endif
#endif
#endif
/*Include stuff for FORTRAN*/
#include "machine.fortran.h"
/*Include stuff for hdf library*/
#include "machine.hdf.h"
/*Include stuff for netCDF library*/
#include "machine.netcdf.h"
/*Include stuff for JPEG library*/
#include "machine.jpeg.h"
/*Include stuff for malloc library*/
#include "machine.malloc.h"
/*Include extras*/
#include "machine.extras.h"
/*Include cave stuff*/
#include "machine.cave.h"
/*Release version. Don't change this.*/
#if 1
#define RELEASE
#endif
|