wcodes.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "./ged_private.h"
Include dependency graph for wcodes.c:

Go to the source code of this file.


#define ABORTED   -99
#define OLDSOLID   0
#define NEWSOLID   1
#define SOL_TABLE   1
#define REG_TABLE   2
#define ID_TABLE   3
#define PATH_STEP   256


HIDDEN int wcodes_printcodes (struct ged *gedp, FILE *fp, struct directory *dp, size_t pathpos)
HIDDEN void wcodes_printnode (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_wcodes (struct ged *gedp, int argc, const char *argv[])

Detailed Description

The wcodes command.

Definition in file wcodes.c.

Macro Definition Documentation

#define ABORTED   -99

Definition at line 35 of file wcodes.c.

#define OLDSOLID   0

Definition at line 36 of file wcodes.c.

#define NEWSOLID   1

Definition at line 37 of file wcodes.c.

#define SOL_TABLE   1

Definition at line 38 of file wcodes.c.

#define REG_TABLE   2

Definition at line 39 of file wcodes.c.

#define ID_TABLE   3

Definition at line 40 of file wcodes.c.

#define PATH_STEP   256

Definition at line 43 of file wcodes.c.

Referenced by ged_wcodes(), and wcodes_printcodes().

Function Documentation

HIDDEN int wcodes_printcodes ( struct ged gedp,
FILE *  fp,
struct directory dp,
size_t  pathpos 
HIDDEN void wcodes_printnode ( 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 52 of file wcodes.c.

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

Referenced by wcodes_printcodes().

Here is the call graph for this function:

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

Write region ident codes to filename.

Definition at line 128 of file wcodes.c.

References bu_calloc(), bu_free(), bu_vls_printf(), bu_vls_trunc(), db_lookup(), rt_wdb::dbip, GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, ged::ged_wdbp, LOOKUP_NOISY, PATH_STEP, RT_DIR_NULL, usage(), and wcodes_printcodes().

Referenced by ged_edcodes().

Here is the call graph for this function: