sla.h File Reference

#include <stdlib.h>

Include dependency graph for sla.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SLA_FCN_PROTO(N, T)
#define SLA_FCN_BEGIN(N, T)   SLA_FCN_PROTO(N,T)
#define SLA_MOD(M)
#define SLA_CNV(C)

Functions

void sla_set_debug (int d)
int sla_none (int *argc, ARGVCONST char **argv, const char *flind, const char *assop, const char *pname, int argd)
 SLA_FCN_PROTO (sla_str, ARGVCONST char *)
 SLA_FCN_PROTO (sla_float, float)
 SLA_FCN_PROTO (sla_double, double)
 SLA_FCN_PROTO (sla_int, int)
 SLA_FCN_PROTO (sla_short, short)
 SLA_FCN_PROTO (sla_long, long)
 SLA_FCN_PROTO (sla_uint, unsigned int)
 SLA_FCN_PROTO (sla_ushort, unsigned short)
 SLA_FCN_PROTO (sla_ulong, unsigned long)
 SLA_FCN_PROTO (sla_char, char)


Define Documentation

#define SLA_FCN_PROTO ( N,
 ) 

Value:

int N( int *argc \
     , ARGVCONST char **argv \
     , const char *flind \
     , const char *assop \
     , const char *pname \
     , T *value \
     , int argd /* no default argument */ \
     )

Definition at line 87 of file sla.h.

#define SLA_FCN_BEGIN ( N,
 )     SLA_FCN_PROTO(N,T)

Definition at line 111 of file sla.h.

#define SLA_MOD (  ) 

Value:

ARGVCONST char **rr, eol='\0'; \
  int i, nvalue; \
  rr = (ARGVCONST char**)malloc( (*argc)*sizeof(ARGVCONST char*) ); \
  for ( i=0; i<*argc; i++ ) rr[i] = &eol; \
  nvalue = sla_str( argc, argv, flind, assop, pname, rr, argd ); \
  if ( nvalue > 0 && value != NULL ) { \
    if ( *pname == '*' ) { \
      for ( i=0; i<nvalue; i++ ) M( value+i, rr[i] ); \
    } \
    else { \
      for ( i=0; i<nvalue; i++ ) M( value  , rr[i] ); \
    } \
  } \
  free(rr); \
  return nvalue;

Definition at line 139 of file sla.h.

#define SLA_CNV (  ) 

Value:

ARGVCONST char **rr, eol='\0'; \
  int i, nvalue; \
  rr = (ARGVCONST char**)malloc( (*argc)*sizeof(ARGVCONST char*) ); \
  for ( i=0; i<*argc; i++ ) rr[i] = &eol; \
  nvalue = sla_str( argc, argv, flind, assop, pname, rr, argd ); \
  if ( nvalue > 0 && value != NULL ) { \
    if ( *pname == '*' ) { \
      for ( i=0; i<nvalue; i++ ) value[i] = C(rr[i]); \
    } \
    else { \
      for ( i=0; i<nvalue; i++ ) value[0] = C(rr[i]); \
    } \
  } \
  free(rr); \
  return nvalue;

Definition at line 179 of file sla.h.


Function Documentation

void sla_set_debug ( int  d  ) 

int sla_none ( int *  argc,
ARGVCONST char **  argv,
const char *  flind,
const char *  assop,
const char *  pname,
int  argd 
)

SLA_FCN_PROTO ( sla_str  ,
ARGVCONST char *   
)

SLA_FCN_PROTO ( sla_float  ,
float   
)

SLA_FCN_PROTO ( sla_double  ,
double   
)

SLA_FCN_PROTO ( sla_int  ,
int   
)

SLA_FCN_PROTO ( sla_short  ,
short   
)

SLA_FCN_PROTO ( sla_long  ,
long   
)

SLA_FCN_PROTO ( sla_uint  ,
unsigned  int 
)

SLA_FCN_PROTO ( sla_ushort  ,
unsigned  short 
)

SLA_FCN_PROTO ( sla_ulong  ,
unsigned  long 
)

SLA_FCN_PROTO ( sla_char  ,
char   
)


Generated on Sat May 19 00:54:17 2012 for ROSE by  doxygen 1.4.7