correcting error in import of dyanre_v4 and cleaning-up
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@9 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
|
@ -1,7 +0,0 @@
|
|||
/char.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
/display.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
/get.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
/parse.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
/set.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
/template.m/1.1.2.1/Wed Mar 31 14:53:56 2004//Tversion_4
|
||||
D/private////
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/@template
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
|
@ -1,15 +0,0 @@
|
|||
function s = char(tpl)
|
||||
%TEMPLATE Convert a template object in a one line description string
|
||||
% S = CHAR(TPL) is a class convertor from Template to a string, used
|
||||
% in online display.
|
||||
%
|
||||
% See also DISPLAY
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
s = ['Template Object: root ''',...
|
||||
tpl.root,''', ',...
|
||||
num2str(length(tpl.file)), ' files, ',...
|
||||
num2str(length(tpl.varkeys)), ' keys, ',...
|
||||
tpl.unknowns, ' unknowns.'];
|
|
@ -1,18 +0,0 @@
|
|||
function display(tpl)
|
||||
%TEMPLATE Display a template object in Matlab window
|
||||
% DISPLAY(TPL) displays informations about the content of template
|
||||
% object TPL:
|
||||
% Template Object: root '.', 2 files, 9 keys, comment unknowns.
|
||||
% root element of template files, number of template files, number of
|
||||
% keywords defined and the way of handling unknowns tags.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
disp(' ');
|
||||
disp([inputname(1),' = ']);
|
||||
disp(' ');
|
||||
for i=1:prod(size(tpl))
|
||||
disp([blanks(length(inputname(1))+3) char(tpl(i))]);
|
||||
end
|
||||
disp(' ');
|
|
@ -1,50 +0,0 @@
|
|||
function varargout = get(tpl,action,varargin)
|
||||
%TEMPLATE/GET Access data stored in a Template object
|
||||
% TPL = GET(TPL,ACTION,VARARGIN)
|
||||
% ACTION 'var'
|
||||
% ACTION 'undefined'
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
error(nargchk(2,3,nargin));
|
||||
|
||||
switch lower(action)
|
||||
case 'var'
|
||||
error(nargchk(2,3,nargin));
|
||||
if nargin == 2
|
||||
varargout{1} = tpl.varvals;
|
||||
elseif iscellstr(varargin{1})
|
||||
varargout{1} = {};
|
||||
for i=1:length(varargin{1})
|
||||
key = find(ismember(tpl.varkeys,varargin{1}{i}));
|
||||
if isempty(key)
|
||||
%error('[Template] No such variable name.');
|
||||
varargout{1}{end+1} = '';
|
||||
else
|
||||
varargout{1}{end+1} = tpl.varvals{key};
|
||||
end
|
||||
end
|
||||
elseif ischar(varargin{1})
|
||||
varargout{1} = char(get(tpl,'var',cellstr(varargin{1})));
|
||||
else
|
||||
varargout{1} = '';
|
||||
end
|
||||
case 'undefined'
|
||||
error(nargchk(3,3,nargin));
|
||||
tpl = loadtpl(tpl,varargin{1});
|
||||
str = get(tpl,'var',varargin{1});
|
||||
varargout{1} = {};
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%% WIH REGEXP ONLY %%%%%%%%%%%%%%%%%%%%
|
||||
% [b, e] = regexp(str,'{[^ \t\r\n}]+}');
|
||||
% for i=1:length(b)
|
||||
% if ~any(ismember(tpl.varkeys,str(b(i)+1:e(i)-1)))
|
||||
% varargout{1}{end+1} = str(b(i)+1:e(i)-1);
|
||||
% end
|
||||
% end
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
otherwise
|
||||
varargout{1} = finish(get(tpl,'var',action),tpl.unknowns);
|
||||
end
|
|
@ -1,33 +0,0 @@
|
|||
function [tpl, str] = parse(tpl,target,handle,append)
|
||||
%TEMPLATE/PARSE Fill in replacement fields with the class properties
|
||||
% [TPL, STR] = PARSE(TPL,TARGET,HANDLE) fills in the replacement field
|
||||
% HANDLE using previously defined variables of template TPL and store
|
||||
% it in field TARGET. HANDLE can also be a cell array of field names.
|
||||
% Output is also provided in output STR (content of TARGET).
|
||||
% [TPL, STR] = PARSE(TPL,TARGET,HANDLE,APPEND) allows to specify if
|
||||
% TARGET field is reseted before being filled or if new content is
|
||||
% appended to the previous one.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
error(nargchk(3,4,nargin));
|
||||
if nargin == 3
|
||||
append = 0;
|
||||
end
|
||||
|
||||
if iscellstr(handle)
|
||||
for i=1:length(handle)
|
||||
[tpl, str] = subst(tpl,handle{i});
|
||||
tpl = set(tpl,'var',target,str);
|
||||
end
|
||||
elseif ischar(handle)
|
||||
[tpl, str] = subst(tpl,handle);
|
||||
if append
|
||||
tpl = set(tpl,'var',target,[get(tpl,'var',target) str]);
|
||||
else
|
||||
tpl = set(tpl,'var',target,str);
|
||||
end
|
||||
else
|
||||
error('[Template] Badly formed handle.');
|
||||
end
|
|
@ -1,4 +0,0 @@
|
|||
/finish.m/1.1.2.1/Wed Mar 31 14:53:02 2004//Tversion_4
|
||||
/loadtpl.m/1.1.2.1/Wed Mar 31 14:53:02 2004//Tversion_4
|
||||
/subst.m/1.1.2.1/Wed Mar 31 14:53:02 2004//Tversion_4
|
||||
D
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/@template/private
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
|
@ -1,31 +0,0 @@
|
|||
function str = finish(str,unknowns)
|
||||
%TEMPLATE/FINISH Apply given strategy to unknown fields in a string
|
||||
% STR = FINISH(STR,UNKNOWNS) applies on string STR the strategy defined
|
||||
% in UNKNOWNS to unknowns fields '{UNKNOWNS_FIELDS}'.
|
||||
% UNKNOWNS may be:
|
||||
% * 'keep' to do nothing
|
||||
% * 'remove' to remove all undefined fields
|
||||
% * 'comment' to replace undefined fields by a warning HTML comment.
|
||||
% This function uses Matlab REGEXPREP function coming with R13. If you
|
||||
% hold an older version, please comment lines 38 and 42: then you can
|
||||
% only apply the 'keep' strategy.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:01 $
|
||||
|
||||
error(nargchk(2,2,nargin));
|
||||
|
||||
switch lower(unknowns)
|
||||
case 'keep'
|
||||
%- do nothing
|
||||
case 'remove'
|
||||
%%%%%%%%%%%%%%%%%%%%%%%% WIH REGEXP ONLY %%%%%%%%%%%%%%%%%%%%
|
||||
% str = regexprep(str,'{[^ \t\r\n}]+}','');
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
case 'comment'
|
||||
%%%%%%%%%%%%%%%%%%%%%%%% WIH REGEXP ONLY %%%%%%%%%%%%%%%%%%%%
|
||||
% str = regexprep(str,'{[^ \t\r\n}]+}','<!-- Template variable undefined -->');
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
otherwise
|
||||
error('[Template] Unknown action.');
|
||||
end
|
|
@ -1,24 +0,0 @@
|
|||
function tpl = loadtpl(tpl,handle)
|
||||
%TEMPLATE/LOADTPL Read a template from file
|
||||
% TPL = LOADTPL(TPL,HANDLE) read the template file associated with the
|
||||
% handle HANDLE in the template TPL and store it in the variable HANDLE.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:01 $
|
||||
|
||||
if ~isempty(get(tpl,'var',handle))
|
||||
return;
|
||||
else
|
||||
ind = find(ismember(tpl.handles,handle));
|
||||
if isempty(ind)
|
||||
error('[Template] No such template handle.');
|
||||
else
|
||||
filename = tpl.file{ind};
|
||||
[fid, errmsg] = fopen(filename);
|
||||
if ~isempty(errmsg)
|
||||
error(sprintf('Cannot open template file %s.',filename));
|
||||
end
|
||||
tpl = set(tpl,'var',handle,fscanf(fid,'%c'));
|
||||
fclose(fid);
|
||||
end
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
function [tpl, str] = subst(tpl,handle)
|
||||
%TEMPLATE/SUBST Substitute a replacement field by its value
|
||||
% STR = SUBST(TPL,HANDLE) substitute all the known fields of variable HANDLE
|
||||
% in the template TPL.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:01 $
|
||||
|
||||
tpl = loadtpl(tpl,handle);
|
||||
|
||||
str = get(tpl,'var',handle);
|
||||
for i=1:length(tpl.varkeys)
|
||||
str = strrep(str, strcat('{',tpl.varkeys{i},'}'), tpl.varvals{i});
|
||||
end
|
|
@ -1,110 +0,0 @@
|
|||
function tpl = set(tpl,action,varargin)
|
||||
%TEMPLATE/SET Edit data stored in a Template object
|
||||
% TPL = SET(TPL,ACTION,VARARGIN)
|
||||
% ACTION 'root'
|
||||
% ACTION 'unknowns'
|
||||
% ACTION 'file'
|
||||
% ACTION 'block'
|
||||
% ACTION 'var'
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
error(nargchk(3,5,nargin));
|
||||
|
||||
switch lower(action)
|
||||
case 'root'
|
||||
error(nargchk(3,3,nargin));
|
||||
if exist(varargin{1},'dir')
|
||||
tpl.root = varargin{1};
|
||||
else
|
||||
error('[Template] No such directory.');
|
||||
end
|
||||
case 'unknowns'
|
||||
error(nargchk(3,3,nargin));
|
||||
if ismember(varargin{1},{'remove' 'comment' 'keep'})
|
||||
tpl.unknowns = varargin{1};
|
||||
else
|
||||
error('[Template] Unknowns: ''remove'', ''comment'' or ''keep''.');
|
||||
end
|
||||
case 'file'
|
||||
error(nargchk(4,4,nargin));
|
||||
if iscellstr(varargin{1})
|
||||
for i=1:length(varargin{1})
|
||||
ind = find(ismember(tpl.handles,varargin{1}{i}));
|
||||
if isempty(ind)
|
||||
tpl.handles{end+1} = varargin{1}{i};
|
||||
if strcmp(varargin{2}{i}(1),filesep) %- absolute path (Unix)
|
||||
tpl.file{end+1} = varargin{2}{i};
|
||||
else %- relative path
|
||||
tpl.file{end+1} = fullfile(tpl.root,varargin{2}{i});
|
||||
end
|
||||
else
|
||||
if strcmp(varargin{2}{i}(1),filesep) %- absolute path (Unix)
|
||||
tpl.file{ind} = varargin{2}{i};
|
||||
else %- relative path
|
||||
tpl.file{ind} = fullfile(tpl.root,varargin{2}{i});
|
||||
end
|
||||
end
|
||||
end
|
||||
elseif ischar(varargin{1})
|
||||
tpl = set(tpl,'file',cellstr(varargin{1}),cellstr(varargin{2}));
|
||||
else
|
||||
error('[Template] Badly formed handles.');
|
||||
end
|
||||
case 'block'
|
||||
error(nargchk(4,5,nargin));
|
||||
tpl = loadtpl(tpl,varargin{1});
|
||||
if nargin == 4
|
||||
name = varargin{2};
|
||||
else
|
||||
name = varargin{3};
|
||||
end
|
||||
str = get(tpl,'var',varargin{1});
|
||||
blk = '';
|
||||
%- look like this (keep the same number (1) of spaces between characters!)
|
||||
% <!-- BEGIN ??? -->
|
||||
% <!-- END ??? -->
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%% WIH REGEXP %%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% reg = ['<!--\s+BEGIN ' varargin{2} '\s+-->(.*)\n\s*<!--\s+END ' varargin{2} '\s+-->'];
|
||||
% [b, e] = regexp(str,reg,'once');
|
||||
% if ~isempty(b), blk = str(b:e); end %- should also remove BEGIN and END comments
|
||||
% str = regexprep(str,reg,['{' name '}']);
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%% WIHTOUT REGEXP %%%%%%%%%%%%%%%%%%%%%%%
|
||||
indbegin = findstr(str,['<!-- BEGIN ' varargin{2} ' -->']);
|
||||
indend = findstr(str,['<!-- END ' varargin{2} ' -->']);
|
||||
if ~isempty(indbegin) & ~isempty(indend)
|
||||
blk = str(indbegin+length(['<!-- BEGIN ' varargin{2} ' -->'])+1:indend-1);
|
||||
str = [str(1:indbegin-1) '{' name '}' str(indend+length(['<!-- END ' varargin{2} ' -->'])+1:end)];
|
||||
end
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
tpl = set(tpl,'var',varargin{2},blk);
|
||||
tpl = set(tpl,'var',varargin{1},str);
|
||||
case 'var'
|
||||
error(nargchk(3,4,nargin));
|
||||
if iscellstr(varargin{1})
|
||||
for i=1:length(varargin{1})
|
||||
ind = find(ismember(tpl.varkeys,varargin{1}{i}));
|
||||
if isempty(ind)
|
||||
tpl.varkeys{end+1} = varargin{1}{i};
|
||||
if nargin == 4
|
||||
tpl.varvals{end+1} = varargin{2}{i};
|
||||
else
|
||||
tpl.varvals{end+1} = '';
|
||||
end
|
||||
else
|
||||
tpl.varvals{ind} = varargin{2}{i};
|
||||
end
|
||||
end
|
||||
elseif ischar(varargin{1})
|
||||
tpl = set(tpl,'var',cellstr(varargin{1}),cellstr(varargin{2}));
|
||||
else
|
||||
error('[Template] Badly formed variable names.');
|
||||
end
|
||||
otherwise
|
||||
error('[Template] Unknown action to perform.');
|
||||
end
|
|
@ -1,47 +0,0 @@
|
|||
function tpl = template(root,unknowns)
|
||||
%TEMPLATE HTML Template Toolbox Constructor
|
||||
% TPL = TEMPLATE returns a template object using default values for the
|
||||
% root path of the template files ('.') and for the way of handling unknown
|
||||
% replacement fields (default is 'remove').
|
||||
% TPL = TEMPLATE(ROOT) allows to specify the root path of the template files
|
||||
% that will then be provided relative to this path.
|
||||
% TPL = TEMPLATE(ROOT,UNKNOWNS) also allows to specify the strategy to apply
|
||||
% to unkown fields. UNKNOWNS may be:
|
||||
% * 'keep' to do nothing
|
||||
% * 'remove' to remove all undefined fields
|
||||
% * 'comment' to replace undefined fields by a warning HTML comment.
|
||||
%
|
||||
% The template class allows you to keep your HTML code in some external
|
||||
% files which are completely free of Matlab code, but contain replacement
|
||||
% fields. The class provides you with functions which can fill in the
|
||||
% replacement fields with arbitrary strings. These strings can become very
|
||||
% large, e.g. entire tables.
|
||||
% See the PHPLib: <http://www.sanisoft.com/phplib/manual/template.php>
|
||||
% See also GET, SET, PARSE
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:53:56 $
|
||||
|
||||
error(nargchk(0,2,nargin));
|
||||
|
||||
switch nargin
|
||||
case 0
|
||||
tpl = struct('root','.',...
|
||||
'file',{{}},...
|
||||
'handles',{{}},...
|
||||
'varkeys',{{}},...
|
||||
'varvals',{{}},...
|
||||
'unknowns','remove');
|
||||
tpl = class(tpl,'template');
|
||||
case 1
|
||||
if isa(root,'template')
|
||||
tpl = root;
|
||||
else
|
||||
tpl = template;
|
||||
tpl = set(tpl,'root',root);
|
||||
end
|
||||
case 2
|
||||
tpl = template;
|
||||
tpl = set(tpl,'root',root);
|
||||
tpl = set(tpl,'unknowns',unknowns);
|
||||
end
|
|
@ -1,19 +0,0 @@
|
|||
/GPL/1.1.2.1/Wed Mar 31 14:45:52 2004/-kb/Tversion_4
|
||||
/dot.exe/1.1.2.1/Wed Mar 31 14:45:50 2004/-kb/Tversion_4
|
||||
/dynmat_doc.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/ft.dll/1.1.2.1/Wed Mar 31 14:45:52 2004/-kb/Tversion_4
|
||||
/jpeg.dll/1.1.2.1/Wed Mar 31 14:45:52 2004/-kb/Tversion_4
|
||||
/libexpat.dll/1.1.2.1/Wed Mar 31 14:45:52 2004/-kb/Tversion_4
|
||||
/m2html.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/mdot.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/mexexts.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/mfileparse.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/openfile.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/png.dll/1.1.2.1/Wed Mar 31 14:46:44 2004/-kb/Tversion_4
|
||||
/searchindex.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/splitcode.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/strtok.m/1.1.2.1/Wed Mar 31 14:46:22 2004//Tversion_4
|
||||
/z.dll/1.1.2.1/Wed Mar 31 14:45:52 2004/-kb/Tversion_4
|
||||
D/@template////
|
||||
D/private////
|
||||
D/templates////
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
|
@ -1,280 +0,0 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
|
@ -1,2 +0,0 @@
|
|||
evalin('base',['cd ' strrep(which('dynare.m'),'dynare.m','') '..'])
|
||||
m2html('mfiles', 'matlab', 'htmldir','doc/matlab','graph','on');
|
|
@ -1,78 +0,0 @@
|
|||
function mdot(mmat, dotfile,f)
|
||||
%MDOT - Export a dependency graph into DOT language
|
||||
% MDOT(MMAT, DOTFILE) loads a .mat file generated by M2HTML using option
|
||||
% ('save','on') and writes an ascii file using the DOT language that can
|
||||
% be drawn using <dot> or <neato> .
|
||||
% MDOT(MMAT, DOTFILE,F) builds the graph containing M-file F and its
|
||||
% neighbors only.
|
||||
% See the folowing page for more details:
|
||||
% <http://www.research.att.com/sw/tools/graphviz/>
|
||||
%
|
||||
% Example:
|
||||
% mdot('m2html.mat','m2html.dot');
|
||||
% !dot -Tps m2html.dot -o m2html.ps
|
||||
% !neato -Tps m2html.dot -o m2html.ps
|
||||
%
|
||||
% See also M2HTML
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
error(nargchk(2,3,nargin));
|
||||
|
||||
if ischar(mmat)
|
||||
load(mmat);
|
||||
elseif iscell(mmat)
|
||||
hrefs = mmat{1};
|
||||
names = mmat{2};
|
||||
options = mmat{3};
|
||||
if nargin == 3, mfiles = mmat{4}; end
|
||||
else
|
||||
error('[mdot] Invalid argument: mmat.');
|
||||
end
|
||||
|
||||
fid = fopen(dotfile,'w');
|
||||
if fid == -1, error(sprintf('[mdot] Cannot open %s.',dotfile)); end
|
||||
|
||||
fprintf(fid,'/* Created by mdot for Matlab */\n');
|
||||
fprintf(fid,'digraph m2html {\n');
|
||||
|
||||
if nargin == 2
|
||||
for i=1:size(hrefs,1)
|
||||
n = find(hrefs(i,:) == 1);
|
||||
m{i} = n;
|
||||
for j=1:length(n)
|
||||
fprintf(fid,[' ' names{i} ' -> ' names{n(j)} ';\n']);
|
||||
end
|
||||
end
|
||||
%m = unique([m{:}]);
|
||||
fprintf(fid,'\n');
|
||||
for i=1:size(hrefs,1)
|
||||
fprintf(fid,[' ' names{i} ' [URL="' names{i} options.extension '"];\n']);
|
||||
end
|
||||
else
|
||||
i = find(strcmp(f,mfiles));
|
||||
if length(i) ~= 1
|
||||
error(sprintf('[mdot] Cannot find %s.',f));
|
||||
end
|
||||
n = find(hrefs(i,:) == 1);
|
||||
for j=1:length(n)
|
||||
fprintf(fid,[' ' names{i} ' -> ' names{n(j)} ';\n']);
|
||||
end
|
||||
m = find(hrefs(:,i) == 1);
|
||||
for j=1:length(m)
|
||||
if n(j) ~= i
|
||||
fprintf(fid,[' ' names{m(j)} ' -> ' names{i} ';\n']);
|
||||
end
|
||||
end
|
||||
n = unique([n(:)' m(:)']);
|
||||
fprintf(fid,'\n');
|
||||
for i=1:length(n)
|
||||
fprintf(fid,[' ' names{n(i)} ' [URL="' names{n(i)} options.extension '"];\n']);
|
||||
end
|
||||
end
|
||||
|
||||
fprintf(fid,'}');
|
||||
|
||||
fid = fclose(fid);
|
||||
if fid == -1, error(sprintf('[mdot] Cannot close %s.',dotfile)); end
|
|
@ -1,15 +0,0 @@
|
|||
function [ext, platform] = mexexts
|
||||
%List of Mex files extensions
|
||||
% MEXEXTS returns a cell array containing the Mex files platform
|
||||
% dependent extensions and another cell array containing the full names
|
||||
% of the corresponding platforms.
|
||||
%
|
||||
% See also MEX, MEXEXT
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
ext = {'.mexsol' '.mexhpux' '.mexhp7' '.mexrs6' '.mexsg' '.mexaxp' '.mexglx' ...
|
||||
'.mexlx' '.dll'};
|
||||
|
||||
platform = {'SunOS' 'HP' 'HP700' 'IBM' 'SGI' 'Alpha' 'Linux x86' 'Linux' 'Windows'};
|
|
@ -1,158 +0,0 @@
|
|||
function s = mfileparse(mfile, mdirs, names, options)
|
||||
%Parsing of an M-file to obtain synopsis, help and references
|
||||
% S = MFILEPARSE(MFILE, MDIRS, NAMES, OPTIONS) parses the M-file MFILE looking
|
||||
% for synopsis (function), H1 line, subroutines and todo tags (if any).
|
||||
% It also fills in a boolean array indicating whether MFILE calls M-files
|
||||
% defined by MDIRS (M-files directories) AND NAMES (M-file names).
|
||||
% The input OPTIONS comes from M2HTML: fields used are 'verbose', 'global'
|
||||
% and 'todo'.
|
||||
% Output S is a structure whose fields are:
|
||||
% o synopsis: char array (empty if MFILE is a script)
|
||||
% o h1line: short one-line description into the first help line
|
||||
% o subroutine: cell array of char containing subroutines synopsis
|
||||
% o hrefs: boolean array with hrefs(i) = 1 if MFILE calls mdirs{i}/names{i}
|
||||
% o todo: structure containing information about potential todo tags
|
||||
%
|
||||
% See also M2HTML
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
error(nargchk(3,4,nargin));
|
||||
if nargin == 3,
|
||||
options = struct('verbose',1, 'globalHypertextLinks',0, 'todo',0);
|
||||
end
|
||||
|
||||
%- Delimiters used in strtok: some of them may be useless (% " .), removed '.'
|
||||
strtok_delim = sprintf(' \t\n\r(){}[]<>+-*~!|\\@&/,:;="''%%');
|
||||
|
||||
%- Open for reading the M-file
|
||||
if options.verbose
|
||||
fprintf('Processing file %s...\n',mfile);
|
||||
end
|
||||
fid = openfile(mfile,'r');
|
||||
it = 0; % line number
|
||||
|
||||
%- Initialize Output
|
||||
s = struct('synopsis', '', ...
|
||||
'h1line', '', ...
|
||||
'subroutine', {{}}, ...
|
||||
'hrefs', sparse(1,length(names)), ...
|
||||
'todo', struct('line',[],'comment',{{}}), ...
|
||||
'ismex', zeros(size(mexexts)));
|
||||
|
||||
%- Initialize flag for synopsis cont ('...')
|
||||
flagsynopcont = 0;
|
||||
%- Look for synopsis and H1 line
|
||||
% Help is the first set of contiguous comment lines in an m-file
|
||||
% The H1 line is a short one-line description into the first help line
|
||||
while 1
|
||||
tline = fgetl(fid);
|
||||
if ~ischar(tline), break, end
|
||||
it = it + 1;
|
||||
tline = deblank(fliplr(deblank(fliplr(tline))));
|
||||
%- Synopsis line
|
||||
if ~isempty(strmatch('function',tline))
|
||||
s.synopsis = tline;
|
||||
if ~isempty(strmatch('...',fliplr(tline)))
|
||||
flagsynopcont = 1;
|
||||
s.synopsis = deblank(s.synopsis(1:end-3));
|
||||
end
|
||||
%- H1 Line
|
||||
elseif ~isempty(strmatch('%',tline))
|
||||
% allow for the help lines to be before the synopsis
|
||||
if isempty(s.h1line)
|
||||
s.h1line = fliplr(deblank(tline(end:-1:2)));
|
||||
end
|
||||
if ~isempty(s.synopsis), break, end
|
||||
%- Go through empty lines
|
||||
elseif isempty(tline)
|
||||
|
||||
%- Code found. Stop.
|
||||
else
|
||||
if flagsynopcont
|
||||
if isempty(strmatch('...',fliplr(tline)))
|
||||
s.synopsis = [s.synopsis tline];
|
||||
flagsynopcont = 0;
|
||||
else
|
||||
s.synopsis = [s.synopsis deblank(tline(1:end-3))];
|
||||
end
|
||||
else
|
||||
break;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Global Hypertext Links option
|
||||
% If false, hypertext links are done only among functions in the same
|
||||
% directory.
|
||||
if options.globalHypertextLinks
|
||||
hrefnames = names;
|
||||
else
|
||||
indhref = find(strcmp(fileparts(mfile),mdirs));
|
||||
hrefnames = {names{indhref}};
|
||||
end
|
||||
|
||||
%- Compute cross-references and extract subroutines
|
||||
% hrefs(i) is 1 if mfile calls mfiles{i} and 0 otherwise
|
||||
while ischar(tline)
|
||||
% Remove blanks at both ends
|
||||
tline = deblank(fliplr(deblank(fliplr(tline))));
|
||||
|
||||
% Split code into meaningful chunks
|
||||
splitc = splitcode(tline);
|
||||
for j=1:length(splitc)
|
||||
if isempty(splitc{j}) | ...
|
||||
splitc{j}(1) == '''' | ...
|
||||
~isempty(strmatch('...',splitc{j}))
|
||||
% Forget about empty lines, char strings or conts
|
||||
elseif splitc{j}(1) == '%'
|
||||
% Cross-references are not taken into account in comments
|
||||
% Just look for potential TODO line
|
||||
if options.todo
|
||||
if ~isempty(strmatch('% TODO %',splitc{j}))
|
||||
s.todo.line = [s.todo.line it];
|
||||
s.todo.comment{end+1} = splitc{j}(9:end);
|
||||
end
|
||||
end
|
||||
else
|
||||
% detect if this line is a declaration of a subroutine
|
||||
if ~isempty(strmatch('function',splitc{j}))
|
||||
s.subroutine{end+1} = splitc{j};
|
||||
else
|
||||
% get list of variables and functions
|
||||
symbol = {};
|
||||
while 1
|
||||
[t,splitc{j}] = strtok(splitc{j},strtok_delim);
|
||||
if isempty(t), break, end;
|
||||
symbol{end+1} = t;
|
||||
end
|
||||
if options.globalHypertextLinks
|
||||
s.hrefs = s.hrefs + ismember(hrefnames,symbol);
|
||||
else
|
||||
s.hrefs(indhref) = s.hrefs(1,indhref) + ...
|
||||
ismember(hrefnames,symbol);
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
tline = fgetl(fid);
|
||||
it = it + 1;
|
||||
end
|
||||
|
||||
fclose(fid);
|
||||
|
||||
%- Look for Mex files
|
||||
|
||||
[pathstr,name] = fileparts(mfile);
|
||||
samename = dir(fullfile(pathstr,[name '.*']));
|
||||
samename = {samename.name};
|
||||
ext=[];
|
||||
for i=1:length(samename)
|
||||
[dummy, dummy, ext1] = fileparts(samename{i});
|
||||
ext{i}=ext1;
|
||||
end
|
||||
if ~isempty(ext),
|
||||
s.ismex = ismember(mexexts,ext);
|
||||
end;
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
function fid = openfile(filename,permission)
|
||||
%Open a file in read/write mode, catching errors
|
||||
% FID = OPENFILE(FILENAME,PERMISSION) opens file FILENAME
|
||||
% in PERMISSION mode ('r' or 'w') and return a file identifier FID.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
[fid, errmsg] = fopen(filename,permission);
|
||||
if ~isempty(errmsg)
|
||||
switch permission
|
||||
case 'r'
|
||||
error(sprintf('Cannot open %s in read mode.',filename));
|
||||
case 'w'
|
||||
error(sprintf('Cannot open %s in write mode.',filename));
|
||||
otherwise
|
||||
error(errmsg);
|
||||
end
|
||||
end
|
|
@ -1,7 +0,0 @@
|
|||
/mexexts.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
/mfileparse.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
/openfile.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
/searchindex.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
/splitcode.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
/strtok.m/1.1.2.1/Wed Mar 31 14:52:40 2004//Tversion_4
|
||||
D
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/private
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
|
@ -1,15 +0,0 @@
|
|||
function [ext, platform] = mexexts
|
||||
%List of Mex files extensions
|
||||
% MEXEXTS returns a cell array containing the Mex files platform
|
||||
% dependent extensions and another cell array containing the full names
|
||||
% of the corresponding platforms.
|
||||
%
|
||||
% See also MEX, MEXEXT
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
ext = {'.mexsol' '.mexhpux' '.mexhp7' '.mexrs6' '.mexsg' '.mexaxp' '.mexglx' ...
|
||||
'.mexlx' '.dll'};
|
||||
|
||||
platform = {'SunOS' 'HP' 'HP700' 'IBM' 'SGI' 'Alpha' 'Linux x86' 'Linux' 'Windows'};
|
|
@ -1,158 +0,0 @@
|
|||
function s = mfileparse(mfile, mdirs, names, options)
|
||||
%Parsing of an M-file to obtain synopsis, help and references
|
||||
% S = MFILEPARSE(MFILE, MDIRS, NAMES, OPTIONS) parses the M-file MFILE looking
|
||||
% for synopsis (function), H1 line, subroutines and todo tags (if any).
|
||||
% It also fills in a boolean array indicating whether MFILE calls M-files
|
||||
% defined by MDIRS (M-files directories) AND NAMES (M-file names).
|
||||
% The input OPTIONS comes from M2HTML: fields used are 'verbose', 'global'
|
||||
% and 'todo'.
|
||||
% Output S is a structure whose fields are:
|
||||
% o synopsis: char array (empty if MFILE is a script)
|
||||
% o h1line: short one-line description into the first help line
|
||||
% o subroutine: cell array of char containing subroutines synopsis
|
||||
% o hrefs: boolean array with hrefs(i) = 1 if MFILE calls mdirs{i}/names{i}
|
||||
% o todo: structure containing information about potential todo tags
|
||||
%
|
||||
% See also M2HTML
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
error(nargchk(3,4,nargin));
|
||||
if nargin == 3,
|
||||
options = struct('verbose',1, 'globalHypertextLinks',0, 'todo',0);
|
||||
end
|
||||
|
||||
%- Delimiters used in strtok: some of them may be useless (% " .), removed '.'
|
||||
strtok_delim = sprintf(' \t\n\r(){}[]<>+-*~!|\\@&/,:;="''%%');
|
||||
|
||||
%- Open for reading the M-file
|
||||
if options.verbose
|
||||
fprintf('Processing file %s...\n',mfile);
|
||||
end
|
||||
fid = openfile(mfile,'r');
|
||||
it = 0; % line number
|
||||
|
||||
%- Initialize Output
|
||||
s = struct('synopsis', '', ...
|
||||
'h1line', '', ...
|
||||
'subroutine', {{}}, ...
|
||||
'hrefs', sparse(1,length(names)), ...
|
||||
'todo', struct('line',[],'comment',{{}}), ...
|
||||
'ismex', zeros(size(mexexts)));
|
||||
|
||||
%- Initialize flag for synopsis cont ('...')
|
||||
flagsynopcont = 0;
|
||||
%- Look for synopsis and H1 line
|
||||
% Help is the first set of contiguous comment lines in an m-file
|
||||
% The H1 line is a short one-line description into the first help line
|
||||
while 1
|
||||
tline = fgetl(fid);
|
||||
if ~ischar(tline), break, end
|
||||
it = it + 1;
|
||||
tline = deblank(fliplr(deblank(fliplr(tline))));
|
||||
%- Synopsis line
|
||||
if ~isempty(strmatch('function',tline))
|
||||
s.synopsis = tline;
|
||||
if ~isempty(strmatch('...',fliplr(tline)))
|
||||
flagsynopcont = 1;
|
||||
s.synopsis = deblank(s.synopsis(1:end-3));
|
||||
end
|
||||
%- H1 Line
|
||||
elseif ~isempty(strmatch('%',tline))
|
||||
% allow for the help lines to be before the synopsis
|
||||
if isempty(s.h1line)
|
||||
s.h1line = fliplr(deblank(tline(end:-1:2)));
|
||||
end
|
||||
if ~isempty(s.synopsis), break, end
|
||||
%- Go through empty lines
|
||||
elseif isempty(tline)
|
||||
|
||||
%- Code found. Stop.
|
||||
else
|
||||
if flagsynopcont
|
||||
if isempty(strmatch('...',fliplr(tline)))
|
||||
s.synopsis = [s.synopsis tline];
|
||||
flagsynopcont = 0;
|
||||
else
|
||||
s.synopsis = [s.synopsis deblank(tline(1:end-3))];
|
||||
end
|
||||
else
|
||||
break;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Global Hypertext Links option
|
||||
% If false, hypertext links are done only among functions in the same
|
||||
% directory.
|
||||
if options.globalHypertextLinks
|
||||
hrefnames = names;
|
||||
else
|
||||
indhref = find(strcmp(fileparts(mfile),mdirs));
|
||||
hrefnames = {names{indhref}};
|
||||
end
|
||||
|
||||
%- Compute cross-references and extract subroutines
|
||||
% hrefs(i) is 1 if mfile calls mfiles{i} and 0 otherwise
|
||||
while ischar(tline)
|
||||
% Remove blanks at both ends
|
||||
tline = deblank(fliplr(deblank(fliplr(tline))));
|
||||
|
||||
% Split code into meaningful chunks
|
||||
splitc = splitcode(tline);
|
||||
for j=1:length(splitc)
|
||||
if isempty(splitc{j}) | ...
|
||||
splitc{j}(1) == '''' | ...
|
||||
~isempty(strmatch('...',splitc{j}))
|
||||
% Forget about empty lines, char strings or conts
|
||||
elseif splitc{j}(1) == '%'
|
||||
% Cross-references are not taken into account in comments
|
||||
% Just look for potential TODO line
|
||||
if options.todo
|
||||
if ~isempty(strmatch('% TODO %',splitc{j}))
|
||||
s.todo.line = [s.todo.line it];
|
||||
s.todo.comment{end+1} = splitc{j}(9:end);
|
||||
end
|
||||
end
|
||||
else
|
||||
% detect if this line is a declaration of a subroutine
|
||||
if ~isempty(strmatch('function',splitc{j}))
|
||||
s.subroutine{end+1} = splitc{j};
|
||||
else
|
||||
% get list of variables and functions
|
||||
symbol = {};
|
||||
while 1
|
||||
[t,splitc{j}] = strtok(splitc{j},strtok_delim);
|
||||
if isempty(t), break, end;
|
||||
symbol{end+1} = t;
|
||||
end
|
||||
if options.globalHypertextLinks
|
||||
s.hrefs = s.hrefs + ismember(hrefnames,symbol);
|
||||
else
|
||||
s.hrefs(indhref) = s.hrefs(1,indhref) + ...
|
||||
ismember(hrefnames,symbol);
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
tline = fgetl(fid);
|
||||
it = it + 1;
|
||||
end
|
||||
|
||||
fclose(fid);
|
||||
|
||||
%- Look for Mex files
|
||||
|
||||
[pathstr,name] = fileparts(mfile);
|
||||
samename = dir(fullfile(pathstr,[name '.*']));
|
||||
samename = {samename.name};
|
||||
ext=[];
|
||||
for i=1:length(samename)
|
||||
[dummy, dummy, ext1] = fileparts(samename{i});
|
||||
ext{i}=ext1;
|
||||
end
|
||||
if ~isempty(ext),
|
||||
s.ismex = ismember(mexexts,ext);
|
||||
end;
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
function fid = openfile(filename,permission)
|
||||
%Open a file in read/write mode, catching errors
|
||||
% FID = OPENFILE(FILENAME,PERMISSION) opens file FILENAME
|
||||
% in PERMISSION mode ('r' or 'w') and return a file identifier FID.
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
[fid, errmsg] = fopen(filename,permission);
|
||||
if ~isempty(errmsg)
|
||||
switch permission
|
||||
case 'r'
|
||||
error(sprintf('Cannot open %s in read mode.',filename));
|
||||
case 'w'
|
||||
error(sprintf('Cannot open %s in write mode.',filename));
|
||||
otherwise
|
||||
error(errmsg);
|
||||
end
|
||||
end
|
|
@ -1,53 +0,0 @@
|
|||
function [s, freq] = searchindex(mfile, szmin)
|
||||
%Compute keywords statistics of an M-file
|
||||
% S = SEARCHINDEX(MFILE) returns a cell array of char S containing
|
||||
% all the keywords (variables, function names, words in comments or
|
||||
% char arrays) found in M-file MFILE, of more than 2 characters.
|
||||
% S = SEARCHINDEX(MFILE, SZMIN) allows to specify the minimum size
|
||||
% SZMIN of the keywords.
|
||||
% [S, FREQ] = SEARCHINDEX(...) also returns the occurency frequence
|
||||
% of each keyword in the M-file.
|
||||
%
|
||||
% See also M2HTML
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
error(nargchk(1,2,nargin));
|
||||
if nargin == 1, szmin = 2; end
|
||||
|
||||
%- Delimiters used in strtok
|
||||
strtok_delim = sprintf(' \t\n\r(){}[]<>+-*~#!|\\@&/.,:;="''%%');
|
||||
|
||||
%- Open for reading the M-file
|
||||
fid = openfile(mfile,'r');
|
||||
|
||||
%- Initialize keywords list
|
||||
s = {};
|
||||
|
||||
%- Loop over lines
|
||||
while 1
|
||||
tline = fgetl(fid);
|
||||
if ~ischar(tline), break, end
|
||||
|
||||
%- Extract keywords in each line
|
||||
while 1
|
||||
[w, tline] = strtok(tline,strtok_delim);
|
||||
if isempty(w), break, end;
|
||||
%- Check the length of the keyword
|
||||
if length(w) > szmin
|
||||
s{end+1} = w;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Close the M-file
|
||||
fclose(fid);
|
||||
|
||||
%- Remove repeted keywords
|
||||
[s, i, j] = unique(s);
|
||||
|
||||
%- Compute occurency frenquency if required
|
||||
if nargout == 2,
|
||||
freq = histc(j,1:length(i));
|
||||
end
|
|
@ -1,87 +0,0 @@
|
|||
function splitc = splitcode(code)
|
||||
%Split a line of Matlab code in string, comment and other
|
||||
% SPLITC = SPLITCODE(CODE) splits line of Matlab code CODE into a cell
|
||||
% array SPLITC where each element is either a character array ('...'),
|
||||
% a comment (%...), a continuation (...) or something else.
|
||||
% Note that CODE = [SPLITC{:}]
|
||||
%
|
||||
% See also M2HTML, HIGHLIGHT
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
%- Label quotes in {'transpose', 'beginstring', 'midstring', 'endstring'}
|
||||
iquote = findstr(code,'''');
|
||||
quotetransp = [double('_''.)}]') ...
|
||||
double('A'):double('Z') ...
|
||||
double('0'):double('9') ...
|
||||
double('a'):double('z')];
|
||||
flagstring = 0;
|
||||
flagdoublequote = 0;
|
||||
jquote = [];
|
||||
for i=1:length(iquote)
|
||||
if ~flagstring
|
||||
if iquote(i) > 1 & any(quotetransp == double(code(iquote(i)-1)))
|
||||
% => 'transpose';
|
||||
else
|
||||
% => 'beginstring';
|
||||
jquote(size(jquote,1)+1,:) = [iquote(i) length(code)];
|
||||
flagstring = 1;
|
||||
end
|
||||
else % if flagstring
|
||||
if flagdoublequote | ...
|
||||
(iquote(i) < length(code) & strcmp(code(iquote(i)+1),''''))
|
||||
% => 'midstring';
|
||||
flagdoublequote = ~flagdoublequote;
|
||||
else
|
||||
% => 'endstring';
|
||||
jquote(size(jquote,1),2) = iquote(i);
|
||||
flagstring = 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Find if a portion of code is a comment
|
||||
ipercent = findstr(code,'%');
|
||||
jpercent = [];
|
||||
for i=1:length(ipercent)
|
||||
if isempty(jquote) | ...
|
||||
~any((ipercent(i) > jquote(:,1)) & (ipercent(i) < jquote(:,2)))
|
||||
jpercent = [ipercent(i) length(code)];
|
||||
break;
|
||||
end
|
||||
end
|
||||
|
||||
%- Find continuation punctuation '...'
|
||||
icont = findstr(code,'...');
|
||||
for i=1:length(icont)
|
||||
if (isempty(jquote) | ...
|
||||
~any((icont(i) > jquote(:,1)) & (icont(i) < jquote(:,2)))) & ...
|
||||
(isempty(jpercent) | ...
|
||||
icont(i) < jpercent(1))
|
||||
jpercent = [icont(i) length(code)];
|
||||
break;
|
||||
end
|
||||
end
|
||||
|
||||
%- Remove strings inside comments
|
||||
if ~isempty(jpercent) & ~isempty(jquote)
|
||||
jquote(find(jquote(:,1) > jpercent(1)),:) = [];
|
||||
end
|
||||
|
||||
%- Split code in a cell array of strings
|
||||
icode = [jquote ; jpercent];
|
||||
splitc = {};
|
||||
if isempty(icode)
|
||||
splitc{1} = code;
|
||||
elseif icode(1,1) > 1
|
||||
splitc{1} = code(1:icode(1,1)-1);
|
||||
end
|
||||
for i=1:size(icode,1)
|
||||
splitc{end+1} = code(icode(i,1):icode(i,2));
|
||||
if i < size(icode,1) & icode(i+1,1) > icode(i,2) + 1
|
||||
splitc{end+1} = code((icode(i,2)+1):(icode(i+1,1)-1));
|
||||
elseif i == size(icode,1) & icode(i,2) < length(code)
|
||||
splitc{end+1} = code(icode(i,2)+1:end);
|
||||
end
|
||||
end
|
|
@ -1,52 +0,0 @@
|
|||
function [token, remainder, quotient] = strtok(string, delimiters)
|
||||
%Modified version of STRTOK to also return the quotient
|
||||
% string = [quotient token remainder]
|
||||
%STRTOK Find token in string.
|
||||
% STRTOK(S) returns the first token in the string S delimited
|
||||
% by "white space". Any leading white space characters are ignored.
|
||||
%
|
||||
% STRTOK(S,D) returns the first token delimited by one of the
|
||||
% characters in D. Any leading delimiter characters are ignored.
|
||||
%
|
||||
% [T,R] = STRTOK(...) also returns the remainder of the original
|
||||
% string.
|
||||
% If the token is not found in S then R is an empty string and T
|
||||
% is same as S.
|
||||
%
|
||||
% Copyright 1984-2002 The MathWorks, Inc.
|
||||
% $Revision: 1.1.2.1 $ $Date: 2004/03/31 14:52:39 $
|
||||
|
||||
token = []; remainder = []; quotient = string;
|
||||
|
||||
len = length(string);
|
||||
if len == 0
|
||||
return
|
||||
end
|
||||
|
||||
if (nargin == 1)
|
||||
delimiters = [9:13 32]; % White space characters
|
||||
end
|
||||
|
||||
i = 1;
|
||||
while (any(string(i) == delimiters))
|
||||
i = i + 1;
|
||||
if (i > len), return, end
|
||||
end
|
||||
start = i;
|
||||
while (~any(string(i) == delimiters))
|
||||
i = i + 1;
|
||||
if (i > len), break, end
|
||||
end
|
||||
finish = i - 1;
|
||||
|
||||
token = string(start:finish);
|
||||
|
||||
if (nargout >= 2)
|
||||
remainder = string(finish + 1:length(string));
|
||||
end
|
||||
|
||||
if (nargout == 3 & start > 1)
|
||||
quotient = string(1:start-1);
|
||||
else
|
||||
quotient = [];
|
||||
end
|
|
@ -1,53 +0,0 @@
|
|||
function [s, freq] = searchindex(mfile, szmin)
|
||||
%Compute keywords statistics of an M-file
|
||||
% S = SEARCHINDEX(MFILE) returns a cell array of char S containing
|
||||
% all the keywords (variables, function names, words in comments or
|
||||
% char arrays) found in M-file MFILE, of more than 2 characters.
|
||||
% S = SEARCHINDEX(MFILE, SZMIN) allows to specify the minimum size
|
||||
% SZMIN of the keywords.
|
||||
% [S, FREQ] = SEARCHINDEX(...) also returns the occurency frequence
|
||||
% of each keyword in the M-file.
|
||||
%
|
||||
% See also M2HTML
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
error(nargchk(1,2,nargin));
|
||||
if nargin == 1, szmin = 2; end
|
||||
|
||||
%- Delimiters used in strtok
|
||||
strtok_delim = sprintf(' \t\n\r(){}[]<>+-*~#!|\\@&/.,:;="''%%');
|
||||
|
||||
%- Open for reading the M-file
|
||||
fid = openfile(mfile,'r');
|
||||
|
||||
%- Initialize keywords list
|
||||
s = {};
|
||||
|
||||
%- Loop over lines
|
||||
while 1
|
||||
tline = fgetl(fid);
|
||||
if ~ischar(tline), break, end
|
||||
|
||||
%- Extract keywords in each line
|
||||
while 1
|
||||
[w, tline] = strtok(tline,strtok_delim);
|
||||
if isempty(w), break, end;
|
||||
%- Check the length of the keyword
|
||||
if length(w) > szmin
|
||||
s{end+1} = w;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Close the M-file
|
||||
fclose(fid);
|
||||
|
||||
%- Remove repeted keywords
|
||||
[s, i, j] = unique(s);
|
||||
|
||||
%- Compute occurency frenquency if required
|
||||
if nargout == 2,
|
||||
freq = histc(j,1:length(i));
|
||||
end
|
|
@ -1,87 +0,0 @@
|
|||
function splitc = splitcode(code)
|
||||
%Split a line of Matlab code in string, comment and other
|
||||
% SPLITC = SPLITCODE(CODE) splits line of Matlab code CODE into a cell
|
||||
% array SPLITC where each element is either a character array ('...'),
|
||||
% a comment (%...), a continuation (...) or something else.
|
||||
% Note that CODE = [SPLITC{:}]
|
||||
%
|
||||
% See also M2HTML, HIGHLIGHT
|
||||
|
||||
% Copyright (C) 2003 Guillaume Flandin <Guillaume@artefact.tk>
|
||||
% $Revision: 1.1.2.1 $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
%- Label quotes in {'transpose', 'beginstring', 'midstring', 'endstring'}
|
||||
iquote = findstr(code,'''');
|
||||
quotetransp = [double('_''.)}]') ...
|
||||
double('A'):double('Z') ...
|
||||
double('0'):double('9') ...
|
||||
double('a'):double('z')];
|
||||
flagstring = 0;
|
||||
flagdoublequote = 0;
|
||||
jquote = [];
|
||||
for i=1:length(iquote)
|
||||
if ~flagstring
|
||||
if iquote(i) > 1 & any(quotetransp == double(code(iquote(i)-1)))
|
||||
% => 'transpose';
|
||||
else
|
||||
% => 'beginstring';
|
||||
jquote(size(jquote,1)+1,:) = [iquote(i) length(code)];
|
||||
flagstring = 1;
|
||||
end
|
||||
else % if flagstring
|
||||
if flagdoublequote | ...
|
||||
(iquote(i) < length(code) & strcmp(code(iquote(i)+1),''''))
|
||||
% => 'midstring';
|
||||
flagdoublequote = ~flagdoublequote;
|
||||
else
|
||||
% => 'endstring';
|
||||
jquote(size(jquote,1),2) = iquote(i);
|
||||
flagstring = 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
%- Find if a portion of code is a comment
|
||||
ipercent = findstr(code,'%');
|
||||
jpercent = [];
|
||||
for i=1:length(ipercent)
|
||||
if isempty(jquote) | ...
|
||||
~any((ipercent(i) > jquote(:,1)) & (ipercent(i) < jquote(:,2)))
|
||||
jpercent = [ipercent(i) length(code)];
|
||||
break;
|
||||
end
|
||||
end
|
||||
|
||||
%- Find continuation punctuation '...'
|
||||
icont = findstr(code,'...');
|
||||
for i=1:length(icont)
|
||||
if (isempty(jquote) | ...
|
||||
~any((icont(i) > jquote(:,1)) & (icont(i) < jquote(:,2)))) & ...
|
||||
(isempty(jpercent) | ...
|
||||
icont(i) < jpercent(1))
|
||||
jpercent = [icont(i) length(code)];
|
||||
break;
|
||||
end
|
||||
end
|
||||
|
||||
%- Remove strings inside comments
|
||||
if ~isempty(jpercent) & ~isempty(jquote)
|
||||
jquote(find(jquote(:,1) > jpercent(1)),:) = [];
|
||||
end
|
||||
|
||||
%- Split code in a cell array of strings
|
||||
icode = [jquote ; jpercent];
|
||||
splitc = {};
|
||||
if isempty(icode)
|
||||
splitc{1} = code;
|
||||
elseif icode(1,1) > 1
|
||||
splitc{1} = code(1:icode(1,1)-1);
|
||||
end
|
||||
for i=1:size(icode,1)
|
||||
splitc{end+1} = code(icode(i,1):icode(i,2));
|
||||
if i < size(icode,1) & icode(i+1,1) > icode(i,2) + 1
|
||||
splitc{end+1} = code((icode(i,2)+1):(icode(i+1,1)-1));
|
||||
elseif i == size(icode,1) & icode(i,2) < length(code)
|
||||
splitc{end+1} = code(icode(i,2)+1:end);
|
||||
end
|
||||
end
|
|
@ -1,52 +0,0 @@
|
|||
function [token, remainder, quotient] = strtok(string, delimiters)
|
||||
%Modified version of STRTOK to also return the quotient
|
||||
% string = [quotient token remainder]
|
||||
%STRTOK Find token in string.
|
||||
% STRTOK(S) returns the first token in the string S delimited
|
||||
% by "white space". Any leading white space characters are ignored.
|
||||
%
|
||||
% STRTOK(S,D) returns the first token delimited by one of the
|
||||
% characters in D. Any leading delimiter characters are ignored.
|
||||
%
|
||||
% [T,R] = STRTOK(...) also returns the remainder of the original
|
||||
% string.
|
||||
% If the token is not found in S then R is an empty string and T
|
||||
% is same as S.
|
||||
%
|
||||
% Copyright 1984-2002 The MathWorks, Inc.
|
||||
% $Revision: 1.1.2.1 $ $Date: 2004/03/31 14:46:22 $
|
||||
|
||||
token = []; remainder = []; quotient = string;
|
||||
|
||||
len = length(string);
|
||||
if len == 0
|
||||
return
|
||||
end
|
||||
|
||||
if (nargin == 1)
|
||||
delimiters = [9:13 32]; % White space characters
|
||||
end
|
||||
|
||||
i = 1;
|
||||
while (any(string(i) == delimiters))
|
||||
i = i + 1;
|
||||
if (i > len), return, end
|
||||
end
|
||||
start = i;
|
||||
while (~any(string(i) == delimiters))
|
||||
i = i + 1;
|
||||
if (i > len), break, end
|
||||
end
|
||||
finish = i - 1;
|
||||
|
||||
token = string(start:finish);
|
||||
|
||||
if (nargout >= 2)
|
||||
remainder = string(finish + 1:length(string));
|
||||
end
|
||||
|
||||
if (nargout == 3 & start > 1)
|
||||
quotient = string(1:start-1);
|
||||
else
|
||||
quotient = [];
|
||||
end
|
|
@ -1,2 +0,0 @@
|
|||
D/blue////
|
||||
D/frame////
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/templates
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
|
@ -1,24 +0,0 @@
|
|||
/alpha.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/c++.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/c.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/demoicon.gif/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/down.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/fortran.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/graph.tpl/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/hp.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/left.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/linux.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/m2html.css/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/master.tpl/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/matlabicon.gif/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/mdir.tpl/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/mex.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/mfile.tpl/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/right.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/sgi.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/simulinkicon.gif/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/solaris.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/todo.tpl/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/up.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
/windows.png/1.1.2.1/Wed Mar 31 14:48:38 2004/-kb/Tversion_4
|
||||
D
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/templates/blue
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
Before Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 265 B |
|
@ -1,28 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Dependency Graph for {MDIR}</title>
|
||||
<meta name="keywords" content="dependency, graph, dependence, {MDIR}">
|
||||
<meta name="description" content="Dependency graph for {MDIR}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<table width="100%"><tr><td align="left"><a href="{MASTERPATH}{INDEX}"><img alt="<" border="0" src="{MASTERPATH}left.png"> Master index</a></td>
|
||||
<td align="right"><a href="{INDEX}">Index for {MDIR} <img alt=">" border="0" src="{MASTERPATH}right.png"></a></td></tr></table>
|
||||
<h1>Dependency Graph for {MDIR}</h1>
|
||||
|
||||
<center>
|
||||
<img src="{GRAPH_IMG}" usemap="#mainmap" alt="Dependency Graph for {MDIR}" border="2" style="color:#000;">
|
||||
<map name="mainmap">
|
||||
{GRAPH_MAP}
|
||||
</map>
|
||||
</center>
|
||||
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 272 B |
|
@ -1,75 +0,0 @@
|
|||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
font-family: arial,sans-serif;
|
||||
margin: 0;
|
||||
padding: 1ex;
|
||||
}
|
||||
|
||||
div.fragment {
|
||||
width: 98%;
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #f5f5f5;
|
||||
padding-left: 4px;
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
div.box {
|
||||
width: 98%;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #CCCCCC;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.comment {
|
||||
color: #228B22;
|
||||
}
|
||||
.string {
|
||||
color: #B20000;
|
||||
}
|
||||
.keyword {
|
||||
color: #0000FF;
|
||||
}
|
||||
|
||||
.keywordtype { color: #604020; }
|
||||
.keywordflow { color: #e08000; }
|
||||
.preprocessor { color: #806020; }
|
||||
.stringliteral { color: #002080; }
|
||||
.charliteral { color: #008080; }
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: #006699;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
a.code {
|
||||
font-weight: normal;
|
||||
color: #A020F0;
|
||||
}
|
||||
|
||||
a.code:hover {
|
||||
background-color: #FF0000;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background: transparent;
|
||||
color: #006699;
|
||||
font-size: x-large;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
background: transparent;
|
||||
color: #006699;
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
address {
|
||||
font-size:small;
|
||||
}
|
|
@ -1,34 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Matlab Index</title>
|
||||
<meta name="keywords" content="{DIRS}">
|
||||
<meta name="description" content="{DIRS}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<h1>Matlab Index</h1>
|
||||
<h2>Matlab Directories</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN rowdir -->
|
||||
<li><a href="{L_DIR}">{DIR}</a></li>
|
||||
<!-- END rowdir -->
|
||||
</ul>
|
||||
<h2>Matlab Files found in these Directories</h2>
|
||||
<table width="100%">
|
||||
<!-- BEGIN idrow -->
|
||||
<tr>
|
||||
<!-- BEGIN idcolumn -->
|
||||
<td><a href="{L_IDNAME}" title="{T_IDNAME}">{IDNAME}</a></td>
|
||||
<!-- END idcolumn -->
|
||||
</tr>
|
||||
<!-- END idrow -->
|
||||
</table>
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 574 B |
|
@ -1,60 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Index for Directory {MDIR}</title>
|
||||
<meta name="keywords" content="{MDIR}">
|
||||
<meta name="description" content="Index for Directory {MDIR}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<table width="100%"><tr><td align="left"><a href="{MASTERPATH}{INDEX}"><img alt="<" border="0" src="{MASTERPATH}left.png"> Master index</a></td>
|
||||
<td align="right"><a href="{INDEX}">Index for {MDIR} <img alt=">" border="0" src="{MASTERPATH}right.png"></a></td></tr></table>
|
||||
|
||||
<h1>Index for {MDIR}</h1>
|
||||
|
||||
<h2>Matlab files in this directory:</h2>
|
||||
<table>
|
||||
<!-- BEGIN row-m -->
|
||||
<tr><td><img src="{MASTERPATH}matlabicon.gif" alt="" border=""> <a href="{L_NAME}">{NAME}</a></td><td>{H1LINE} <!-- BEGIN mexfile --> <img src="{MASTERPATH}mex.png" alt="MEX" border="0"> <!-- END mexfile --> </td></tr>
|
||||
<!-- END row-m -->
|
||||
</table>
|
||||
|
||||
<!-- BEGIN othermatlab -->
|
||||
<h2>Other Matlab-specific files in this directory:</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN row-other -->
|
||||
<li>{OTHERFILE}</li>
|
||||
<!-- END row-other -->
|
||||
</ul>
|
||||
<!-- END othermatlab -->
|
||||
|
||||
<!-- BEGIN subfolder -->
|
||||
<h2>Subsequent directories:</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN subdir -->
|
||||
<li>{SUBDIRECTORY}</li>
|
||||
<!-- END subdir -->
|
||||
</ul>
|
||||
<!-- END subfolder -->
|
||||
|
||||
<!-- BEGIN graph -->
|
||||
<h2>Dependency Graph</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}simulinkicon.gif)">
|
||||
<li>View the <a href="{LGRAPH}">Graph</a>.</li>
|
||||
</ul>
|
||||
<!-- END graph -->
|
||||
|
||||
<!-- BEGIN todolist -->
|
||||
<h2>TODO List</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}demoicon.gif)">
|
||||
<li>View the <a href="{LTODOLIST}">TODO list</a>.</li>
|
||||
</ul>
|
||||
<!-- END todolist -->
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 242 B |
|
@ -1,65 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Description of {NAME}</title>
|
||||
<meta name="keywords" content="{NAME}">
|
||||
<meta name="description" content="{H1LINE}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<div><a href="{MASTERPATH}{INDEX}">Home</a> > <!-- BEGIN pathline --> <a href="{LPATHDIR}">{PATHDIR}</a> > <!-- END pathline --> {NAME}.m</div>
|
||||
|
||||
<!--<table width="100%"><tr><td align="left"><a href="{MASTERPATH}{INDEX}"><img alt="<" border="0" src="{MASTERPATH}left.png"> Master index</a></td>
|
||||
<td align="right"><a href="{INDEX}">Index for {MDIR} <img alt=">" border="0" src="{MASTERPATH}right.png"></a></td></tr></table>-->
|
||||
|
||||
<h1>{NAME}
|
||||
<!-- BEGIN mexfile --> <img src="{MASTERPATH}{MEXTYPE}.png" alt="{PLATFORMS}" border="0" title="{PLATFORMS}"> <!-- END mexfile -->
|
||||
</h1>
|
||||
|
||||
<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="box"><strong>{H1LINE}</strong></div>
|
||||
|
||||
<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="box"><strong>{SYNOPSIS} <!-- BEGIN script --> This is a script file. <!-- END script --> </strong></div>
|
||||
|
||||
<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="fragment"><pre class="comment">{DESCRIPTION}</pre></div>
|
||||
|
||||
<!-- crossreference -->
|
||||
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
This function calls:
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN crossrefcall -->
|
||||
<li><a href="{L_NAME_CALL}" class="code" title="{SYNOP_CALL}">{NAME_CALL}</a> {H1LINE_CALL}</li>
|
||||
<!-- END crossrefcall -->
|
||||
</ul>
|
||||
This function is called by:
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN crossrefcalled -->
|
||||
<li><a href="{L_NAME_CALLED}" class="code" title="{SYNOP_CALLED}">{NAME_CALLED}</a> {H1LINE_CALLED}</li>
|
||||
<!-- END crossrefcalled -->
|
||||
</ul>
|
||||
<!-- crossreference -->
|
||||
|
||||
<!-- BEGIN subfunction -->
|
||||
<h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN onesubfunction -->
|
||||
<li><a href="{L_SUB}" class="code">{SUB}</a></li>
|
||||
<!-- END onesubfunction -->
|
||||
</ul>
|
||||
<!-- END subfunction -->
|
||||
|
||||
<!-- BEGIN source -->
|
||||
<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="fragment"><pre>{SOURCECODE}</pre></div>
|
||||
<!-- END source -->
|
||||
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 977 B |
Before Width: | Height: | Size: 286 B |
|
@ -1,28 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>To Do List for {MDIR}</title>
|
||||
<meta name="keywords" content="to, do, todo, to-do, list, {MDIR}">
|
||||
<meta name="description" content="To Do List for {MDIR}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<table width="100%"><tr><td align="left"><a href="{MASTERPATH}{INDEX}"><img alt="<" border="0" src="{MASTERPATH}left.png"> Master index</a></td>
|
||||
<td align="right"><a href="{INDEX}">Index for {MDIR} <img alt=">" border="0" src="{MASTERPATH}right.png"></a></td></tr></table>
|
||||
<h1>To Do List for {MDIR}</h1>
|
||||
<!-- BEGIN filelist -->
|
||||
<h2>{MFILE}:</h2>
|
||||
<ul>
|
||||
<!-- BEGIN row -->
|
||||
<li><a href="{L_NBLINE}">line {NBLINE}: </a> {COMMENT}</li>
|
||||
<!-- END row -->
|
||||
</ul>
|
||||
<!-- END filelist -->
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 286 B |
|
@ -1,25 +0,0 @@
|
|||
/alpha.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/c++.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/c.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/demoicon.gif/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/down.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/fortran.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/graph.tpl/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/hp.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/index.html/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/left.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/linux.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/m2html.css/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/master.tpl/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/matlabicon.gif/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/mdir.tpl/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/mex.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/mfile.tpl/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/right.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/sgi.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/simulinkicon.gif/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/solaris.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/todo.tpl/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/up.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
/windows.png/1.1.2.1/Wed Mar 31 14:52:20 2004/-kb/Tversion_4
|
||||
D
|
|
@ -1 +0,0 @@
|
|||
dynare_test/matlab/m2html/templates/frame
|
|
@ -1 +0,0 @@
|
|||
:ext:pythie.cepremap.cnrs.fr/var/lib/cvs
|
|
@ -1 +0,0 @@
|
|||
Tversion_4
|
Before Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 265 B |
|
@ -1,26 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Dependency Graph for {MDIR}</title>
|
||||
<meta name="keywords" content="dependency, graph, dependence, {MDIR}">
|
||||
<meta name="description" content="Dependency graph for {MDIR}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<h1>Dependency Graph for {MDIR}</h1>
|
||||
|
||||
<center>
|
||||
<img src="{GRAPH_IMG}" usemap="#mainmap" alt="Dependency Graph for {MDIR}" border="2" style="color:#000;">
|
||||
<map name="mainmap">
|
||||
{GRAPH_MAP}
|
||||
</map>
|
||||
</center>
|
||||
|
||||
<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 255 B |
|
@ -1,22 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Matlab Documentation by M2HTML</title>
|
||||
<meta name="keywords" content="matlab, m2html, documentation">
|
||||
<meta name="description" content="Matlab Documentation by M2HTML">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="m2html.css">
|
||||
</head>
|
||||
<frameset cols="20%, 80%">
|
||||
<frame scrolling="yes" name="menu" src="menu.html"></frame>
|
||||
<frame scrolling="yes" name="function" src="about:blank"></frame>
|
||||
</frameset>
|
||||
<noframe>
|
||||
Sorry, your browser doesn't support frames.
|
||||
Go to <a href="menu.html">menu.html</a> for the documentation of all
|
||||
the Matlab functions.
|
||||
</noframe>
|
||||
</html>
|
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 272 B |
|
@ -1,75 +0,0 @@
|
|||
body {
|
||||
background: white;
|
||||
color: black;
|
||||
font-family: arial,sans-serif;
|
||||
margin: 0;
|
||||
padding: 1ex;
|
||||
}
|
||||
|
||||
div.fragment {
|
||||
width: 98%;
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #f5f5f5;
|
||||
padding-left: 4px;
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
div.box {
|
||||
width: 98%;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #CCCCCC;
|
||||
color: black;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.comment {
|
||||
color: #228B22;
|
||||
}
|
||||
.string {
|
||||
color: #B20000;
|
||||
}
|
||||
.keyword {
|
||||
color: #0000FF;
|
||||
}
|
||||
|
||||
.keywordtype { color: #604020; }
|
||||
.keywordflow { color: #e08000; }
|
||||
.preprocessor { color: #806020; }
|
||||
.stringliteral { color: #002080; }
|
||||
.charliteral { color: #008080; }
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
background-color: #006699;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
a.code {
|
||||
font-weight: normal;
|
||||
color: #A020F0;
|
||||
}
|
||||
|
||||
a.code:hover {
|
||||
background-color: #FF0000;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
h1 {
|
||||
background: transparent;
|
||||
color: #006699;
|
||||
font-size: x-large;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
background: transparent;
|
||||
color: #006699;
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
address {
|
||||
font-size:small;
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Matlab Index</title>
|
||||
<meta name="keywords" content="{DIRS}">
|
||||
<meta name="description" content="{DIRS}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<h1>Matlab Index</h1>
|
||||
<h2>Matlab Directories</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN rowdir -->
|
||||
<li><a href="{L_DIR}" target="menu">{DIR}</a></li>
|
||||
<!-- END rowdir -->
|
||||
</ul>
|
||||
<!-- BEGIN idrow -->
|
||||
<!-- BEGIN idcolumn -->
|
||||
<!-- {L_IDNAME} {T_IDNAME} {IDNAME} -->
|
||||
<!-- END idcolumn -->
|
||||
<!-- END idrow -->
|
||||
<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 574 B |
|
@ -1,60 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Index for Directory {MDIR}</title>
|
||||
<meta name="keywords" content="{MDIR}">
|
||||
<meta name="description" content="Index for Directory {MDIR}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<center><a href="{MASTERPATH}{INDEX}"><img alt="^" border="0" src="{MASTERPATH}up.png"> Master index <img alt="^" border="0" src="{MASTERPATH}up.png"></a></center>
|
||||
|
||||
<h1>Index for {MDIR}</h1>
|
||||
|
||||
<h2>Matlab files in this directory:</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN row-m -->
|
||||
<li><a href="{L_NAME}" target="function" title="{H1LINE}">{NAME} <!-- BEGIN mexfile --> <img src="{MASTERPATH}mex.png" alt="MEX" border="0"> <!-- END mexfile --> </a></li>
|
||||
<!-- END row-m -->
|
||||
</ul>
|
||||
|
||||
<!-- BEGIN othermatlab -->
|
||||
<h2>Other Matlab-specific files in this directory:</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN row-other -->
|
||||
<li>{OTHERFILE}</li>
|
||||
<!-- END row-other -->
|
||||
</ul>
|
||||
<!-- END othermatlab -->
|
||||
|
||||
<!-- BEGIN subfolder -->
|
||||
<h2>Subsequent directories:</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN subdir -->
|
||||
<li>{SUBDIRECTORY}</li>
|
||||
<!-- END subdir -->
|
||||
</ul>
|
||||
<!-- END subfolder -->
|
||||
|
||||
<!-- BEGIN graph -->
|
||||
<h2>Dependency Graph</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}simulinkicon.gif)">
|
||||
<li>View the <a href="{LGRAPH}" target="function">Graph</a>.</li>
|
||||
</ul>
|
||||
<!-- END graph -->
|
||||
|
||||
<!-- BEGIN todolist -->
|
||||
<h2>TODO List</h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}demoicon.gif)">
|
||||
<li>View the <a href="{LTODOLIST}">TODO list</a>.</li>
|
||||
</ul>
|
||||
<!-- END todolist -->
|
||||
|
||||
<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 242 B |
|
@ -1,63 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>Description of {NAME}</title>
|
||||
<meta name="keywords" content="{NAME}">
|
||||
<meta name="description" content="{H1LINE}">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="generator" content="m2html © 2003 Guillaume Flandin">
|
||||
<meta name="robots" content="index, follow">
|
||||
<link type="text/css" rel="stylesheet" href="{MASTERPATH}m2html.css">
|
||||
</head>
|
||||
<body>
|
||||
<a name="_top"></a>
|
||||
<!-- BEGIN pathline -->
|
||||
<!-- {LPATHDIR} {PATHDIR} -->
|
||||
<!-- END pathline -->
|
||||
<h1>{NAME}
|
||||
<!-- BEGIN mexfile --> <img src="{MASTERPATH}{MEXTYPE}.png" alt="{PLATFORMS}" border="0" title="{PLATFORMS}"> <!-- END mexfile -->
|
||||
</h1>
|
||||
|
||||
<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="box"><strong>{H1LINE}</strong></div>
|
||||
|
||||
<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="box"><strong>{SYNOPSIS} <!-- BEGIN script --> This is a script file. <!-- END script --> </strong></div>
|
||||
|
||||
<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="fragment"><pre class="comment">{DESCRIPTION}</pre></div>
|
||||
|
||||
<!-- crossreference -->
|
||||
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
This function calls:
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN crossrefcall -->
|
||||
<li><a href="{L_NAME_CALL}" class="code" title="{SYNOP_CALL}">{NAME_CALL}</a> {H1LINE_CALL}</li>
|
||||
<!-- END crossrefcall -->
|
||||
</ul>
|
||||
This function is called by:
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN crossrefcalled -->
|
||||
<li><a href="{L_NAME_CALLED}" class="code" title="{SYNOP_CALLED}">{NAME_CALLED}</a> {H1LINE_CALLED}</li>
|
||||
<!-- END crossrefcalled -->
|
||||
</ul>
|
||||
<!-- crossreference -->
|
||||
|
||||
<!-- BEGIN subfunction -->
|
||||
<h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<ul style="list-style-image:url({MASTERPATH}matlabicon.gif)">
|
||||
<!-- BEGIN onesubfunction -->
|
||||
<li><a href="{L_SUB}" class="code">{SUB}</a></li>
|
||||
<!-- END onesubfunction -->
|
||||
</ul>
|
||||
<!-- END subfunction -->
|
||||
|
||||
<!-- BEGIN source -->
|
||||
<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="{MASTERPATH}up.png"></a></h2>
|
||||
<div class="fragment"><pre>{SOURCECODE}</pre></div>
|
||||
<!-- END source -->
|
||||
|
||||
<hr><address>Generated on {DATE} by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> © 2003</address>
|
||||
</body>
|
||||
</html>
|
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 263 B |