[XForms] [patch] fdesign output

Angus Leeming angus.leeming at btopenworld.com
Fri May 28 05:51:12 EDT 2004


The attached patch ensures that fdesign outputs converted files in the 
current directory if no output_dir is specified. At present, they are 
output in the same directory as the .fd file.

The patch also guarantees that 'build_fname' is safe against buffer 
overflows.

	fdesign -convert foo/bar/baz.fd
will create bar.[ch] in the current directory.

	fdesign -dir some/other/dir -convert foo/bar/baz.fd
will place bar.[ch] in some/other/dir, if it exists.

The fdesign shipped with XForms 1.0 and earlier allowed only
	fdesign -convert baz.fd

Ie, you had to be in the same directory as baz.fd in order to run the 
conversion.

The change results in 'expected behaviour' and has been requested on 
the lyx list. I see no reason not to commit it, so will do so 
presently.

Angus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdesign.diff
Type: text/x-diff
Size: 2633 bytes
Desc: not available
Url : attachments/20040528/7ab4c462/attachment-0010.bin 


More information about the Xforms mailing list