comparison main/general/inst/@dict/private/__lookup_compat__.m @ 9687:9df0cf7217ae octave-forge

general: update licenses to GPLv3+ and DESCRIPTION to mention non GPL code
author carandraug
date Tue, 13 Mar 2012 22:39:03 +0000
parents 93dec4bcb93f
children
comparison
equal deleted inserted replaced
9686:bf4750dd64ce 9687:9df0cf7217ae
1 ## Copyright (C) 2009 VZLU Prague, a.s., Czech Republic 1 ## Copyright (C) 2009 VZLU Prague, a.s., Czech Republic
2 ## 2 ##
3 ## Author: Jaroslav Hajek <highegg@gmail.com> 3 ## This program is free software; you can redistribute it and/or modify it under
4 ## the terms of the GNU General Public License as published by the Free Software
5 ## Foundation; either version 3 of the License, or (at your option) any later
6 ## version.
4 ## 7 ##
5 ## This program is free software; you can redistribute it and/or modify 8 ## This program is distributed in the hope that it will be useful, but WITHOUT
6 ## it under the terms of the GNU General Public License as published by 9 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7 ## the Free Software Foundation; either version 3 of the License, or 10 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
8 ## (at your option) any later version. 11 ## details.
9 ## 12 ##
10 ## This program is distributed in the hope that it will be useful, 13 ## You should have received a copy of the GNU General Public License along with
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ## this program; if not, see <http://www.gnu.org/licenses/>.
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; see the file COPYING. If not, see
17 ## <http://www.gnu.org/licenses/>.
18 15
19 ## This replaces the missing functionality of "lookup" if on Octave 3.2. 16 ## This replaces the missing functionality of "lookup" if on Octave 3.2.
17
18 ## Author: Jaroslav Hajek <highegg@gmail.com>
20 19
21 function lookup_func = __lookup_compat__ () 20 function lookup_func = __lookup_compat__ ()
22 persistent octave32 = issorted ({"3.0.0", version, "3.3.0"}); 21 persistent octave32 = issorted ({"3.0.0", version, "3.3.0"});
23 if (octave32) 22 if (octave32)
24 lookup_func = @__my_lookup__; 23 lookup_func = @__my_lookup__;