Changeset 105
- Timestamp:
- 03/02/2009 04:55:03 PM (15 years ago)
- Location:
- SH_SHM/branches/marcus/source
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/branches/marcus/source/basecnst.h
r104 r105 64 64 ******************************************************************/ 65 65 66 /* possible flags for operating system are67 * SH_SETUP_SUNOS68 * SH_SETUP_LINUX69 * SH_SETUP_AIX70 * SH_SETUP_HPUX71 * default is SH_SETUP_SUNOS72 */73 74 #if defined(SH_SETUP_SUNOS)75 #define cBc_OS_UNIX76 #define cBc_OS_SUNOS77 #elif defined(SH_SETUP_LINUX)78 #define cBc_OS_UNIX79 #define cBc_OS_LINUX80 #elif defined(SH_SETUP_AIX)81 #define cBc_OS_UNIX82 #define cBc_OS_AIX83 #elif defined(SH_SETUP_HPUX)84 #define cBc_OS_UNIX85 #define cBc_OS_HPUX86 #else87 #define cBc_OS_UNIX88 #define cBc_OS_SUNOS89 #endif90 91 /* for compatibility (should be removed some time) */92 #ifdef cBc_OS_UNIX93 #define BC_SUN94 #define cBc_SUN95 #endif96 97 98 99 66 /* select graphics */ 100 67 #define BC_G_MEM … … 132 99 /* type clock_t is available */ 133 100 134 135 /******************************************************************136 *** SUN version ***137 ******************************************************************/138 139 140 #ifdef BC_SUN141 142 143 101 /* only old style names */ 144 102 #define BC_SYSBASE "sysbase.h" … … 172 130 173 131 174 175 #endif /* BC_SUN */176 177 178 132 /****************************************************************** 179 133 *** END *** -
SH_SHM/branches/marcus/source/cpar.c
r16 r105 38 38 #include "cpar.h" 39 39 40 41 #ifdef BC_SUN42 40 #define QUALCHAR1 '-' 43 41 #define QUALCHAR2 '-' 44 #else45 #define QUALCHAR1 '-'46 #define QUALCHAR2 '/'47 #endif48 49 50 42 51 43 /* global variables */ -
SH_SHM/branches/marcus/source/errmsg.c
r102 r105 94 94 int errline; /* line number */ 95 95 char errfile[BC_LINELTH+1]; /* error file */ 96 # ifdef BC_SUN /* needed on sun only */97 96 char *eptr; /* pointer to environment variable */ 98 # endif99 97 100 98 /* executable code */ … … 102 100 /* check error path */ 103 101 if (*emv_errdir == '\0') { 104 # ifdef BC_SUN105 102 eptr = GpGetString( cGpS_defpath_errors ); 106 103 if (eptr == NULL) { … … 113 110 strcpy( emv_errdir, eptr ); 114 111 } /*endif*/ 115 # endif116 112 } /*endif*/ 117 113 -
SH_SHM/branches/marcus/source/fileopen.c
r16 r105 201 201 } /*endwhile*/ 202 202 203 # ifdef BC_SUN204 203 cptr = getenv( logname ); 205 204 if (cptr != NULL) { … … 211 210 if (fp != NULL) return fp; 212 211 } /*endif*/ 213 # endif214 212 215 213 /* not found, open without translation */ -
SH_SHM/branches/marcus/source/newgraph/xwch.c
r101 r105 13 13 #include <ctype.h> 14 14 #include BASECNST 15 #ifdef BC_SUN16 15 #include <X11/Xlib.h> 17 16 #include <X11/Xatom.h> 18 17 #include <X11/cursorfont.h> 19 /* typedef char *caddr_t; */ /* I really don't know why this is necessary on HP */20 18 #include <X11/Xutil.h> 21 #endif22 19 #include BC_SYSBASE 23 20 #include "graphbas.h" -
SH_SHM/branches/marcus/source/readgrn.h
r101 r105 41 41 #endif 42 42 43 44 #ifdef BC_SUN45 43 #define SBYTE signed char 46 #else47 #define SBYTE char48 #endif49 50 51 44 52 45 /* error codes */ -
SH_SHM/branches/marcus/source/seed_io/seed_lib.c
r101 r105 55 55 #include <math.h> 56 56 #include "basecnst.h" 57 57 58 #ifdef BC_INC_UNISTD 58 59 #include BC_INC_UNISTD 59 60 #endif 61 60 62 #ifdef BC_INC_STDLIB 61 63 #include BC_INC_STDLIB 62 64 #endif 63 #ifdef BC_SUN 65 64 66 #include <fcntl.h> 65 67 #include <sys/types.h> 66 /* #include <sys/uio.h> */67 #endif68 68 #include "sysbase.h" 69 69 #include "tcusrdef.h" -
SH_SHM/branches/marcus/source/seed_io/seed_tidy.c
r98 r105 22 22 #include <string.h> 23 23 #include "basecnst.h" 24 24 25 #ifdef BC_INC_STDLIB 25 26 #include BC_INC_STDLIB 26 27 #endif 27 #ifdef BC_SUN 28 28 29 #include <fcntl.h> 29 30 #include <sys/types.h> 30 31 #include <sys/uio.h> 31 #endif32 32 #include "sysbase.h" 33 33 #include "erusrdef.h" -
SH_SHM/branches/marcus/source/seusrdef.h
r16 r105 165 165 166 166 167 #ifdef BC_SUN168 169 167 void se_get_sh_environment( void ); 170 168 … … 174 172 */ 175 173 176 #endif177 178 174 179 175 /*------------------------------------------------------------------------*/ -
SH_SHM/branches/marcus/source/shconst.h
r48 r105 42 42 #define GW 2 43 43 /* graphics window */ 44 #ifdef BC_SUN45 44 #define SHC_FILE_PREFIX "SH_" 46 #else47 #define SHC_FILE_PREFIX "SH$"48 #endif49 45 /* file prefix of all SeismicHandler files */ 50 46 #define SHC_FILE_PREFIX_LENGTH 3 -
SH_SHM/branches/marcus/source/shdirs.h
r102 r105 37 37 38 38 /*=================================================================*/ 39 #ifdef BC_SUN40 41 42 43 39 /* These values are not really needed. The SH_... environment variables 44 40 * have precedence over these definitions … … 54 50 #define DD_EXTPROG "/home/geo/ks/shc/util/" 55 51 56 57 58 #endif /* BC_SUN */59 52 /*=================================================================*/ -
SH_SHM/branches/marcus/source/shexec.c
r103 r105 97 97 98 98 /* get path names: either from UNIX environment ... */ 99 # ifdef BC_SUN100 99 se_get_sh_environment(); 101 # endif102 100 103 101 /* get session ID string */ 104 102 strcpy( id_shv, SHC_FILE_PREFIX ); 105 # ifdef BC_SUN106 103 mt_randomstr( 4, id_shv+SHC_FILE_PREFIX_LENGTH ); 107 104 strcat( id_shv, "_" ); 108 # endif /* BC_SUN */109 105 110 106 strcpy( str, shd_scratch ); … … 909 905 910 906 911 #ifdef BC_SUN912 913 914 907 void se_get_sh_environment( void ) 915 908 … … 936 929 937 930 938 #endif939 940 941 931 942 932 /*------------------------------------------------------------------------*/ -
SH_SHM/branches/marcus/source/shmenu0.c
r104 r105 513 513 if (*status != SHE_NOERROR) return; 514 514 strcpy( str, "UNKNOWN" ); 515 # ifdef BC_SUN516 515 strcpy( str, "UNIX" ); 517 # endif518 516 sl_setsymbol( str2, str, &locstat ); 519 517 } else if (strcmp(str,"OSCALL") == 0) { -
SH_SHM/branches/marcus/source/shmenu5.c
r16 r105 490 490 *status = BC_NOERROR; 491 491 } else { 492 # ifdef BC_SUN493 492 *status = BC_NOERROR; 494 # else495 if (Severe(status)) return;496 # endif497 493 if (SHF_CHATTY & shflags_shv) 498 494 printf( "%s label is %s\n", SHC_CHATTXT, label ); … … 1700 1696 void mn5_fixgap( PARAM *par, STATUS *status ) 1701 1697 1702 /* removes zeros from traces introducing a straight line 1698 /* removes zeros from traces introducing a straight line 1703 1699 connecting non-zero values 1704 1700 * par 1: trace list -
SH_SHM/branches/marcus/source/sysbase.h
r104 r105 42 42 #include "basecnst.h" 43 43 #endif 44 45 /******************************************************************46 *** SUN version ***47 ******************************************************************/48 49 #ifdef BC_SUN50 44 51 45 /* short integer */ … … 332 326 333 327 334 335 #endif /* BC_SUN */336 337 338 339 /******************************************************************340 *** END ***341 ******************************************************************/342 343 328 #endif /* __SYSBASE */ 344 329 -
SH_SHM/branches/marcus/source/syscall.c
r104 r105 35 35 36 36 #include "basecnst.h" 37 38 39 40 /******************************************************************41 *** SUN version ***42 ******************************************************************/43 44 45 46 #ifdef BC_SUN47 48 37 49 38 … … 437 426 438 427 /*----------------------------------------------------------------------------*/ 439 440 441 442 #endif /* BC_SUN */443 444 445 446 /******************************************************************447 *** END ***448 ******************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.