bugBook: Learning GNU C - Bugs: bug #6939, [el]Snarfing C program examples...

 
 

bug #6939: [el]Snarfing C program examples from learning_gnu_c.texinfo

Submitted by:  Stephen Compall <S11001001>
Submitted on:  Tue 02 Dec 2003 11:33:51 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 03 Dec 2003 08:57:13 PM UTC, comment #1:

I fixed some problems in the original submission: the snarfer debugger is now interactive, cleans the markers, all the magic is now defvar rather than defconst (so reloading the file changes them), and more detail in some of the docstrings.

Stephen Compall <S11001001>
Tue 02 Dec 2003 11:33:51 PM UTC, original submission:

The attached file extracts examples in sections starting with @unnumberedsubsubsec *.c from the Texinfo source, dumping them and an appropriate Makefile in the examples/ subdir (after you save all buffers, of course). Currently, it doesn't handle multiple-source-file programs, and there is a single name-clash which doesn't write out one of the files (which you can see by using the resultant makefile).

The output is nicely functional, however, as you can see by the snarfer debugger command, which required no changes to the snarfer proper. I did this partly because I wasn't sure I would write the Makefile generator; you can still easily remove it (or the code writer, for that matter).

Usage and other such details are documented in the commentary. If you think it deserves a license, you should consider it GPL v2 or later, Copyright (C) 2003 Stephen Compall.

Stephen Compall <S11001001>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #910:  lgc-examples-0312.patch added by S11001001 (4kB - text/plain - Fixes to lgc-examples.el)
file #907:  lgc-examples.el added by S11001001 (8kB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 03 Dec 2003 08:57:13 PM UTCS11001001Attached File-=>Added lgc-examples-0312.patch, #904
Tue 02 Dec 2003 11:33:51 PM UTCS11001001Attached File-=>Added lgc-examples.el, #901

Back to the top


Powered by Savane 3.1-cleanup