*** Makefile.in 1997/10/10 00:13:14 1.1 --- Makefile.in 1997/10/24 01:10:20 1.5 *************** *** 0 **** --- 1,274 ---- + # Makefile.in generated automatically by automake 0.28 from Makefile.am + + # Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation + # gives unlimited permission to copy, distribute and modify it. + + + SHELL = /bin/sh + + srcdir = @srcdir@ + top_srcdir = @top_srcdir@ + VPATH = @srcdir@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + + bindir = @bindir@ + sbindir = @sbindir@ + libexecdir = @libexecdir@ + datadir = @datadir@ + sysconfdir = @sysconfdir@ + sharedstatedir = @sharedstatedir@ + localstatedir = @localstatedir@ + libdir = @libdir@ + infodir = @infodir@ + mandir = @mandir@ + includedir = @includedir@ + oldincludedir = /usr/include + + pkgdatadir = $(datadir)/@PACKAGE@ + pkglibdir = $(libdir)/@PACKAGE@ + pkgincludedir = $(includedir)/@PACKAGE@ + + AR = @AR@ + RANLIB = @RANLIB@ + PURIFY = @PURIFY@ + + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_DATA = @INSTALL_DATA@ + INSTALL_SCRIPT = @INSTALL_SCRIPT@ + transform = @program_transform_name@ + + AUTOMAKE_OPTIONS = + + bin_PROGRAMS = nedit nc + + DIST_OTHER = + DISTCLEANFILES = + + INCLUDES = -I.. -I$(top_srcdir)/util -I$(srcdir) + CONFIG_HEADER = ../config.h + + LDADD = ../util/libNUtil.a + PROGRAMS = $(bin_PROGRAMS) + + CC = @CC@ + LEX = @LEX@ + YACC = @YACC@ + + DEFS = @DEFS@ + CPPFLAGS = @CPPFLAGS@ + CFLAGS = @CFLAGS@ + BIGGER_STRINGS = @BIGGER_STRINGS@ + LDFLAGS = @LDFLAGS@ + MOTIF_CFLAGS = @MOTIF_CFLAGS@ + MOTIF_LDFLAGS = @MOTIF_LDFLAGS@ + MOTIF_PRE_LIBS = @MOTIF_PRE_LIBS@ + MOTIF_LIBS = @MOTIF_LIBS@ + MOTIF_EXTRA_LIBS = @MOTIF_EXTRA_LIBS@ + LIBS = @LIBS@ + + ALL_X_LIBS = $(MOTIF_PRE_LIBS) $(MOTIF_LIBS) $(MOTIF_EXTRA_LIBS) + COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(MOTIF_CFLAGS) + LINK = $(PURIFY) $(CC) $(LDFLAGS) $(MOTIF_LDFLAGS) -o $@ + + o = .@U@o + + DIST_COMMON = + + PACKAGE = @PACKAGE@ + VERSION = @VERSION@ + + DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \ + $(TEXINFOS) $(INFOS) $(MANS) $(DIST_OTHER) $(DATA) + + DEP_DISTFILES = $(DIST_COMMON) $(SOURCES) $(BUILT_SOURCES) $(HEADERS) \ + $(TEXINFOS) $(INFO_DEPS) $(MANS) $(DIST_OTHER) $(DATA) + + HEADERS = \ + DialogF.h fontsel.h misc.h printUtils.h vmsUtils.h \ + fileUtils.h getfiles.h prefFile.h vmsParam.h \ + managedList.h + + SOURCES = \ + DialogF.c fontsel.c misc.c printUtils.c \ + fileUtils.c getfiles.c prefFile.c vmsUtils.c \ + managedList.c + + OBJECTS = \ + DialogF$o fontsel$o misc$o printUtils$o \ + fileUtils$o getfiles$o prefFile$o vmsUtils$o \ + managedList$o + + default: all + + + #$(srcdir)/Makefile.in: Makefile.am + # cd $(top_srcdir) && automake $(subdir)/Makefile + + Makefile: ../config.status Makefile.in + cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status + + mostlyclean-binPROGRAMS: + + clean-binPROGRAMS: + rm -f $(bin_PROGRAMS) + + distclean-binPROGRAMS: + + maintainer-clean-binPROGRAMS: + + install-binPROGRAMS: all + $(top_srcdir)/mkinstalldirs $(bindir) + for p in $(bin_PROGRAMS); do \ + if test -f $$p; then \ + $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ + else :; fi \ + done + + uninstall-binPROGRAMS: + for p in $(bin_PROGRAMS); do \ + rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \ + done + + .c.o: + $(COMPILE) $< + + mostlyclean-compile: + rm -f *.o core + + clean-compile: + rm -f *.a + + distclean-compile: + rm -f *.tab.c + + maintainer-clean-compile: + + ID: $(HEADERS) $(SOURCES) + here=`pwd` && cd $(srcdir) && mkid -f $$here/ID $(SOURCES) $(HEADERS) + + tags: TAGS + + TAGS: + here=`pwd` && cd $(srcdir) && etags $(ETAGS_ARGS) $(SOURCES) $(HEADERS) -o $$here/TAGS + + mostlyclean-tags: + + clean-tags: + + distclean-tags: + rm -f TAGS ID + + maintainer-clean-tags: + + subdir = util + distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) + dist: $(DEP_DISTFILES) + @for file in $(DISTFILES); do \ + test -f $(distdir)/$$file \ + || ln $(srcdir)/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $(srcdir)/$$file $(distdir)/$$file; \ + done + + all: libNUtil.a + + libNUtil.a: $(OBJECTS) + $(AR) libNUtil.a $(OBJECTS) + $(RANLIB) libNUtil.a + + printUtils.o: printUtils.c + $(COMPILE) $(PRINTFLAGS) $< + + info: + + dvi: + + check: + + install-exec: install-binPROGRAMS + + install: install-exec + @: + + uninstall: uninstall-binPROGRAMS + + installdirs: + $(top_srcdir)/mkinstalldirs $(bindir) + + + mostlyclean-generic: + test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) + + clean-generic: + test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + + distclean-generic: + rm -f Makefile $(DISTCLEANFILES) + rm -f config.cache config.log $(CONFIG_HEADER) stamp-h + + maintainer-clean-generic: + test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) + test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) + mostlyclean: mostlyclean-binPROGRAMS mostlyclean-compile \ + mostlyclean-tags mostlyclean-generic + + clean: clean-binPROGRAMS clean-compile clean-tags \ + clean-generic mostlyclean + + distclean: distclean-binPROGRAMS distclean-compile \ + distclean-tags distclean-generic clean + rm -f config.status + + maintainer-clean: maintainer-clean-binPROGRAMS maintainer-clean-compile \ + maintainer-clean-tags maintainer-clean-generic \ + distclean + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + + .PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \ + clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \ + mostlyclean-compile distclean-compile clean-compile \ + maintainer-clean-compile \ + tags mostlyclean-tags distclean-tags clean-tags \ + maintainer-clean-tags dist all info dvi check installcheck install-exec \ + install uninstall installdirs mostlyclean-generic distclean-generic \ + clean-generic maintainer-clean-generic clean mostlyclean distclean \ + maintainer-clean + + + $(PROGRAMS): $(LDADD) + + version.c: stamp-v + stamp-v: Makefile + rm -f t-version.c + echo '#include ' > t-version.c + echo '#include "version.h"' >> t-version.c + echo 'const char *version_string = "'GNU @PACKAGE@ @VERSION@'";' \ + >> t-version.c + if cmp -s version.c t-version.c; then \ + rm t-version.c; \ + else \ + mv t-version.c version.c; \ + fi + echo timestamp > $@ + + .SUFFIXES: + .SUFFIXES: .c .o + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: + + $(OBJECTS): ../config.h + + DialogF.o: misc.h DialogF.h + fileUtils.o: fileUtils.h + fontsel.o: DialogF.h misc.h fontsel.h + getfiles.o: fileUtils.h misc.h getfiles.h + managedList.o: misc.h managedList.h + misc.o: DialogF.h misc.h + prefFile.o: prefFile.h + printUtils.o: DialogF.h misc.h prefFile.h printUtils.h + vmsUtils.c: vmsUtils.h *** fontsel.c 1997/10/27 21:43:23 1.1.1.1 --- fontsel.c 1997/11/03 05:33:14 1.3 *************** *** 24,27 **** *******************************************************************************/ ! static char SCCSID[] = "@(#)fontsel.c 1.12 10/3/96"; ! #include --- 24,26 ---- *******************************************************************************/ ! #include #include *************** *** 146,147 **** --- 145,148 ---- * * + * char * title - Title of the dialog * + * * * Returns: * *************** *** 159,161 **** ! char *FontSel(Widget parent, int showPropFonts, char *currFont) { --- 160,162 ---- ! char *FontSel(Widget parent, int showPropFonts, char *currFont, char *title) { *************** *** 179,181 **** ! dialog = XmCreateDialogShell (parent, "Font Selector", args, 0); --- 180,186 ---- ! title = title ? title : "Font Selector"; ! ! n = 0; ! XtSetArg(args[n], XmNtitle, title); n++; ! dialog = XmCreateDialogShell (parent, "fontSelectorDialog", args, n); *************** *** 1153,1155 **** ! if (i != 1) { --- 1158,1160 ---- ! if (fontName == 0 || i != 1) { *************** *** 1157,1159 **** "Invalid Font Specification", "Dismiss"); ! XFreeFontNames(fontName); } --- 1162,1165 ---- "Invalid Font Specification", "Dismiss"); ! if(fontName) ! XFreeFontNames(fontName); } *************** *** 1172,1176 **** XtFree(ctrlBlk->sel3); ! XFreeFontNames(fontName); - XFreeFontNames(ctrlBlk->fontData); --- 1178,1183 ---- XtFree(ctrlBlk->sel3); ! if (ctrlBlk->fontData) ! XFreeFontNames(ctrlBlk->fontData); ! XFreeFontNames(fontName); *************** *** 1193,1197 **** ! if (i == 0) { /* invalid font passed in at startup */ ! XFreeFontNames(fontName); return; --- 1200,1205 ---- ! if (fontName == 0 || i == 0) { /* invalid font passed in at startup */ ! if(fontName) ! XFreeFontNames(fontName); return; *** managedList.c 1997/10/27 21:43:23 1.1.1.1 --- managedList.c 1997/10/23 19:07:29 1.2 *************** *** 24,25 **** --- 24,26 ---- *******************************************************************************/ + #include #include *** misc.c 1997/10/27 21:43:23 1.1.1.1 --- misc.c 1997/10/14 04:46:15 1.3 *************** *** 24,26 **** *******************************************************************************/ ! static char SCCSID[] = "@(#)misc.c 1.39 2/1/96"; #include --- 24,26 ---- *******************************************************************************/ ! #include #include *************** *** 29,30 **** --- 29,31 ---- #include + #include #include *************** *** 782,783 **** --- 783,800 ---- XUndefineCursor(XtDisplay(topCursorWidget), XtWindow(topCursorWidget)); + } + + /* + ** StrCaseCmp compares its arguments IGNORING case differences. + ** Returns 0 if the two strings are equal. Otherwise returns -1 + ** if str1 is less and str2 and 1 if str1 is greater than str2. + */ + int StrCaseCmp(char *str1, char *str2) + { + for (; ; str1++, str2++) { + if (toupper(*str1) != toupper(*str2)) + return toupper(*str2) - toupper(*str1); + if (*str1 == 0 || *str2 == 0) + break; + } + return 0; }