head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.05.17.07.09.37; author vins; state Exp; branches; next ; commitid hJZHhladOO33x8GG; desc @@ 1.1 log @time/plan: update to 1.12 # changes (since 1.9) ====== 1.12 released 17.10.17 ======= FEATURES: * feature by Ralf Paaschen: can page through months with PageUp, PageDown, Home, and End keys * the manpages reflect the Debian Linux paths. * the "make linux" Makefile target is now 64 bits; use "make linux32" for 32 bits. Just "make" is still equivalent to "make debian". ====== 1.11 released 4.3.14 ======= BUG FIXES: * Petter Reinholdtsen - make the -L option of pland the default on Debian, considered safer - standalone mode accepts 4-digit years in dates: [[yyyy]mmdd] - the number of Unix groups a user belongs to is now unlimited - hardening: plan could be crashed by adding % codes in language files - fixed syntax errors in Bavarion holiday file - don't strip executable, the Debian installer does that (bug #437776) - fix compiler warnings, enable more compiler checks on Debian - fix manpage typos - fixed Debian regex compilation with FreeBSD kernel (Bug #414130) - moved plan and pland pid temp files from /tmp to ~/.plan.dir * new compilation target: "make debian". Must run "./configure" first. * updated "./configure" script with new Debian paths * removed -lXp from linux link line, that library is no longer needed * added restart and (dummy) force-reload to /etc/init.d/netplan.boot: Debian plan 1.10.1-5 E init.d-script-does-not-implement-required-option * sourcing /lib/lsb/init-function to /etc/init.d/netplan.boot: Debian plan 1.10.1-5 W init.d-script-does-not-source-init-functions ====== 1.10.2 released 9.12.08 ======= BUG FIXES: * fixed OpenSuSE 10.3 link error, by Hitoshi Yamauchi * updated Spanish language support, by Gerardo Cafferata ====== 1.10.1 released 3.7.07 ======= BUG FIXES: * fixed "last weekday in month" expressions in holiday file, by Arnaud Giersch * fixed mother's day definition in French holiday file, by Arnaud Giersch ====== 1.10 released 9.4.07 ======= FEATURES: * implemented limited read-only support for vCalendar/iCalendar (.ics) files (Apple, Zimbra, Lotus, etc), which can be specified in File -> File list like other files. Repetition information is ignored. * added "make linux64" target. Some 64-bit Linux installations, notably OpenSUSE 10.2, omit 32-bit libraries or links, causing compilation errors for -lXt and others. * ported to MacOS X with X11 and OpenMotif. Requires X11 from the MacOS X install DVD, and OpenMotif from www.ist-inc.com/DOWNLOADS/motif_files/ openmotif-compat-2.1.31_IST.macosx10.3.dmg . The X server must run, and DISPLAY must be set properly (like, localhost:0) or plan won't start up. This is not a proper Aqua/Cocoa/Carbon port, although I made some feeble attempts to fix the color scheme. * new Polish language file by Jaroslaw Arlet * new command-line option -Y allows entering annual (yearly) appointments, by Steffen Pietsch * when alarms trigger, '%' codes in the short note text, message, and the script are expanded. (See the help text in plan's Message/Script help.) Eg., you can write message texts like "remember to see %U on %D at %T". %N the short note text %M the message text %S the script text %D the final trigger date %T the final trigger time %L the length in hours:minutes %F the file the appointment is stored in, or "private" %U your login name %% a percent sign, '%' BUG FIXES: * fixed a timezone bug that could make alarms go off exactly 24 hours late, Aaron Kaplan * manpage files were installed without the trailing ".1" and ".4" * fixed compiler errors under Cygwin because the symbol linux was not set. * added -m32 option for Linux; gcc 4 defaults to 64 bits but the required libraries are not usually installed. * entering a day of the month as a date will now correctly find the next date with that day. A bug caused it to switch to a random date in 2000. * fixed a language file read error that omitted a trailing null byte. By Julien Soula * an incomplete X resource file crashed plan. Now defaults are used; the resulting windows are not very usable but it doesn't crash. @ text @$NetBSD$ --- sublist.c.orig 2017-10-17 06:29:05.000000000 +0000 +++ sublist.c @@@@ -20,21 +20,9 @@@@ #define CHUNK 100 /* sublist allocation unit */ #ifndef NOREGEX -#if defined(linux) #include -#else -#define regex_t char -#endif -#if defined(SUN) && !defined(SOLARIS2) -#define regcmp re_comp -#define regex re_exec -extern char *regcmp(), *regex(), *__loc1; -#endif -#if defined(__EMX__) || defined(__FreeBSD_kernel__) -#define regcmp regcomp +#define regcmp(a, b) regcomp(a, b, REG_BASIC) #define regex regexec -extern char *regcmp(), *regex(), *__loc1; -#endif #endif extern int search_mode; /* 0=case, 1=lit, 2=regex */ extern struct user *user; /* user list (from file_r.c) */ @@@@ -93,12 +81,8 @@@@ void create_sublist( #ifndef NOREGEX regex_t *preg = 0; if (search_mode == 2) { -#if defined(linux) preg = (regex_t *)malloc(sizeof(regex_t)); if (regcomp(preg, key, 0)) { -#else - if (!(key = regcmp(key, 0))) { -#endif free(preg); list->locked--; return; @@@@ -114,12 +98,8 @@@@ void create_sublist( append_entry(&w->sublist, ep); #ifndef NOREGEX if (search_mode == 2) { -#if defined(linux) regfree(preg); free(preg); -#else - free(key); -#endif } #endif if (search_mode == 1) @@@@ -215,14 +195,7 @@@@ static BOOL keymatch( #ifndef NOREGEX case 2: { -#if defined(linux) return(regexec(preg, string, 0, 0, 0) == 0); -#else - char dummy[1024]; - return(regex(key, string, - dummy, dummy, dummy, dummy, dummy, - dummy, dummy, dummy, dummy, dummy) != 0); -#endif } #endif } @