cmd.c File Reference

#include "common.h"
#include <stdio.h>
#include <ctype.h>
#include <strings.h>
#include "machine.h"
#include "vmath.h"
#include "raytrace.h"

Include dependency graph for cmd.c:

Go to the source code of this file.

Defines

#define MAXWORDS   4096

Functions

char * rt_read_cmd (register FILE *fp)
int rt_split_cmd (char **argv, int lim, register char *lp)
int rt_do_cmd (struct rt_i *rtip, const char *ilp, register const struct command_tab *tp)


Detailed Description

Read and parse a viewpoint-control command stream. This module is intended to be common to all programs which read this type of command stream; the routines to handle the various keywords should go in application-specific modules.

Author - Michael John Muuss

Source - SECAD/VLD Computing Consortium, Bldg 394 The U. S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005

Definition in file cmd.c.


Define Documentation

#define MAXWORDS   4096
 

Definition at line 123 of file cmd.c.

Referenced by rt_do_cmd().


Function Documentation

char* rt_read_cmd register FILE *  fp  ) 
 

Definition at line 72 of file cmd.c.

References bu_free(), bu_malloc(), and bu_realloc().

Here is the call graph for this function:

int rt_split_cmd char **  argv,
int  lim,
register char *  lp
 

Definition at line 137 of file cmd.c.

References bu_log(), and perror().

Here is the call graph for this function:

int rt_do_cmd struct rt_i rtip,
const char *  ilp,
register const struct command_tab tp
 

Definition at line 197 of file cmd.c.

References bu_free(), bu_malloc(), MAXWORDS, and rt_split_cmd().

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:03 2006 for BRL-CAD by  doxygen 1.4.6