Re: pswrap Was: pswrap, Motif ... (was Re: [Dps-devel] moving along)
Status: Inactive
Brought to you by:
jch
From: trevor <two...@ic...> - 2001-01-07 08:19:22
|
On Saturday 06 January 2001 21:07, Kevin Brosius wrote: > Juliusz Chroboczek wrote: > (snip) > > > TW> i would also like to find the source to "pswrap" and try to > > figure TW> out why i wants to insert the line: > > > > TW> #include "psops.h" > > > > TW> instead of: > > > > TW> #include <DPS/psops.h> > > > > TW> into the generated *.c file. > > I noticed this also, but added the DPS include path rather than mess > with pswrap. Are you looking for the pswrap source in XFree86 or in > the DPS distribution? It's in both... In XFree86, check > xc/config/pswrap. someone else also wrote me to point out that i could add an "-I/..." line to the compile. call me old-fashioned but i like the idea that #include "file.h" is for headers related to the source you wrote (the application) and #include <file.h> is for file provided by the system. actually changing the "pswrap" utility to do what i want is a three-second job, so i did that. in the directory <XFree86-4.0.2 sources>/source/xc/config/pswrap edit the file "pswfile.c" it is very short. find the line that looks like: printf("#include \"%spsops.h\"\n\n", dpsops ? "d" : ""); and change to printf("#include <DPS/%spsops.h>\n\n", dpsops ? "d" : ""); then in that same directory do a "make" the copy the resulting "pswrap" executable to "/usr/X11R6/bin" or wherever the current "pswrap" is located (you could try "whereis pswrap") best regards, trevor -- http://home.ica.net/~vjbtlw/ |