#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 SLA_FCN_PROTO | ( | N, | |||
| T | ) |
| #define SLA_MOD | ( | M | ) |
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;
| #define SLA_CNV | ( | C | ) |
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;
| 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 | ||||
| ) |
1.4.7