Re: x src code changes

Bill Fenner (fenner@jazz.psu.edu)
Sat, 1 Aug 92 12:53:09 EDT

Dan Schein writes:
>
> I recently obtained a copy of the x source code (called xx on the server)
>and diff files. After making the changes it appears the file "io.h" (for
>the unix version) was not included. Mistake?

Yup. Here's the UNIX io.h:

FILE *fp;

#define io_getc() getc(fp)

> Also the diff file has a much different format from my diff command (SVR4).
>How would one use the included diff file? I did the changes by hand :-(

You use the 'patch' program, by Larry Wall. The diff format that I used
is called "context diff", and is very useful because it can usually manage
to apply the patches even if you've modified the program and thus changed
what line the code should change. The old-style patch didn't allow this
kind of thing.

-- 
Bill Fenner	fenner@jazz.psu.edu	..psuvax1!hogbbs!wcfpc!wcf
		wcf@hogbbs.scol.pa.us   (+1 814 238-9633 v.32bis)