su.h File Reference

#include "par.h"

Go to the source code of this file.

Classes

union  Value

Defines

#define CHECK_NT(label, nt)   if(nt > SU_NFLTS) suerr("%s=%d must not exceed %d",label,nt,SU_NFLTS)
#define NALLOC   (524288)
#define NFALLOC   (NALLOC/FSIZE)
#define NIALLOC   (NALLOC/ISIZE)
#define NDALLOC   (NALLOC/DSIZE)
#define LOWBYTE(w)   ((w) & 0xFF)
#define HIGHBYTE(w)   LOWBYTE((w) >>8)
#define LOWWORD(w)   ((w) & 0xFFFF)
#define HIGHWORD(w)   LOWWORD((w) >>16)
#define ISNEGCHAR(c)   ((c) & 0x80)
#define SIGNEXTEND(c)   (~0xFF | (int) (c))
#define READ_OK   4
#define WRITE_OK   2
#define EXEC_OK   1
#define FILE_OK   0
#define IS_DEPTH(str)
#define IS_COORD(str)

Functions

int vtoi (register cwp_String type, Value val)
long vtol (register cwp_String type, Value val)
float vtof (register cwp_String type, Value val)
double vtod (register cwp_String type, Value val)
int valcmp (register cwp_String type, Value val1, Value val2)
void printfval (register cwp_String type, Value val)
void fprintfval (FILE *stream, register cwp_String type, Value val)
void scanfval (register cwp_String type, Value *valp)
void atoval (cwp_String type, cwp_String keyval, Value *valp)
void getparval (cwp_String name, cwp_String type, int n, Value *valp)
Value valtoabs (cwp_String type, Value val)


Define Documentation

#define CHECK_NT ( label,
nt   )     if(nt > SU_NFLTS) suerr("%s=%d must not exceed %d",label,nt,SU_NFLTS)

Definition at line 33 of file su.h.

#define NALLOC   (524288)

Definition at line 35 of file su.h.

#define NFALLOC   (NALLOC/FSIZE)

Definition at line 36 of file su.h.

#define NIALLOC   (NALLOC/ISIZE)

Definition at line 37 of file su.h.

#define NDALLOC   (NALLOC/DSIZE)

Definition at line 38 of file su.h.

#define LOWBYTE (  )     ((w) & 0xFF)

Definition at line 39 of file su.h.

#define HIGHBYTE (  )     LOWBYTE((w) >>8)

Definition at line 40 of file su.h.

#define LOWWORD (  )     ((w) & 0xFFFF)

Definition at line 41 of file su.h.

#define HIGHWORD (  )     LOWWORD((w) >>16)

Definition at line 42 of file su.h.

#define ISNEGCHAR (  )     ((c) & 0x80)

Definition at line 43 of file su.h.

#define SIGNEXTEND (  )     (~0xFF | (int) (c))

Definition at line 44 of file su.h.

#define READ_OK   4

Definition at line 57 of file su.h.

#define WRITE_OK   2

Definition at line 58 of file su.h.

#define EXEC_OK   1

Definition at line 59 of file su.h.

#define FILE_OK   0

Definition at line 60 of file su.h.

#define IS_DEPTH ( str   ) 

Value:

((  STREQ(str,"gelev")  || \
               STREQ(str,"selev")   || \
               STREQ(str,"sdepth")  || \
               STREQ(str,"gdel")    || \
               STREQ(str,"sdel")    || \
               STREQ(str,"swdep")   || \
               STREQ(str,"gwdep")         )?cwp_true:cwp_false)

Definition at line 63 of file su.h.

#define IS_COORD ( str   ) 

Value:

(( STREQ(str,"sx")   || \
               STREQ(str,"sy")   || \
               STREQ(str,"gx")   || \
               STREQ(str,"gy")     )?cwp_true:cwp_false)

Definition at line 71 of file su.h.


Function Documentation

int vtoi ( register cwp_String  type,
Value  val 
)

long vtol ( register cwp_String  type,
Value  val 
)

float vtof ( register cwp_String  type,
Value  val 
)

double vtod ( register cwp_String  type,
Value  val 
)

int valcmp ( register cwp_String  type,
Value  val1,
Value  val2 
)

void printfval ( register cwp_String  type,
Value  val 
)

void fprintfval ( FILE *  stream,
register cwp_String  type,
Value  val 
)

void scanfval ( register cwp_String  type,
Value valp 
)

void atoval ( cwp_String  type,
cwp_String  keyval,
Value valp 
)

void getparval ( cwp_String  name,
cwp_String  type,
int  n,
Value valp 
)

Value valtoabs ( cwp_String  type,
Value  val 
)


Generated on 5 Jan 2017 for IWAVE by  doxygen 1.4.7