Overview
Comment:Changed file handling on mtt_info.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 84b3830d147325a18837052fa760393faa14b4015d888585d4f1e60f989a7a45
User & Date: gawthrop@users.sourceforge.net on 1996-12-10 16:04:11
Other Links: branch diff | manifest | tags
Context
1996-12-10
16:52:29
Detect null string using strcmp, not length.
Put filnum argument to mtt_info.
check-in: 18b59159b9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:04:11
Changed file handling on mtt_info. check-in: 84b3830d14 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1996-12-07
21:34:52
Tests for null string with strcmp check-in: 819feffbe2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/m/subs_arg.m from [8665903de4] to [21c08162ae].

13
14
15
16
17
18
19



20
21
22
23
24
25
26
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29







+
+
+









% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% Version control history
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %% $Id$
% %% $Log$
% %% Revision 1.3  1996/12/07  18:19:39  peterg
% %% Replaces null argument by a default and tells user.
% %%
% %% Revision 1.2  1996/12/04 21:47:41  peterg
% %% Skips main loop when arg is null.
% %%
% %% Revision 1.1  1996/12/04 21:46:52  peterg
% %% Initial revision
% %%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48
49
50
51
52
53
54

55

56
57
58


59
60
61
62
63
64
65
51
52
53
54
55
56
57
58
59
60
61


62
63
64
65
66
67
68
69
70







+

+

-
-
+
+







	  args_count = args_count+1;
	  break
	end;
	args_count = args_count+1;
	ch = str2ch(args,args_count);
      end;
      arg_out = args2arg(Args,i);
      
      % Test for empty argument -- replace by default and tell user
      format = 'Argument %1.0f of component %s(%s) of system %s is undefined - \n replacing by %s';
      if strcmp(arg_out,'')
	info = sprintf("Argument %1.0f of component %s(%s) of system %s is undefined - \n...
	    replacing by %s", i, comp_name, comp_type, full_name, default);
	info = sprintf(format, ...
	    i, comp_name, comp_type, full_name, default);
	mtt_info(info,infofile);
	arg_out = default;
      end;
 
      args_out = [args_out, arg_out];
    end;
  end;


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]