Revision: 76993
http://sourceforge.net/p/brlcad/code/76993
Author: brlcad
Date: 2020-08-31 08:00:21 +0000 (Mon, 31 Aug 2020)
Log Message:
-----------
document the claim on db5_diradd's previously unused clientdata. if it's set
to one, the object will now be flagged as inmem.
Modified Paths:
--------------
brlcad/trunk/src/librt/db5_scan.c
Modified: brlcad/trunk/src/librt/db5_scan.c
===================================================================
--- brlcad/trunk/src/librt/db5_scan.c 2020-08-31 07:57:28 UTC (rev 76992)
+++ brlcad/trunk/src/librt/db5_scan.c 2020-08-31 08:00:21 UTC (rev 76993)
@@ -234,6 +234,10 @@
}
+/**
+ * Add a raw internal to the database. If client_data is 1, the entry
+ * will be marked as in-mem.
+ */
struct directory *
db5_diradd(struct db_i *dbip,
const struct db5_raw_internal *rip,
@@ -313,8 +317,10 @@
}
-/*
- * In support of db5_scan, add a named entry to the directory.
+/**
+ * In support of db5_scan(), this helper function adds a named entry
+ * to the directory. If client_data is 1, it entry will be added as
+ * in-mem database object.
*/
HIDDEN void
db5_diradd_handler(
@@ -321,7 +327,7 @@
struct db_i *dbip,
const struct db5_raw_internal *rip,
b_off_t laddr,
- void *client_data) /* unused client_data from db5_scan() */
+ void *client_data)
{
RT_CK_DBI(dbip);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits