Interface XBoard to GhostView file-browser dialog
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 30 Jan 2010 10:05:52 +0000 (11:05 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 7 Feb 2010 09:42:09 +0000 (10:42 +0100)
Note: The Ghostview dialog was using some deprecated variables for error
printing, and conditionally used getwd() on some systems that presumably
do not have getcwd(), but it did not assess the latter properly.

Makefile.am
dir.c [new file with mode: 0644]
draw.c [new file with mode: 0644]
path.c [new file with mode: 0644]
selfile.c [new file with mode: 0644]
selfile.h [new file with mode: 0644]
xboard.c
xstat.h [new file with mode: 0644]

index 3abd176..c921c3a 100644 (file)
@@ -26,6 +26,8 @@ xboard_SOURCES = backend.c backend.h backendz.h \
                 xgamelist.c xgamelist.h\
                 xhistory.c  xhistory.h \
                 xoptions.c \
+                selfile.c selfile.h \
+                draw.c path.c dir.c xstat.h \
                 $(ZPY)
 xboard_LDADD = -lm @XAW_LIBS@ @X_LIBS@ 
 
diff --git a/dir.c b/dir.c
new file mode 100644 (file)
index 0000000..102187e
--- /dev/null
+++ b/dir.c
@@ -0,0 +1,163 @@
+/*
+ * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Software Research Associates not be used
+ * in advertising or publicity pertaining to distribution of the software
+ * without specific, written prior permission.  Software Research Associates
+ * makes no representations about the suitability of this software for any
+ * purpose.  It is provided "as is" without express or implied warranty.
+ *
+ * SOFTWARE RESEARCH ASSOCIATES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
+ * IN NO EVENT SHALL SOFTWARE RESEARCH ASSOCIATES BE LIABLE FOR ANY SPECIAL,
+ * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Author: Erik M. van der Poel
+ *         Software Research&nb