Index: ChangeLog =================================================================== RCS file: /cvsroot/xforms/xforms/ChangeLog,v retrieving revision 1.75 diff -u -p -r1.75 ChangeLog --- ChangeLog 27 Nov 2003 18:09:16 -0000 1.75 +++ ChangeLog 27 Nov 2003 18:10:45 -0000 @@ -1,5 +1,11 @@ 2003-11-27 Angus Leeming + * fdesign/fd_printC.c (filename_only): use strrchr. + + * fdesign/fdesign.man: document the -dir option. + +2003-11-27 Angus Leeming + * NEWS: updated to reflect what has been going on in the 1.1 cycle. 2003-11-26 Angus Leeming Index: fdesign/fd_printC.c =================================================================== RCS file: /cvsroot/xforms/xforms/fdesign/fd_printC.c,v retrieving revision 1.7 diff -u -p -r1.7 fd_printC.c --- fdesign/fd_printC.c 27 Nov 2003 14:51:04 -0000 1.7 +++ fdesign/fd_printC.c 27 Nov 2003 18:10:46 -0000 @@ -67,12 +67,10 @@ make_backup(const char *s) static char const * filename_only(char const * filename) { - char const * ptr = filename + strlen(filename) - 1; - for (; ptr >= filename; --ptr) { - if (*ptr == '/') - return ptr+1; - } - return ptr; + char const * ptr = strrchr(filename, '/'); + if (ptr) + return ptr+1; + return filename; } static void Index: fdesign/fdesign.man =================================================================== RCS file: /cvsroot/xforms/xforms/fdesign/fdesign.man,v retrieving revision 1.2 diff -u -p -r1.2 fdesign.man --- fdesign/fdesign.man 9 Sep 2003 00:28:25 -0000 1.2 +++ fdesign/fdesign.man 27 Nov 2003 18:10:46 -0000 @@ -66,6 +66,9 @@ This option prevents from attempting to make a connection to the X server. The file list following this flag is converted to C code directly. .TP +.BI \-dir " destdir" +output any converted files in \fIdestdir\fR. +.TP .BI \-unit " pixel|point|mm|cp|cmm" selects the unit of measure for object geometries. For non-pixel unit, the interface created is screen resolution independent and may be