Revision: 57374
          http://sourceforge.net/p/brlcad/code/57374
Author:   tbrowder2
Date:     2013-09-01 18:21:50 +0000 (Sun, 01 Sep 2013)
Log Message:
-----------
beautify code listings a bit more

Modified Paths:
--------------
    brlcad/trunk/doc/docbook/presentations/en/brlcad-app-devel.xml

Modified: brlcad/trunk/doc/docbook/presentations/en/brlcad-app-devel.xml
===================================================================
--- brlcad/trunk/doc/docbook/presentations/en/brlcad-app-devel.xml      
2013-09-01 17:39:23 UTC (rev 57373)
+++ brlcad/trunk/doc/docbook/presentations/en/brlcad-app-devel.xml      
2013-09-01 18:21:50 UTC (rev 57374)
@@ -93,7 +93,7 @@
 </section>
 
 <section>
-  <title>Prototype Application: <filename>rtexample.c</filename></title>
+  <title>Prototype Application: rtexample.c</title>
 
 <itemizedlist>
       <listitem>
@@ -121,12 +121,12 @@
 
   <title>Necessary Headers</title>
 
-<programlisting>#include "conf.h"      /* compilation macros */
+<programlisting>#include "conf.h"       /* compilation macros           */
 #include &lt;stdio.h&gt;
 #include &lt;math.h&gt;
-#include "machine.h"   /* machine specific definitions */
-#include "vmath.h"     /* vector math macros */
-#include "raytrace.h"  /* librt interface definitions */
+#include "machine.h"    /* machine specific definitions */
+#include "vmath.h"      /* vector math macros           */
+#include "raytrace.h"   /* librt interface definitions  */
 </programlisting>
 
 <itemizedlist>
@@ -240,7 +240,9 @@
     int          (*a_miss) (struct application *);
     int          a_onehit; /* flag to stop on first hit */
 
-    struct rt_i  *a_rt_i;  /* this librt instance */</programlisting>
+    struct rt_i  *a_rt_i;  /* this librt instance *
+    /* ... */
+};/</programlisting>
 
 </section>
 
@@ -692,7 +694,8 @@
 } else {
     /* it doesn't exist, so we create one */
     bu_log("doing wdb_fopen()\n");
-    wdbp = wdb_fopen(argv[1]); /* force create */}</programlisting>
+    wdbp = wdb_fopen(argv[1]); /* force create */
+}</programlisting>
 
 </section>
 
@@ -704,8 +707,7 @@
 
   <para>Set mk_conv2mm global for other units</para>
 
-<programlisting>
-point_t lo, hi;
+<programlisting>point_t lo, hi;
 /* ... */
 /* add an axis-aligned ARB8 */
 VSETALL(lo, 0.0);
@@ -743,7 +745,8 @@
     arb = (struct rt_arb_internal *)ip.idb_ptr;
     RT_ARB_CK_MAGIC(arb);
     VPRINT("First Point", arb->pt[0]);
-/* ... */</programlisting>
+    /* ... */
+}</programlisting>
 
 </section>
 
@@ -853,11 +856,12 @@
  * have passed the matrix in to mk_addmember as an argument or we
  * could add the following code:
  */
+
 memcpy(wm_hd->wm_mat, trans_matrix, sizeof(mat_t));
 /* Remember that values in the database are stored in millimeters,
  * so the values in the matrix must take this into account.
  */
-(void)mk_addmember("myball",&amp;wm_hd.l,NULL,WMOP_SUBTRACT);</programlisting>
+(void)mk_addmember("myball", &amp; wm_hd.l, NULL, 
WMOP_SUBTRACT);</programlisting>
 
 </section>
 
@@ -890,15 +894,16 @@
 VSET(rgb, 64, 180, 96); /* a nice green */
 
 /* mk_lcomb is a macro using mk_comb.
- * See libwdb/mk_comb() for full form */
+ * See libwdb/mk_comb() for full form
+ */
 mk_lcomb(wdbp,
-       "box_n_ball.r", /* Name of the db element created */
-       &amp;wm_hd,        /* list of elements and boolean operations */
-       is_region,      /* Flag:  This is a region */
-       "plastic",      /* optical shader */
-       "di=.8 sp=.2",  /* shader parameters */
-       rgb,            /* item color */
-       0);             /* inherit (override) flag */</programlisting>
+         "box_n_ball.r", /* Name of the db element created          */
+         &amp;wm_hd,         /* list of elements and boolean operations */
+         is_region,      /* Flag:  This is a region                 */
+         "plastic",      /* optical shader                          */
+         "di=.8 sp=.2",  /* shader parameters                       */
+         rgb,            /* item color                              */
+         0);             /* inherit (override) flag                 
*/</programlisting>
 
 </section>
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to