head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.104 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.102 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.100 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.98 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.96 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.94 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.92 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.5.0.90 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.5.0.88 pkgsrc-2024Q1-base:1.5 pkgsrc-2023Q4:1.5.0.86 pkgsrc-2023Q4-base:1.5 pkgsrc-2023Q3:1.5.0.84 pkgsrc-2023Q3-base:1.5 pkgsrc-2023Q2:1.5.0.82 pkgsrc-2023Q2-base:1.5 pkgsrc-2023Q1:1.5.0.80 pkgsrc-2023Q1-base:1.5 pkgsrc-2022Q4:1.5.0.78 pkgsrc-2022Q4-base:1.5 pkgsrc-2022Q3:1.5.0.76 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.74 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.72 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.70 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.5.0.68 pkgsrc-2021Q3-base:1.5 pkgsrc-2021Q2:1.5.0.66 pkgsrc-2021Q2-base:1.5 pkgsrc-2021Q1:1.5.0.64 pkgsrc-2021Q1-base:1.5 pkgsrc-2020Q4:1.5.0.62 pkgsrc-2020Q4-base:1.5 pkgsrc-2020Q3:1.5.0.60 pkgsrc-2020Q3-base:1.5 pkgsrc-2020Q2:1.5.0.56 pkgsrc-2020Q2-base:1.5 pkgsrc-2020Q1:1.5.0.36 pkgsrc-2020Q1-base:1.5 pkgsrc-2019Q4:1.5.0.58 pkgsrc-2019Q4-base:1.5 pkgsrc-2019Q3:1.5.0.54 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.52 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.50 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.48 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.46 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.44 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.42 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.40 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.38 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.34 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.32 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.30 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.28 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.26 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.24 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.22 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.20 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.18 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.16 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.5.0.14 pkgsrc-2014Q4-base:1.5 pkgsrc-2014Q3:1.5.0.12 pkgsrc-2014Q3-base:1.5 pkgsrc-2014Q2:1.5.0.10 pkgsrc-2014Q2-base:1.5 pkgsrc-2014Q1:1.5.0.8 pkgsrc-2014Q1-base:1.5 pkgsrc-2013Q4:1.5.0.6 pkgsrc-2013Q4-base:1.5 pkgsrc-2013Q3:1.5.0.4 pkgsrc-2013Q3-base:1.5 pkgsrc-2013Q2:1.5.0.2 pkgsrc-2013Q2-base:1.5 pkgsrc-2013Q1:1.4.0.28 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.26 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.24 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.22 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.20 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.18 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.16 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.14 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.4.0.12 pkgsrc-2011Q1-base:1.4 pkgsrc-2010Q4:1.4.0.10 pkgsrc-2010Q4-base:1.4 pkgsrc-2010Q3:1.4.0.8 pkgsrc-2010Q3-base:1.4 pkgsrc-2010Q2:1.4.0.6 pkgsrc-2010Q2-base:1.4 pkgsrc-2010Q1:1.4.0.4 pkgsrc-2010Q1-base:1.4 pkgsrc-2009Q4:1.4.0.2 pkgsrc-2009Q4-base:1.4 pkgsrc-2009Q3:1.3.0.24 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.22 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.20 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.18 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.16 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.14 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.12 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.10 pkgsrc-2008Q1:1.3.0.8 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.6 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.4 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.2 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.2.0.10 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.0.26 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.24 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.22 pkgsrc-2005Q2-base:1.1 pkgsrc-2005Q1:1.1.0.20 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.18 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.16 pkgsrc-2004Q3-base:1.1 pkgsrc-2004Q2:1.1.0.14 pkgsrc-2004Q2-base:1.1 pkgsrc-2004Q1:1.1.0.12 pkgsrc-2004Q1-base:1.1 pkgsrc-2003Q4:1.1.0.10 pkgsrc-2003Q4-base:1.1 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.5 date 2013.05.20.11.35.22; author jperkin; state Exp; branches; next 1.4; commitid M0JFMgAh9UZOwmQw; 1.4 date 2009.12.10.20.35.58; author abs; state Exp; branches; next 1.3; 1.3 date 2007.05.12.00.22.17; author tnn; state Exp; branches; next 1.2; 1.2 date 2006.01.05.18.25.57; author joerg; state Exp; branches; next 1.1; 1.1 date 2001.12.20.09.20.07; author tron; state Exp; branches; next ; desc @@ 1.5 log @Avoid conflicts with SunOS regexp.h. @ text @$NetBSD: patch-dj,v 1.4 2009/12/10 20:35:58 abs Exp $ --- lib/libxview/file_chooser/file_list.c.orig 1993-06-29 05:17:56.000000000 +0000 +++ lib/libxview/file_chooser/file_list.c @@@@ -23,6 +23,9 @@@@ static char sccsid[] = "@@(#)file_lis #include #include +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +#include +#endif /* X bitmaps for default glyphs */ @@@@ -41,6 +44,7 @@@@ static int go_down_one_directory(); static int flist_list_notify(); static int validate_new_directory(); static void flist_new_dir(); +static int flist_match_regex(); #if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) static void flist_error(File_list_private *private, char *format, ...); @@@@ -521,7 +525,11 @@@@ file_list_destroy ( public, status ) if (status == DESTROY_CLEANUP) { xv_free_ref( private->directory ); xv_free_ref( private->regex_pattern ); +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) xv_free_ref( private->regex_compile ); +#else + xv_free_regex_t( private->regex_compile ); +#endif xv_free_ref( private->dotdot_string ); if ( private->dir_ptr ) (void) closedir( private->dir_ptr ); @@@@ -1166,7 +1174,7 @@@@ flist_update_list( private, rows, num_ro * ifdef'd for SVR4 because it causes the 4.x MIT build to fail, not just print * warnings. */ -#ifdef SVR4 +#ifdef notSVR4 static int sed, nbra, circf; static char *loc1, *loc2, *locs; static int advance(); @@@@ -1174,14 +1182,16 @@@@ static char *compile(); static int step(); #endif /* SVR4 */ - +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) #include +#endif static void flist_compile_regex( private ) File_list_private *private; { +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) char compile_buf[MAXPATHLEN+1]; char *end_ptr; size_t num_bytes; @@@@ -1197,6 +1207,17 @@@@ flist_compile_regex( private ) xv_free_ref( private->regex_compile ); private->regex_compile = xv_alloc_n(char, num_bytes); (void) XV_BCOPY(compile_buf, private->regex_compile, num_bytes); +#else + regex_t *compile_buf = malloc(sizeof(regex_t)); + if (compile_buf == NULL){ + fprintf(stderr, "Couldn't allocate compile buffer\n"); + exit(-1); + } + regcomp(compile_buf, private->regex_pattern, 0); + xv_free_regex_t(private->regex_compile); + private->regex_compile = (char *)compile_buf; +#endif + } @@@@ -1205,7 +1226,11 @@@@ flist_match_regex( s, private ) char *s; File_list_private *private; { +#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) return step(s, private->regex_compile); +#else + return !regexec((regex_t *)private->regex_compile, s, 0, NULL, 0); +#endif } /****************************************************************************/ @ 1.4 log @- Add PKG_DESTDIR_SUPPORT - Depend on the latest version of xview-config - Mark as LICENSE sun-openlook-license - Bump pkgrevision @ text @d1 1 a1 1 $NetBSD: patch-dj,v 1.3 2007/05/12 00:22:17 tnn Exp $ d35 9 @ 1.3 log @Patch a bunch of gcc4 breakages, mostly static prototype mismatches. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- lib/libxview/file_chooser/file_list.c.orig 1993-06-29 07:17:56.000000000 +0200 @ 1.2 log @First try on fixing xview. Fix errno. Add DragonFly support. Use NAME_MAX when available. Don't try to fake a FILE on DragonFly. The implementation of textsw_scanf can be improved, it is very defensively and slow ATM, the snprintf usage should be portable. Fix a number of prototype mismatches, e.g. variable argument functions can conflict with K&R prototypes. Bump revision since the package "compiled" before, e.g. build errors where ignored. @ text @d1 1 a1 1 $NetBSD: patch-dj,v 1.1 2001/12/20 09:20:07 tron Exp $ d3 3 a5 3 --- lib/libxview/file_chooser/file_list.c.orig Tue Jun 29 07:17:56 1993 +++ lib/libxview/file_chooser/file_list.c Thu Dec 20 10:09:16 2001 @@@@ -23,6 +23,9 @@@@ d15 1 a15 1 @@@@ -41,6 +44,7 @@@@ d23 1 a23 1 @@@@ -521,7 +525,11 @@@@ d30 1 a30 1 + xv_free_regex_t( (regex_t *)private->regex_compile ); d35 1 a35 1 @@@@ -1174,14 +1182,16 @@@@ d53 1 a53 1 @@@@ -1197,6 +1207,17 @@@@ d64 1 a64 1 + xv_free_regex_t((regex_t *)private->regex_compile); d71 1 a71 1 @@@@ -1205,7 +1226,11 @@@@ @ 1.1 log @Cleanup patch files: - unified format - only one patch per file - no files gets patched twice @ text @d1 1 a1 1 $NetBSD$ d9 1 a9 1 +#if defined(__FreeBSD__) || defined(__NetBSD__) d27 1 a27 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) d40 1 a40 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) d49 1 a49 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) d75 1 a75 1 +#if !defined(__FreeBSD__) && !defined(__NetBSD__) @