Revision: 77334
http://sourceforge.net/p/brlcad/code/77334
Author: brlcad
Date: 2020-10-05 16:23:00 +0000 (Mon, 05 Oct 2020)
Log Message:
-----------
one expression per line for readability
Modified Paths:
--------------
brlcad/trunk/src/liboptical/material.c
Modified: brlcad/trunk/src/liboptical/material.c
===================================================================
--- brlcad/trunk/src/liboptical/material.c 2020-10-05 16:19:45 UTC (rev
77333)
+++ brlcad/trunk/src/liboptical/material.c 2020-10-05 16:23:00 UTC (rev
77334)
@@ -101,7 +101,8 @@
shader_mfuncs = (struct mfuncs *)bu_dlsym((struct mfuncs *)handle,
"shader_mfuncs");
if ((dl_error_str=bu_dlerror()) != (char *)NULL) {
/* didn't find anything appropriate, give up */
- if (OPTICAL_DEBUG&OPTICAL_DEBUG_MATERIAL) bu_log("%s has no %s
table, %s\n", material, sym, dl_error_str);
+ if (OPTICAL_DEBUG&OPTICAL_DEBUG_MATERIAL)
+ bu_log("%s has no %s table, %s\n", material, sym, dl_error_str);
bu_dlclose(handle);
return (struct mfuncs *)NULL;
}
@@ -120,7 +121,8 @@
}
}
- if (OPTICAL_DEBUG&OPTICAL_DEBUG_MATERIAL) bu_log("shader '%s' not found in
library\n", material);
+ if (OPTICAL_DEBUG&OPTICAL_DEBUG_MATERIAL)
+ bu_log("shader '%s' not found in library\n", material);
/* found the library, but not the shader */
bu_dlclose(handle);
@@ -266,7 +268,6 @@
goto retry;
}
-
/* If we get here, then the shader was not found at all (either in
* the compiled-in or dynamically loaded shader sets). We set the
* shader name to "default" (which should match an entry in the
@@ -285,6 +286,7 @@
bu_vls_free(¶ms);
bu_vls_free(&name);
return -1;
+
found:
rp->reg_mfuncs = (char *)mfp;
rp->reg_udata = (char *)0;
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