diff options
author | obrien <obrien@FreeBSD.org> | 2012-04-14 06:56:14 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2012-04-14 06:56:14 +0800 |
commit | 8077e1df4354de421a3fe5369a9ed3fe706ccb6b (patch) | |
tree | e1a26c8545eb1fcb8e9a20c0c2caaa52fd25560e /deskutils/ical | |
parent | 4f60c464262468567866484e08c42e7740955718 (diff) | |
download | freebsd-ports-gnome-8077e1df4354de421a3fe5369a9ed3fe706ccb6b.tar.gz freebsd-ports-gnome-8077e1df4354de421a3fe5369a9ed3fe706ccb6b.tar.zst freebsd-ports-gnome-8077e1df4354de421a3fe5369a9ed3fe706ccb6b.zip |
Update for Tcl/Tk 8.5.
Obtained from: http://www.isi.edu/~johnh/SOFTWARE/ICAL/
Diffstat (limited to 'deskutils/ical')
-rw-r--r-- | deskutils/ical/files/patch-configure | 11 | ||||
-rw-r--r-- | deskutils/ical/files/patch-dateeditor.C | 29 |
2 files changed, 40 insertions, 0 deletions
diff --git a/deskutils/ical/files/patch-configure b/deskutils/ical/files/patch-configure index 57a368d08057..95ea2cad7484 100644 --- a/deskutils/ical/files/patch-configure +++ b/deskutils/ical/files/patch-configure @@ -1,5 +1,16 @@ --- configure.orig Fri Nov 15 17:59:05 2002 +++ configure Fri Nov 15 17:59:20 2002 +@@ -1204,8 +1204,8 @@ fi + + echo "checking Tcl/Tk installation" 1>&6 + echo "configure:1207: checking Tcl/Tk installation" >&5 +-legal_tk_versions="8.0 4.9 4.8 4.7 4.6 4.5 4.4 4.3 4.2 4.1" +-legal_tcl_versions="8.0 7.9 7.8 7.7 7.6 7.5" ++legal_tk_versions="8.5 8.4 8.3 8.2 8.0 4.9 4.8 4.7 4.6 4.5 4.4 4.3 4.2 4.1" ++legal_tcl_versions="8.5 8.4 8.3 8.2 8.0 7.9 7.8 7.7 7.6 7.5" + + #### Find tclsh + # Check whether --with-tclsh or --without-tclsh was given. @@ -1327,6 +1327,8 @@ #### Load the Tcl/Tk configuration files . $tclconfig/tclConfig.sh diff --git a/deskutils/ical/files/patch-dateeditor.C b/deskutils/ical/files/patch-dateeditor.C index f869d6c57f4c..a0102ed8b2fe 100644 --- a/deskutils/ical/files/patch-dateeditor.C +++ b/deskutils/ical/files/patch-dateeditor.C @@ -9,3 +9,32 @@ if (Tcl_SplitList(tcl, argv[2], &count, &strlist) != TCL_OK) { return TCL_ERROR; } +@@ -148,12 +148,12 @@ int Cmd_HiliteLoop(ClientData, Tcl_Inter + char buffer[20]; + sprintf(buffer, "%d", list[i].date.EpochDays()); + if (Tcl_SetVar(tcl, dvar, buffer, 0) == NULL) { +- free((char*) strlist); ++ Tcl_Free((char*) strlist); + TCL_Error(tcl, "could not set loop variable"); + } + + if (Tcl_SetVar(tcl, hvar, (char*)hilite, 0) == NULL) { +- free((char*) strlist); ++ Tcl_Free((char*) strlist); + TCL_Error(tcl, "could not set loop variable"); + } + +@@ -165,11 +165,11 @@ int Cmd_HiliteLoop(ClientData, Tcl_Inter + if (result == TCL_BREAK) break; + + // Error of some sort +- free((char*) strlist); ++ Tcl_Free((char*) strlist); + return result; + } + +- free((char*) strlist); ++ Tcl_Free((char*) strlist); + TCL_Return(tcl, ""); + } + |