#include "common.h"
#include <ctype.h>
#include <string.h>
#include "bio.h"
#include "vmath.h"
#include "raytrace.h"
Include dependency graph for cmd.c:

Go to the source code of this file.


#define MAXWORDS   4096 /* Max # of args per command */


char * rt_read_cmd (register FILE *fp)
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.

Definition in file cmd.c.

Macro Definition Documentation

#define MAXWORDS   4096 /* Max # of args per command */

Definition at line 94 of file cmd.c.

Referenced by rt_do_cmd().

Function Documentation

char* rt_read_cmd ( register FILE *  fp)

Definition at line 43 of file cmd.c.

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

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 98 of file cmd.c.

References bu_argv_from_string(), bu_free(), bu_log(), bu_strdup, bu_strncmp(), command_tab::ct_cmd, command_tab::ct_comment, command_tab::ct_func, command_tab::ct_max, command_tab::ct_min, command_tab::ct_parms, MAXWORDS, and RT_CK_RTI.

Here is the call graph for this function: