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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>

 

Attached Files

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

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

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.16-ed84.
Corresponding source code