BRL-CAD
edcodes.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "bu/getopt.h"
#include "bu/sort.h"
#include "./ged_private.h"
Include dependency graph for edcodes.c:

Go to the source code of this file.

Macros

#define EDCODES_OK   GED_OK
 
#define EDCODES_NOTOK   GED_ERROR
 
#define EDCODES_HALT   -99
 

Functions

HIDDEN int edcodes_id_compare (const void *p1, const void *p2, void *arg)
 
HIDDEN int edcodes_reg_compare (const void *p1, const void *p2, void *arg)
 
HIDDEN int edcodes_collect_regnames (struct ged *, struct directory *, int)
 
HIDDEN void edcodes_traverse_node (struct db_i *dbip, struct rt_comb_internal *comb, union tree *comb_leaf, void *user_ptr1, void *user_ptr2, void *user_ptr3, void *user_ptr4)
 
int ged_edcodes (struct ged *gedp, int argc, const char *argv[])
 

Detailed Description

The edcodes command.

Definition in file edcodes.c.

Macro Definition Documentation

#define EDCODES_OK   GED_OK

Definition at line 37 of file edcodes.c.

Referenced by edcodes_collect_regnames(), and ged_edcodes().

#define EDCODES_NOTOK   GED_ERROR

Definition at line 38 of file edcodes.c.

Referenced by edcodes_collect_regnames().

#define EDCODES_HALT   -99

Definition at line 39 of file edcodes.c.

Referenced by edcodes_collect_regnames(), edcodes_traverse_node(), and ged_edcodes().

Function Documentation

HIDDEN int edcodes_id_compare ( const void *  p1,
const void *  p2,
void *  arg 
)

Definition at line 43 of file edcodes.c.

Referenced by ged_edcodes().

HIDDEN int edcodes_reg_compare ( const void *  p1,
const void *  p2,
void *  arg 
)

Definition at line 55 of file edcodes.c.

References bu_strcmp(), and strchr().

Referenced by ged_edcodes().

Here is the call graph for this function:

HIDDEN int edcodes_collect_regnames ( struct ged gedp,
struct directory dp,
int  pathpos 
)
HIDDEN void edcodes_traverse_node ( struct db_i dbip,
struct rt_comb_internal comb,
union tree comb_leaf,
void *  user_ptr1,
void *  user_ptr2,
void *  user_ptr3,
void *  user_ptr4 
)

Definition at line 69 of file edcodes.c.

References directory::d_flags, db_lookup(), edcodes_collect_regnames(), EDCODES_HALT, LOOKUP_NOISY, RT_CK_DBI, RT_CK_TREE, RT_DIR_COMB, RT_DIR_NULL, tree::tree_db_leaf::tl_name, and tree::tr_l.

Referenced by edcodes_collect_regnames().

Here is the call graph for this function:

int ged_edcodes ( struct ged gedp,
int  argc,
const char *  argv[] 
)