[brlcad-commits] SF.net SVN: brlcad:[38656] brlcad/trunk/include/raytrace.h
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2010-04-20 19:11:08
|
Revision: 38656 http://brlcad.svn.sourceforge.net/brlcad/?rev=38656&view=rev Author: brlcad Date: 2010-04-20 18:30:14 +0000 (Tue, 20 Apr 2010) Log Message: ----------- d_addr's (i.e., d_un.file_offset's) in a directory structure are file offsets so use off_t instead of size_t. this probably has a cascade of fallout that will need cleanup. Modified Paths: -------------- brlcad/trunk/include/raytrace.h Modified: brlcad/trunk/include/raytrace.h =================================================================== --- brlcad/trunk/include/raytrace.h 2010-04-20 18:29:45 UTC (rev 38655) +++ brlcad/trunk/include/raytrace.h 2010-04-20 18:30:14 UTC (rev 38656) @@ -802,7 +802,7 @@ * One of these structures is allocated in memory to represent each * named object in the database. * - * Note that a d_addr of RT_DIR_PHONY_ADDR ((size_t)-1) means that database + * Note that a d_addr of RT_DIR_PHONY_ADDR ((off_t)-1) means that database * storage has not been allocated yet. * * Note that there is special handling for RT_DIR_INMEM "in memory" @@ -827,7 +827,7 @@ unsigned long d_magic; /**< @brief Magic number */ char * d_namep; /**< @brief pointer to name string */ union { - size_t file_offset; /**< @brief disk address in obj file */ + off_t file_offset; /**< @brief disk address in obj file */ genptr_t ptr; /**< @brief ptr to in-memory-only obj */ } d_un; struct directory * d_forw; /**< @brief link to next dir entry */ @@ -845,7 +845,7 @@ #define RT_CK_DIR(_dp) BU_CKMAG(_dp, RT_DIR_MAGIC, "(librt)directory") #define d_addr d_un.file_offset -#define RT_DIR_PHONY_ADDR ((size_t)-1) /**< @brief Special marker for d_addr field */ +#define RT_DIR_PHONY_ADDR ((off_t)-1) /**< @brief Special marker for d_addr field */ /* flags for db_diradd() and friends */ #define RT_DIR_SOLID 0x1 /**< @brief this name is a solid */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |