[comp.sources.d] Problem with Pascal-to-C translator patch

george@hyper.lap.upenn.edu (George Zipperlen) (04/14/88)

I have had problems trying to apply the recently posted patch to the 
Pascal to C translator. (v13i067:  Patches for Pascal-to-C translator, 
v10i065:  Pascal to C translator)
                                            
I am not sure if this is a problem with the context diffs or with patch.
I don't think that it is a problem with the original ptc.p, because it
compiles and runs ok.

    csh[17] patch ptc.p ptc.diff
    Hmm...  Looks like a new-style context diff to me...
    The text leading up to this was:
    --------------------------
    |*** ptc.p	Fri Nov 13 18:45:21 1987
    |--- nptc.p	Fri Nov 13 18:44:29 1987
    --------------------------
    Patching file ptc.p using Plan A...
    Hunk #1 succeeded at 42.
... more hunks
    Hunk #18 succeeded at 1651.
    Assertion failed: file pch.c, line 636
    
    csh[18] patch -version
    $Header: patch.c,v 2.0 86/09/17 15:37:32 lwall Exp $
    Patch level: 0
    
Before I do the patch by hand, I'd like to know if anybody else has 
had this problem, or if I have an out of date patch program.

P.S.  I am going to create a version which preserves comments and 
space (tabs, spaces and new-lines) on the assumption that the
ragged C output can be filtered through cb or indent.
--------------------------------------------------------------------------------
George Zipperlen                    george@apollo.lap.upenn.edu
Language Analysis Project           (215)-898-1954
University of Pennsylvania          Generic Disclaimer
Philadelphia, Pa. 19103             Cute saying
--------------------------------------------------------------------------------