Tachyon (current)  Current Main Branch
Functions
getargs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tachyon.h"
#include "getargs.h"
#include "ctype.h"

Go to the source code of this file.

Functions

static int strupncmp (const char *a, const char *b, int n)
 
static int compare (const char *a, const char *b)
 
static void printusage (char **argv)
 
static void initoptions (argoptions *opt)
 
int presceneoptions (argoptions *opt, SceneHandle scene)
 
int postsceneoptions (argoptions *opt, SceneHandle scene)
 
static int getparm (int argc, char **argv, int num, argoptions *opt, int node)
 
int getargs (int argc, char **argv, argoptions *opt, int node)
 
void freeoptions (argoptions *opt)
 

Function Documentation

◆ compare()

static int compare ( const char *  a,
const char *  b 
)
static

Definition at line 29 of file getargs.c.

References strupncmp().

Referenced by getparm().

◆ freeoptions()

void freeoptions ( argoptions opt)

Definition at line 643 of file getargs.c.

References argoptions::filenames, and argoptions::numfiles.

Referenced by main().

◆ getargs()

int getargs ( int  argc,
char **  argv,
argoptions opt,
int  node 
)

Definition at line 585 of file getargs.c.

References argoptions::filenames, getparm(), initoptions(), argoptions::numfiles, and printusage().

Referenced by main().

◆ getparm()

static int getparm ( int  argc,
char **  argv,
int  num,
argoptions opt,
int  node 
)
static

◆ initoptions()

static void initoptions ( argoptions opt)
static

◆ postsceneoptions()

int postsceneoptions ( argoptions opt,
SceneHandle  scene 
)

◆ presceneoptions()

int presceneoptions ( argoptions opt,
SceneHandle  scene 
)

Definition at line 180 of file getargs.c.

References argoptions::normalfixupmode, and rt_normal_fixup_mode().

Referenced by main().

◆ printusage()

static void printusage ( char **  argv)
static

Definition at line 36 of file getargs.c.

Referenced by getargs().

◆ strupncmp()

static int strupncmp ( const char *  a,
const char *  b,
int  n 
)
static

Definition at line 18 of file getargs.c.

Referenced by compare().