[AD] Patch for makedoc

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


With this patch, the .txt output of the documentation, will show the
nodes like a sub-section.

For example, before:

...
void set_config_id(const char *section, const char *name, int val);
   Writes a 4-letter driver ID variable to the current config file. See the
   comments about set_config_string().

Allegro uses these standard variables from the configuration file:
...

Now:

...
void set_config_id(const char *section, const char *name, int val);
   Writes a 4-letter driver ID variable to the current config file. See the
   comments about set_config_string().

Standard config variables
-------------------------

Allegro uses these standard variables from the configuration file:
...

-- 
http://www.davidcapello.com.ar
--- makedoc.old/maketxt.c	Sun Aug 29 22:06:11 2004
+++ makedoc/maketxt.c	Sun Aug 29 22:09:03 2004
@@ -52,6 +52,15 @@
 	       outputting = 0;
 	 }
       }
+      else if (line->flags & NODE_FLAG) {
+	 p = line->text;
+	 len = strlen(p);
+	 fputs(p, f);
+	 fputs("\n", f);
+	 for (c=0; c<len; c++)
+	    fputc('-', f);
+	 fputs("\n\n", f);
+      }
       else if ((line->flags & TEXT_FLAG) && (outputting)) {
 	 p = line->text;
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/