1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

Remove the FWF port, which was marked BROKEN 6 months ago, and was

broken for a long time before that.
This commit is contained in:
Kris Kennaway 2002-03-25 02:38:14 +00:00
parent ecdee5da6e
commit 21d72e23d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56587
15 changed files with 0 additions and 1220 deletions

View File

@ -1,28 +0,0 @@
# New ports collection makefile for: FWF Widgets
# Date created: 14 July 1995
# Whom: jkh
#
# $FreeBSD$
#
PORTNAME= fwf
PORTVERSION= 4.0
CATEGORIES= x11-toolkits
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR=libs/X/fwf
MAINTAINER= ports@FreeBSD.org
BROKEN= "Does not compile"
.if ${MACHINE_ARCH} == "alpha"
BROKEN= ../../lib/libfwf.a: cannot read symbols
.endif
USE_MOTIF= yes
USE_IMAKE= yes
USE_XPM= yes
WRKSRC= ${WRKDIR}/FWF
XMKMF= ${SETENV} X11BASE=${X11BASE} WRKSRC=${WRKSRC} sh ${FILESDIR}/xmkmf
.include <bsd.port.mk>

View File

@ -1 +0,0 @@
MD5 (fwf-4.0.tar.gz) = d7c43cbfbbcb23d63c02478e99c2cdd2

View File

@ -1,81 +0,0 @@
*** FWF.tmpl.orig Thu Apr 18 07:00:06 1996
--- FWF.tmpl Sun Apr 26 00:06:16 1998
***************
*** 33,53 ****
#define WantMotifVersions 1
! MOTIFINC = -I/usr/MOTIF/include
! XMLIB = -L/usr/MOTIF/lib -lXm
/*------------------------------------------------------------------------
To use a different compiler, or different compiler options
------------------------------------------------------------------------*/
XCOMM CC = gcc
! CDEBUGFLAGS = -g
/*------------------------------------------------------------------------
If you don't want to build the test programs, set this to 0
------------------------------------------------------------------------*/
! #define BuildExecs 1
/*------------------------------------------------------------------------
If you have the XPM pixmap library installed:
--- 33,53 ----
#define WantMotifVersions 1
! MOTIFINC = -I$(X11BASE)/include
! XMLIB = $(MOTIFLIB)
/*------------------------------------------------------------------------
To use a different compiler, or different compiler options
------------------------------------------------------------------------*/
XCOMM CC = gcc
! CDEBUGFLAGS = -O -Wall
/*------------------------------------------------------------------------
If you don't want to build the test programs, set this to 0
------------------------------------------------------------------------*/
! #define BuildExecs 0
/*------------------------------------------------------------------------
If you have the XPM pixmap library installed:
***************
*** 55,61 ****
#define HaveXpm 1
! XCOMM XPM_INCDIR = -I/usr/include/X11R5/X11
XPM_LIB = -lXpm
/*------------------------------------------------------------------------
--- 55,61 ----
#define HaveXpm 1
! XCOMM XPM_INCDIR = -I$(X11BASE)/include/X11
XPM_LIB = -lXpm
/*------------------------------------------------------------------------
***************
*** 84,90 ****
IMAKE_DEFINES = -DAvoidNullMakeCommand
! ARMERGE = ar r
PROJECTDIR = $(TOP)
FWF_LIBBASENAME = fwf
--- 84,90 ----
IMAKE_DEFINES = -DAvoidNullMakeCommand
! ARMERGE = ar qc
PROJECTDIR = $(TOP)
FWF_LIBBASENAME = fwf

View File

@ -1,36 +0,0 @@
*** src/Imakefile.orig Wed Feb 14 18:05:37 1996
--- src/Imakefile Sat Apr 25 22:03:03 1998
***************
*** 13,19 ****
Button RowCol Prompt Slider2 Slider4 Arrow Scrollbar PullDown \
OptButton VScrollb HScrollb Cmap Shistogram Hdial Canvas \
CircPerc Stack Enforcer Rows MenuBar ScrollWin ScrollWin3 \
! PieMenu Array FileLister Entry SpinLabel Mdial PcBar Toggle \
Icon Alert Group RadioGroup ThumbWheel FoldingTree IconBox \
Animator XmTabs XmAnsiTerm XmIcon XmPager \
UserGraf TextOut FText Calendar # HTML2 SSGML
--- 13,19 ----
Button RowCol Prompt Slider2 Slider4 Arrow Scrollbar PullDown \
OptButton VScrollb HScrollb Cmap Shistogram Hdial Canvas \
CircPerc Stack Enforcer Rows MenuBar ScrollWin ScrollWin3 \
! PieMenu Array FileLister Entry SpinLabel PcBar Toggle \
Icon Alert Group RadioGroup ThumbWheel FoldingTree IconBox \
Animator XmTabs XmAnsiTerm XmIcon XmPager \
UserGraf TextOut FText Calendar # HTML2 SSGML
***************
*** 42,48 ****
OptButton VScrollb HScrollb Cmap Shistogram Hdial Canvas \
CircPerc Stack Enforcer Rows MenuBar ScrollWin ScrollWin3 \
ThumbWheel2 PieMenu Array FileLister Entry SpinLabel \
! Mdial PcBar XmTabs XmAnsiTerm \
TextOut ArticleText Calendar
#endif
--- 42,48 ----
OptButton VScrollb HScrollb Cmap Shistogram Hdial Canvas \
CircPerc Stack Enforcer Rows MenuBar ScrollWin ScrollWin3 \
ThumbWheel2 PieMenu Array FileLister Entry SpinLabel \
! PcBar XmTabs XmAnsiTerm \
TextOut ArticleText Calendar
#endif

View File

@ -1,19 +0,0 @@
*** src/AnsiTerm/AnsiTermT.c.orig Wed Nov 29 12:47:58 1995
--- src/AnsiTerm/AnsiTermT.c Sat Apr 25 22:23:50 1998
***************
*** 32,38 ****
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
! #ifdef USE_PTY
#include <sys/ptyio.h>
#endif
#include <X11/Intrinsic.h>
--- 32,38 ----
#include <unistd.h>
#include <fcntl.h>
#include <sys/wait.h>
! #ifdef USE_PTYIO_H
#include <sys/ptyio.h>
#endif
#include <X11/Intrinsic.h>

View File

@ -1,416 +0,0 @@
*** src/Dir/DirMgr.c.orig Sat Apr 25 20:23:08 1998
--- src/Dir/DirMgr.c Sat Apr 25 20:55:09 1998
***************
*** 24,31 ****
#include <Xfwf/DirMgr.h>
! #ifndef NO_REGEXP
#include <Xfwf/RegExp.h>
#endif
#define DIR_MGR_FSM_SIZE 1024
--- 24,33 ----
#include <Xfwf/DirMgr.h>
! #ifdef NO_REGEXP
#include <Xfwf/RegExp.h>
+ #else
+ #include <regex.h>
#endif
#define DIR_MGR_FSM_SIZE 1024
***************
*** 43,61 ****
{
DirectoryMgr *dm;
PFI f_func,s_func;
! char *f_data;
if (pattern == NULL) pattern = "*";
! if (!DirectoryMgrSimpleFilterFunc(pattern,&f_func,&f_data))
{
return(NULL);
}
! if (!DirectoryMgrSimpleSortingFunc(sort_type,&s_func))
{
free(f_data);
return(NULL);
}
! dm = DirectoryMgrOpen(path,s_func,f_func,f_data,TRUE);
return(dm);
} /* End DirectoryMgrSimpleOpen */
--- 45,63 ----
{
DirectoryMgr *dm;
PFI f_func,s_func;
! regex_t *f_data;
if (pattern == NULL) pattern = "*";
! if (!DirectoryMgrSimpleFilterFunc(pattern, &f_func, &f_data))
{
return(NULL);
}
! if (!DirectoryMgrSimpleSortingFunc(sort_type, &s_func))
{
free(f_data);
return(NULL);
}
! dm = DirectoryMgrOpen(path, s_func, f_func, f_data, TRUE);
return(dm);
} /* End DirectoryMgrSimpleOpen */
***************
*** 65,73 ****
char *pattern;
{
PFI f_func;
! char *f_data;
! if (!DirectoryMgrSimpleFilterFunc(pattern,&f_func,&f_data))
{
return(FALSE);
}
--- 67,75 ----
char *pattern;
{
PFI f_func;
! regex_t *f_data;
! if (!DirectoryMgrSimpleFilterFunc(pattern, &f_func, &f_data))
{
return(FALSE);
}
***************
*** 109,118 ****
} /* End DirectoryMgrCanOpen */
! DirectoryMgr *DirectoryMgrOpen(path,c_func,f_func,f_data,free_data)
char *path;
PFI c_func,f_func;
! char *f_data;
int free_data;
{
DirectoryMgr *dm;
--- 111,120 ----
} /* End DirectoryMgrCanOpen */
! DirectoryMgr *DirectoryMgrOpen(path, c_func, f_func, f_data, free_data)
char *path;
PFI c_func,f_func;
! regex_t *f_data;
int free_data;
{
DirectoryMgr *dm;
***************
*** 121,127 ****
if (dm == NULL)
{
fprintf(stderr,"DirectoryMgrOpen: out of memory\n");
! if (free_data && f_data) free(f_data);
return(NULL);
}
if (DirectoryOpen(path,DirectoryMgrDir(dm)) == FALSE)
--- 123,132 ----
if (dm == NULL)
{
fprintf(stderr,"DirectoryMgrOpen: out of memory\n");
! if (free_data && f_data) {
! regfree(f_data);
! free(f_data);
! }
return(NULL);
}
if (DirectoryOpen(path,DirectoryMgrDir(dm)) == FALSE)
***************
*** 129,135 ****
fprintf(stderr,"DirectoryMgrOpen: can't open dir '%s'\n",
DirectoryMgrDir(dm));
free(dm);
! if (free_data && f_data) free(f_data);
return(NULL);
}
DirectoryMgrCompFunc(dm) = c_func;
--- 134,143 ----
fprintf(stderr,"DirectoryMgrOpen: can't open dir '%s'\n",
DirectoryMgrDir(dm));
free(dm);
! if (free_data && f_data) {
! regfree(f_data);
! free(f_data);
! }
return(NULL);
}
DirectoryMgrCompFunc(dm) = c_func;
***************
*** 155,165 ****
int DirectoryMgrRefilter(dm,f_func,f_data,f_free)
DirectoryMgr *dm;
PFI f_func;
! char *f_data;
int f_free;
{
if (DirectoryMgrFilterData(dm) && DirectoryMgrFreeFilterData(dm))
{
free(DirectoryMgrFilterData(dm));
}
DirectoryMgrFilterFunc(dm) = f_func;
--- 163,174 ----
int DirectoryMgrRefilter(dm,f_func,f_data,f_free)
DirectoryMgr *dm;
PFI f_func;
! regex_t *f_data;
int f_free;
{
if (DirectoryMgrFilterData(dm) && DirectoryMgrFreeFilterData(dm))
{
+ regfree(DirectoryMgrFilterData(dm));
free(DirectoryMgrFilterData(dm));
}
DirectoryMgrFilterFunc(dm) = f_func;
***************
*** 349,369 ****
*---------------------------------------------------------------------------*/
! int DirectoryMgrSimpleFilterFunc(pattern,ff_ptr,fd_ptr)
char *pattern;
PFI *ff_ptr;
! char **fd_ptr;
{
! #ifndef NO_REGEXP
char regexp[2048];
*ff_ptr = DirectoryMgrFilterName;
! *fd_ptr = (char *)malloc(sizeof(char) * DIR_MGR_FSM_SIZE);
! if (*fd_ptr == NULL) return(FALSE);
! RegExpPatternToRegExp(pattern,regexp);
! RegExpCompile(regexp,*fd_ptr,DIR_MGR_FSM_SIZE);
! #endif
! return(TRUE);
} /* End DirectoryMgrSimpleFilterFunc */
--- 358,379 ----
*---------------------------------------------------------------------------*/
! int DirectoryMgrSimpleFilterFunc(pattern, ff_ptr, fd_ptr)
char *pattern;
PFI *ff_ptr;
! regex_t **fd_ptr;
{
! #ifdef NO_REGEXP
char regexp[2048];
+ #endif
*ff_ptr = DirectoryMgrFilterName;
! *fd_ptr = (regex_t *)malloc(sizeof(regex_t));
! if (!*fd_ptr)
! return(FALSE);
! if (!regcomp(*fd_ptr, pattern, REG_EXTENDED | REG_NOSUB))
! return(TRUE);
! return FALSE;
} /* End DirectoryMgrSimpleFilterFunc */
***************
*** 474,486 ****
*---------------------------------------------------------------------------*/
! int DirectoryMgrFilterName(de,fsm)
DirEntry *de;
! char *fsm;
{
! #ifndef NO_REGEXP
return(RegExpMatch(DirEntryFileName(de),fsm));
#else
! return(TRUE);
#endif
} /* End DirectoryMgrFilterName */
--- 484,496 ----
*---------------------------------------------------------------------------*/
! int DirectoryMgrFilterName(de, fsm)
DirEntry *de;
! regex_t *fsm;
{
! #ifdef NO_REGEXP
return(RegExpMatch(DirEntryFileName(de),fsm));
#else
! return(regexec(fsm, DirEntryFileName(de), 0, NULL, 0));
#endif
} /* End DirectoryMgrFilterName */
*** src/Dir/DirMgr.h.orig Wed Nov 29 12:47:59 1995
--- src/Dir/DirMgr.h Sat Apr 25 21:48:24 1998
***************
*** 26,31 ****
--- 26,32 ----
#define _FWF_DIRECTORY_MGR_H_
#include <Xfwf/Directory.h>
+ #include <regex.h>
/*---------------------------------------------------------------------------*
***************
*** 101,107 ****
int total_count;
int filtered_count;
PFI filter_func;
! char *filter_data;
int free_filter_data;
PFI comp_func;
int current_index;
--- 102,108 ----
int total_count;
int filtered_count;
PFI filter_func;
! regex_t *filter_data;
int free_filter_data;
PFI comp_func;
int current_index;
***************
*** 170,179 ****
int DirectoryMgrCanOpen(char *path);
DirectoryMgr * DirectoryMgrOpen(char *path, PFI c_func, PFI f_func,
! char *f_data, int free_data);
void DirectoryMgrClose(DirectoryMgr *dm);
int DirectoryMgrRefilter(DirectoryMgr *dm, PFI f_func,
! char *f_data, int f_free);
int DirectoryMgrRefresh(DirectoryMgr *dm);
void DirectoryMgrResort(DirectoryMgr *dm, PFI c_func);
--- 171,180 ----
int DirectoryMgrCanOpen(char *path);
DirectoryMgr * DirectoryMgrOpen(char *path, PFI c_func, PFI f_func,
! regex_t *f_data, int free_data);
void DirectoryMgrClose(DirectoryMgr *dm);
int DirectoryMgrRefilter(DirectoryMgr *dm, PFI f_func,
! regex_t *f_data, int f_free);
int DirectoryMgrRefresh(DirectoryMgr *dm);
void DirectoryMgrResort(DirectoryMgr *dm, PFI c_func);
*** src/Dir/Directory.c.orig Wed Nov 29 12:47:59 1995
--- src/Dir/Directory.c Sat Apr 25 21:48:25 1998
***************
*** 24,30 ****
*/
#include <Xfwf/Directory.h>
- #include <Xfwf/RegExp.h>
/*--------------------------------------------------------------------------*
--- 24,29 ----
*** src/Dir/Imakefile.orig Thu Apr 18 05:19:51 1996
--- src/Dir/Imakefile Sat Apr 25 22:10:55 1998
***************
*** 4,18 ****
CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(STD_INCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)
- REGH = RegExp.h
- REGSRC = RegExp.c
- REGOBJ = RegExp.o
- REGTESTSRC = RegExpT.c
- REGTESTOBJ = RegExpT.o
- REGTEST = $(FWF_BINDIR)/RegExpT
- REGOBJS = $(REGOBJ) $(REGTESTOBJ)
- REGSRCS = $(REGSRC) $(REGTESTSRC)
-
DIRH = Directory.h
DIRSRC = Directory.c
DIROBJ = Directory.o
--- 4,9 ----
***************
*** 33,64 ****
DIR_LIBNAME = libDir.a
! PROGRAMS = $(REGTEST) $(DIRTEST) $(DIRMGRTEST)
! LIB_OBJS = $(REGOBJ) $(DIROBJ) $(DIRMGROBJ)
! EXT_OBJS = $(REGTESTOBJ) $(DIRTESTOBJ) $(DIRMGRTESTOBJ)
! INCS = $(FWF_INCDIR)/$(REGH) $(FWF_INCDIR)/$(DIRH) $(FWF_INCDIR)/$(DIRMGRH)
SRCS = $(REGSRCS) $(DIRSRCS) $(DIRMGRSRCS)
LOCALLIBS = $(DIR_LIB)
DEPLIBS = $(DIR_LIB)
SYSLIBS =
- AddToLibraryTarget(archive,$(FWF_LIBDIR),$(DIR_LIBNAME),$(REGOBJ))
AddToLibraryTarget(archive,$(FWF_LIBDIR),$(DIR_LIBNAME),$(DIROBJ))
AddToLibraryTarget(archive,$(FWF_LIBDIR),$(DIR_LIBNAME),$(DIRMGROBJ))
ObjectRuleWithFlags($(CFLAGS) $(XPM_INCDIR) -I$(FWF_INCBASE))
- RequireThisFileForInit($(FWF_INCDIR)/$(REGH))
RequireThisFileForInit($(FWF_INCDIR)/$(DIRH))
RequireThisFileForInit($(FWF_INCDIR)/$(DIRMGRH))
- FileCopyWhenNeeded(.,$(REGH),$(FWF_INCDIR),$(REGH))
FileCopyWhenNeeded(.,$(DIRH),$(FWF_INCDIR),$(DIRH))
FileCopyWhenNeeded(.,$(DIRMGRH),$(FWF_INCDIR),$(DIRMGRH))
- NormalProgramTarget($(REGTEST),$(REGOBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
NormalProgramTarget($(DIRTEST),$(DIROBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
NormalProgramTarget($(DIRMGRTEST),$(DIRMGROBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
--- 24,51 ----
DIR_LIBNAME = libDir.a
! PROGRAMS = $(DIRTEST) $(DIRMGRTEST)
! LIB_OBJS = $(DIROBJ) $(DIRMGROBJ)
! EXT_OBJS = $(DIRTESTOBJ) $(DIRMGRTESTOBJ)
! INCS = $(FWF_INCDIR)/$(DIRH) $(FWF_INCDIR)/$(DIRMGRH)
SRCS = $(REGSRCS) $(DIRSRCS) $(DIRMGRSRCS)
LOCALLIBS = $(DIR_LIB)
DEPLIBS = $(DIR_LIB)
SYSLIBS =
AddToLibraryTarget(archive,$(FWF_LIBDIR),$(DIR_LIBNAME),$(DIROBJ))
AddToLibraryTarget(archive,$(FWF_LIBDIR),$(DIR_LIBNAME),$(DIRMGROBJ))
ObjectRuleWithFlags($(CFLAGS) $(XPM_INCDIR) -I$(FWF_INCBASE))
RequireThisFileForInit($(FWF_INCDIR)/$(DIRH))
RequireThisFileForInit($(FWF_INCDIR)/$(DIRMGRH))
FileCopyWhenNeeded(.,$(DIRH),$(FWF_INCDIR),$(DIRH))
FileCopyWhenNeeded(.,$(DIRMGRH),$(FWF_INCDIR),$(DIRMGRH))
NormalProgramTarget($(DIRTEST),$(DIROBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
NormalProgramTarget($(DIRMGRTEST),$(DIRMGROBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
***************
*** 81,97 ****
echo "#include <sys/dir.h>" >> dirent.h; \
echo "#endif" >> dirent.h; \
cp dirent.h $(FWF_INCDIR)/dirent.h; \
- else echo ""; \
- fi; exit 0)
- @rm -f regexp.h
- @rm -f $(FWF_INCDIR)/regexp.h
- @(if [ ! -f /usr/include/regexp.h ]; \
- then echo "Patching because no regexp.h"; \
- echo "#ifndef _BRIREGEXP_H_" > regexp.h; \
- echo "#define _BRIREGEXP_H_" >> regexp.h; \
- echo "#define NO_REGEXP 1" >> regexp.h; \
- echo "#endif" >> regexp.h; \
- cp regexp.h $(FWF_INCDIR)/regexp.h; \
else echo ""; \
fi; exit 0)
--- 68,73 ----

View File

@ -1,16 +0,0 @@
*** src/EzMenu/EzMenu.c.orig Wed Nov 29 12:47:59 1995
--- src/EzMenu/EzMenu.c Sat Apr 25 21:48:25 1998
***************
*** 422,430 ****
--- 422,432 ----
SimpleMenuWidget smw = (SimpleMenuWidget) ez_old;
SmeObject *entry;
+ #if 0
ForAllChildren(smw, entry) {
XtDestroyWidget((Widget)entry);
}
+ #endif
XfwfEzMenuParseMenu(ez_new, ez_new -> ez_menu.menu, True);
ret_val = TRUE;

View File

@ -1,304 +0,0 @@
*** src/FileComp/FileComp.c.orig Thu Apr 18 05:21:21 1996
--- src/FileComp/FileComp.c Sat Apr 25 21:48:25 1998
***************
*** 121,129 ****
#ifdef USEONELINE
#include "OneLineText.h"
#endif
! #if defined(USE_REGEX) && defined(GNU_REGEX)
#include <regex.h>
! #endif
#if defined(USE_GLOB)
#include <glob.h>
#endif
--- 121,129 ----
#ifdef USEONELINE
#include "OneLineText.h"
#endif
!
#include <regex.h>
!
#if defined(USE_GLOB)
#include <glob.h>
#endif
***************
*** 299,307 ****
static void ChoosePrefix();
static void UpdateFilesList();
! #if defined(USE_REGEX) && defined(GNU_REGEX)
! static struct re_pattern_buffer compbuf;
! #endif
static void
Initialize(request, new)
--- 299,305 ----
static void ChoosePrefix();
static void UpdateFilesList();
! static regex_t *compbuf;
static void
Initialize(request, new)
***************
*** 405,417 ****
} else
fcwp->cancel_button = NULL;
- #if defined(USE_REGEX) && defined(GNU_REGEX)
- /* this code initializes the compile buffer for the regex routines */
- compbuf.buffer = XtMalloc(256);
- compbuf.allocated = 256;
- compbuf.fastmap = compbuf.translate = NULL;
- #endif
-
UpdateFilesList(new);
ChoosePrefix(new);
--- 403,408 ----
***************
*** 451,462 ****
free(fcwp->candidates);
if (fcwp->candidx)
free(fcwp->candidx);
! #if defined(USE_REGEX) && defined(GNU_REGEX)
! if (compbuf.buffer) { /* free the compile buffer from the regex routines */
! XtFree(compbuf.buffer);
! compbuf.buffer = NULL;
}
- #endif
}
/* this is used to detect a double-click.
--- 442,451 ----
free(fcwp->candidates);
if (fcwp->candidx)
free(fcwp->candidx);
! if (compbuf) { /* free the compile buffer from the regex routines */
! regfree(compbuf);
! compbuf = NULL;
}
}
/* this is used to detect a double-click.
***************
*** 1657,1690 ****
}
!
!
! #if defined(USE_REGEX)
!
! /* following regex routine was developed by reading Brian Totty's code
! and reading the man page. Long live free source code! */
!
! #if !defined(GNU_REGEX)
!
! #define INIT register char *sp = instring;
! #define GETC() (*sp++)
! #define PEEKC() (*sp)
! #define UNGETC(c) -- sp
! #define RETURN(ptr) return (ptr);
! #define ERROR(val) { regex_errno = (val); return NULL; }
! static int regex_errno;
! static int getrnge();
! #include <regexp.h>
!
! #endif /* !GNU_REGEX */
!
! /* This routine now uses either the regexp library or the GNU regex
! library based on the #define GNU_REGEX. It can also be eliminated
! entirely by not #defining USE_REGEX EdW */
! /* We don't want to completely eliminate it. This would cause
! compatibility problems. Instead we define some stub procedures
! that issue XtAppWarningMsgs. RF */
!
#if NeedFunctionPrototypes
Boolean XfwfFCRegexFiles (
char *s,
--- 1646,1652 ----
}
! /* This routine now uses POSIX regex */
#if NeedFunctionPrototypes
Boolean XfwfFCRegexFiles (
char *s,
***************
*** 1704,1752 ****
{
static char *cache_regex = NULL,
*busted_regex = NULL;
! #if defined(GNU_REGEX)
! _Xconst char * comp_result;
! #else
! static char compbuf[2048]; /* I should modify this to be a dynamically
! grown array. sigh */
! #endif
int rval;
if (busted_regex && 0==strcmp(regex,busted_regex))
return TRUE;
if (!cache_regex || 0!=strcmp(cache_regex,regex)) {
! #if defined(GNU_REGEX)
! if (!(comp_result = re_compile_pattern(regex, strlen(regex), &compbuf))) {
! #else
! if (NULL != compile(regex, compbuf, compbuf+sizeof(compbuf), '\0')) {
! #endif
XtFree(cache_regex); /* safe for NULL */
cache_regex = XtNewString(regex);
} else {
String params[2];
Cardinal n;
! #if defined(GNU_REGEX)
! params[0] = comp_result;
! #else
! switch (regex_errno) {
! case 11: params[0] = "Range endpoint too large."; break;
! case 16: params[0] = "Bad number"; break;
! case 25: params[0] = "`\\digit' out of range."; break;
! case 36: params[0] = "Illegal or missing delimiter."; break;
! case 41: params[0] = "No remembered search string."; break;
! case 42: params[0] = "\\( \\) imbalance."; break;
! case 43: params[0] = "Too many \\(."; break;
! case 44: params[0] = "More than 2 numbers given in \\{ \\}."; break;
! case 45: params[0] = "} expected after \\."; break;
! case 46: params[0] = "First number exceeds second in \\{ \\}."; break;
! case 49: params[0] = "[] imbalance."; break;
! case 50: params[0] = "Regular expression too long."; break;
! default: params[0] = "unknown regex compilation error."; break;
! }
! #endif
!
params[1] = regex;
n = 2;
XtAppWarningMsg(app_con, "compileFailed", "xfwfFileCompRegex",
--- 1666,1687 ----
{
static char *cache_regex = NULL,
*busted_regex = NULL;
! static regex_t *compbuf;
int rval;
if (busted_regex && 0==strcmp(regex,busted_regex))
return TRUE;
if (!cache_regex || 0!=strcmp(cache_regex,regex)) {
! compbuf = (regex_t *)malloc(sizeof(regex_t));
! if (!regcomp(compbuf, regex, REG_EXTENDED | REG_NOSUB)) {
XtFree(cache_regex); /* safe for NULL */
cache_regex = XtNewString(regex);
} else {
String params[2];
Cardinal n;
! params[0] = "bogus regex";
params[1] = regex;
n = 2;
XtAppWarningMsg(app_con, "compileFailed", "xfwfFileCompRegex",
***************
*** 1758,1771 ****
return TRUE;
}
}
!
! #if defined(GNU_REGEX)
! rval = re_match(&compbuf, s, strlen(s), 0, NULL);
! return ((rval >= 0) && (rval == strlen(s)));
! #else
! rval = advance(s, compbuf);
! return rval && *loc2==0;
! #endif
}
--- 1693,1699 ----
return TRUE;
}
}
! return regexec(compbuf, s, 0, NULL, 0);
}
***************
*** 1783,1840 ****
XfwfFCRegexFiles(filename, regex, app_con) ;
}
- #else /* USE_REGEX */
-
- #if NeedFunctionPrototypes
- Boolean XfwfFCRegexFiles (
- char *s,
- _Xconst XtPointer regex,
- XtAppContext app_con)
- #else
- Boolean XfwfFCRegexFiles (s, regex, app_con)
- char *s;
- XtPointer regex;
- XtAppContext app_con;
- #endif
- {
- Cardinal num_subs = 0;
- String subs[1];
- static int issued=0;
-
- if (issued)
- return; /* they don't want to see this a million times */
- /* urgh, regex was not available at the time :( */
- XtAppWarningMsg(app_con, "packageUnavailable", "xfwfFileCompRegex",
- "XfwfLibraryError",
- "attempt to use regular expressions in a FileComplete widget (XfwfFCRegexFiles). The FWF library was not compiled with that option.",
- subs, &num_subs);
- issued = 1;
- }
-
- Boolean XfwfFCDirsOrRegexFiles(filename, filestats, regex, app_con)
- char *filename;
- struct stat *filestats;
- XtPointer regex;
- XtAppContext app_con;
- {
- Cardinal num_subs = 0;
- String subs[1];
- static int issued=0;
-
- if (issued)
- return; /* they don't want to see this a million times */
-
- /* urgh, regex was not available at the time :( */
- XtAppWarningMsg(app_con, "packageUnavailable", "xfwfFileCompRegex",
- "XfwfLibraryError",
- "attempt to use regular expressions in a FileComplete widget (XfwfFCDirsOrRegexFiles). The FWF library was not compiled with that option.",
- subs, &num_subs);
- issued = 1;
- }
-
- #endif /* USE_REGEX */
-
-
#ifdef USE_GLOB
Boolean XfwfFCDirsOrGlobFiles(filename, filestats, regex, app_con)
--- 1711,1716 ----
***************
*** 1949,1963 ****
enum xfwfFileCompleteRegexFlavor
XfwfFileCompleteRegexFlavor()
{
- #ifdef USE_REGEX
- #ifdef GNU_REGEX
return xfwfFC_Emacs;
- #else
- return xfwfFC_ATT;
- #endif
- #else
- return xfwfFC_NoRegex;
- #endif
}
int XfwfFileCompleteHasGlob()
--- 1825,1831 ----

View File

@ -1,18 +0,0 @@
--- src/IconBox/IconBoxT.c.orig Wed Nov 29 12:48:00 1995
+++ src/IconBox/IconBoxT.c Sun Apr 26 07:51:32 1998
@@ -5,6 +5,7 @@
*/
#include <stdio.h>
+#include <sys/types.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -42,7 +43,6 @@
};
extern int errno;
-extern char *sys_errlist[];
static XtAppContext app_context;
static int hlen, vlen;

View File

@ -1,11 +0,0 @@
--- FWF.tmpl.orig Wed Feb 10 20:06:18 1999
+++ FWF.tmpl Wed Feb 10 20:06:27 1999
@@ -82,7 +82,7 @@
You probably won't need to edit these...
------------------------------------------------------------------------*/
-IMAKE_DEFINES = -DAvoidNullMakeCommand
+#IMAKE_DEFINES = -DAvoidNullMakeCommand
ARMERGE = ar r
PROJECTDIR = $(TOP)

View File

@ -1,8 +0,0 @@
#!/bin/sh
#
# An xmkmf that does what I need it to do.
#
IMAKEINCLUDE="-I${WRKSRC} -I${X11BASE}/lib/X11/config"
export IMAKEINCLUDE
imake -DUseInstalled ${IMAKEINCLUDE} Makefile
make Makefiles

View File

@ -1 +0,0 @@
The Free Widget Foundation widget release

View File

@ -1,20 +0,0 @@
The Free Widget Foundation
Brian Totty
Department of Computer Science
University of Illinois at Urbana-Champaign
1304 West Springfield Avenue
Urbana, IL 61801
free-widgets-info@let.rug.nl
THE FREE WIDGET FOUNDATION
The Free Widget Foundation (FWF) was first organized in the summer of 1990, as
a grass-roots, all-volunteer effort to generate a publically accessible
repository for X widgets. The goal of the FWF was to gather a set of
powerful, flexible, freely-accessible widgets, assisting programmers to
construct complicated user-interfaces. Furthermore, we wanted to discourage
multiple parties from "reinventing the widget" multiple times, and encourage
the development of a single, quality object.

View File

@ -1,260 +0,0 @@
include/Xfwf/Alert.h
include/Xfwf/AlertP.h
include/Xfwf/Animator.h
include/Xfwf/AnimatorP.h
include/Xfwf/Array.h
include/Xfwf/ArrayP.h
include/Xfwf/Arrow.h
include/Xfwf/ArrowP.h
include/Xfwf/Board.h
include/Xfwf/BoardP.h
include/Xfwf/Button.h
include/Xfwf/ButtonP.h
include/Xfwf/Calendar.h
include/Xfwf/CalendarP.h
include/Xfwf/Canvas.h
include/Xfwf/CanvasP.h
include/Xfwf/CircPerc.h
include/Xfwf/CircPercP.h
include/Xfwf/Cmap.h
include/Xfwf/CmapP.h
include/Xfwf/Common.h
include/Xfwf/CommonP.h
include/Xfwf/Converters.h
include/Xfwf/DirMgr.h
include/Xfwf/Directory.h
include/Xfwf/Enforcer.h
include/Xfwf/EnforcerP.h
include/Xfwf/Entry.h
include/Xfwf/EntryP.h
include/Xfwf/EzME.h
include/Xfwf/EzMEP.h
include/Xfwf/EzMenu.h
include/Xfwf/EzMenuP.h
include/Xfwf/FChooser.h
include/Xfwf/FChooserP.h
include/Xfwf/FText.h
include/Xfwf/FTextP.h
include/Xfwf/FileComp.h
include/Xfwf/FileCompP.h
include/Xfwf/FileList.h
include/Xfwf/FileListP.h
include/Xfwf/FileSel.h
include/Xfwf/FileSelP.h
include/Xfwf/FoldTree.h
include/Xfwf/FoldTreeP.h
include/Xfwf/Frame.h
include/Xfwf/FrameP.h
include/Xfwf/Group.h
include/Xfwf/GroupP.h
include/Xfwf/HScrollb.h
include/Xfwf/HScrollbP.h
include/Xfwf/Hdial.h
include/Xfwf/HdialP.h
include/Xfwf/Histogram.h
include/Xfwf/HistogramP.h
include/Xfwf/Icon.h
include/Xfwf/IconBox.h
include/Xfwf/IconBoxP.h
include/Xfwf/IconP.h
include/Xfwf/ImageSel.h
include/Xfwf/ImageSelP.h
include/Xfwf/Label.h
include/Xfwf/LabelP.h
include/Xfwf/MenuBar.h
include/Xfwf/MenuBarP.h
include/Xfwf/MultiList.h
include/Xfwf/MultiListP.h
include/Xfwf/OptButton.h
include/Xfwf/OptButtonP.h
include/Xfwf/PcBar.h
include/Xfwf/PcBarP.h
include/Xfwf/Pen.h
include/Xfwf/PieMenu.h
include/Xfwf/PieMenuP.h
include/Xfwf/PixEdit.h
include/Xfwf/PixEditP.h
include/Xfwf/Prompt.h
include/Xfwf/PromptP.h
include/Xfwf/PullDown.h
include/Xfwf/PullDownP.h
include/Xfwf/RadioGrp.h
include/Xfwf/RadioGrpP.h
include/Xfwf/Rheostat.h
include/Xfwf/RheostatP.h
include/Xfwf/RowCol.h
include/Xfwf/RowColP.h
include/Xfwf/Rows.h
include/Xfwf/RowsP.h
include/Xfwf/ScrList.h
include/Xfwf/ScrListP.h
include/Xfwf/ScrWin3.h
include/Xfwf/ScrWin3P.h
include/Xfwf/ScrollWin.h
include/Xfwf/ScrollWinP.h
include/Xfwf/Scrollbar.h
include/Xfwf/ScrollbarP.h
include/Xfwf/Shistogram.h
include/Xfwf/ShistogramP.h
include/Xfwf/Slider2.h
include/Xfwf/Slider2P.h
include/Xfwf/Slider4.h
include/Xfwf/Slider4P.h
include/Xfwf/SpinLabel.h
include/Xfwf/SpinLabelP.h
include/Xfwf/Stack.h
include/Xfwf/StackP.h
include/Xfwf/StrToPmap.h
include/Xfwf/TabString.h
include/Xfwf/TextMenu.h
include/Xfwf/TextMenuP.h
include/Xfwf/TextOut.h
include/Xfwf/TextOutP.h
include/Xfwf/ThWheel.h
include/Xfwf/ThWheelP.h
include/Xfwf/Toggle.h
include/Xfwf/ToggleP.h
include/Xfwf/UGraf.h
include/Xfwf/UGrafP.h
include/Xfwf/VScrollb.h
include/Xfwf/VScrollbP.h
include/Xfwf/VarArgs.h
include/Xfwf/XCC.h
include/Xfwf/XCCP.h
include/Xfwf/XmATerm.h
include/Xfwf/XmATermP.h
include/Xfwf/XmIcon.h
include/Xfwf/XmIconP.h
include/Xfwf/XmPager.h
include/Xfwf/XmPagerP.h
include/Xfwf/XmTabs.h
include/Xfwf/XmTabsP.h
include/Xfwf/choosecol.h
include/Xfwf/icon.h
include/Xfwf/long.h
include/Xfwf/scroll.h
include/Xfwf/str2color.h
include/Xfwf/strarray.h
lib/libDir.a
lib/libfwf.a
man/man1/Alert.1.gz
man/man1/AlertT.1.gz
man/man1/Animator.1.gz
man/man1/AnimatorT.1.gz
man/man1/Array.1.gz
man/man1/ArrayT.1.gz
man/man1/Arrow.1.gz
man/man1/ArrowT.1.gz
man/man1/Board.1.gz
man/man1/BoardT.1.gz
man/man1/Button.1.gz
man/man1/ButtonT.1.gz
man/man1/Calendar.1.gz
man/man1/CalendarT.1.gz
man/man1/Canvas.1.gz
man/man1/CanvasT.1.gz
man/man1/CircPerc.1.gz
man/man1/CircPercT.1.gz
man/man1/Cmap.1.gz
man/man1/CmapT.1.gz
man/man1/Common.1.gz
man/man1/CommonT.1.gz
man/man1/Enforcer.1.gz
man/man1/EnforcerT.1.gz
man/man1/Entry.1.gz
man/man1/EntryT.1.gz
man/man1/EzME.1.gz
man/man1/EzMenu.1.gz
man/man1/EzMenuT.1.gz
man/man1/FChooser.1.gz
man/man1/FChooserT.1.gz
man/man1/FText.1.gz
man/man1/FTextT.1.gz
man/man1/FileComp.1.gz
man/man1/FileCompT.1.gz
man/man1/FileList.1.gz
man/man1/FileListT.1.gz
man/man1/FileSel.1.gz
man/man1/FileSelT.1.gz
man/man1/FoldTree.1.gz
man/man1/FoldTreeT.1.gz
man/man1/Frame.1.gz
man/man1/FrameT.1.gz
man/man1/Group.1.gz
man/man1/GroupT.1.gz
man/man1/HScrollb.1.gz
man/man1/HScrollbT.1.gz
man/man1/Hdial.1.gz
man/man1/HdialT.1.gz
man/man1/Histogram.1.gz
man/man1/HistogramT.1.gz
man/man1/Icon.1.gz
man/man1/IconBox.1.gz
man/man1/IconBoxT.1.gz
man/man1/IconT.1.gz
man/man1/ImageSel.1.gz
man/man1/ImageSelT.1.gz
man/man1/Label.1.gz
man/man1/LabelT.1.gz
man/man1/MenuBar.1.gz
man/man1/MenuBarT.1.gz
man/man1/MultiList.1.gz
man/man1/MultiListT.1.gz
man/man1/OptButton.1.gz
man/man1/OptButtonT.1.gz
man/man1/PcBar.1.gz
man/man1/PcBarT.1.gz
man/man1/PieMenu.1.gz
man/man1/PieMenuT.1.gz
man/man1/PixEdit.1.gz
man/man1/PixEditT.1.gz
man/man1/Prompt.1.gz
man/man1/PromptT.1.gz
man/man1/PullDown.1.gz
man/man1/PullDownT.1.gz
man/man1/RadioGrp.1.gz
man/man1/RadioGrpT.1.gz
man/man1/Rheostat.1.gz
man/man1/RheostatT.1.gz
man/man1/RowCol.1.gz
man/man1/RowColT.1.gz
man/man1/Rows.1.gz
man/man1/RowsT.1.gz
man/man1/ScrList.1.gz
man/man1/ScrListT.1.gz
man/man1/ScrWin3.1.gz
man/man1/ScrWin3T.1.gz
man/man1/ScrollWin.1.gz
man/man1/ScrollWinT.1.gz
man/man1/Scrollbar.1.gz
man/man1/ScrollbarT.1.gz
man/man1/Shistogram.1.gz
man/man1/ShistogramT.1.gz
man/man1/Slider2.1.gz
man/man1/Slider2T.1.gz
man/man1/Slider4.1.gz
man/man1/Slider4T.1.gz
man/man1/SpinLabel.1.gz
man/man1/SpinLabelT.1.gz
man/man1/Stack.1.gz
man/man1/StackT.1.gz
man/man1/TextMenu.1.gz
man/man1/TextMenuT.1.gz
man/man1/ThWheel.1.gz
man/man1/ThWheelT.1.gz
man/man1/Toggle.1.gz
man/man1/ToggleT.1.gz
man/man1/UGraf.1.gz
man/man1/UGrafT.1.gz
man/man1/VScrollb.1.gz
man/man1/VScrollbT.1.gz
man/man1/XmATerm.1.gz
man/man1/XmATermT.1.gz
man/man1/XmIcon.1.gz
man/man1/XmIconT.1.gz
man/man1/XmPager.1.gz
man/man1/XmPagerT.1.gz
man/man1/XmTabs.1.gz
man/man1/XmTabsT.1.gz
man/man1/fwf.1.gz
@dirrm include/Xfwf

View File

@ -1,7 +1,6 @@
# $FreeBSD$
#
SUBDIR += FWF
SUBDIR += Motif-dummy
SUBDIR += Xaw3d
SUBDIR += bakery