Attached below is patch to make the cstrcmp function of the Time package
work correctly with the latest version of the Control package, from which
the swap function has been dropped.  This patch is being currently
applied to the Debian package octave-time (upcoming version 1.0.9-4).

Best,

Rafael
Description: Define the swap function inside the cstrcmp function
 The swap function used to be in the Control package, but has been dropped
 in version 2.3.50 of the package.  This patch adds the definition of this
 function to the cstrcmp.m file as a local function.
Author: Rafael Laboissiere <raf...@laboissiere.net>
Last-Update: 2012-03-14

--- octave-strings-1.0.7.orig/inst/cstrcmp.m
+++ octave-strings-1.0.7/inst/cstrcmp.m
@@ -85,3 +85,8 @@ function v=do_cstrcmp(s1,s2)
  v=sign(L1-L2);
  return	   
 end
+
+function [u, v] = swap (x, y)
+  u = y
+  v = x;
+endfunction
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to