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

 
 

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

Submitter:  Stephen Compall <S11001001>
Submitted:  Tue 02 Dec 2003 11:33:51 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-12-03 S11001001 Attached File- Added lgc-examples-0312.patch, #904
2003-12-02 S11001001 Attached File- Added lgc-examples.el, #901

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code