path.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "vmath.h"
#include "db.h"
#include "raytrace.h"
#include "ged.h"
Include dependency graph for path.c:

Go to the source code of this file.


HIDDEN int path_validate_recurse (struct ged *gedp, struct db_full_path *path, struct directory *roots_child)
int ged_path_validate (struct ged *gedp, const struct db_full_path *const path)

Function Documentation

HIDDEN int path_validate_recurse ( struct ged gedp,
struct db_full_path path,
struct directory roots_child 

Definition at line 41 of file path.c.

References bu_vls_printf(), directory::d_flags, directory::d_namep, db_find_named_leaf(), DB_FULL_PATH_GET, DB_FULL_PATH_ROOT_DIR, rt_wdb::dbip, db_full_path::fp_len, db_full_path::fp_names, GED_ERROR, GED_OK, ged::ged_result_str, ged::ged_wdbp, rt_db_internal::idb_ptr, if(), rt_db_free_internal(), rt_db_get_internal(), RT_DIR_COMB, rt_uniresource, rt_comb_internal::tree, and TREE_NULL.

Referenced by ged_path_validate().

Here is the call graph for this function:

int ged_path_validate ( struct ged gedp,
const struct db_full_path *const  path 

Checks that each directory in the supplied path actually has the subdirectories that are implied by the path. Returns GED_OK if true, or GED_ERROR if false.

Definition at line 84 of file path.c.

References directory::d_flags, db_dup_full_path(), db_free_full_path(), DB_FULL_PATH_GET, db_full_path_init(), DB_FULL_PATH_ROOT_DIR, db_full_path::fp_len, GED_ERROR, GED_OK, path_validate_recurse(), and RT_DIR_COMB.

Referenced by edit_arg_to_apparent_coord(), edit_str_to_arg(), and edit_translate().

Here is the call graph for this function: