Overview
Comment: | Now writes out the aliased args ... |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
13070a51615c3a3a9a5f8fb985397d66 |
User & Date: | gawthrop@users.sourceforge.net on 2000-10-12 19:27:20 |
Other Links: | branch diff | manifest | tags |
Context
2000-10-12
| ||
19:27:47 | Now writes the aliased args check-in: 8736c8191c user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:27:20 | Now writes out the aliased args ... check-in: 13070a5161 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
19:26:42 | Initial revision check-in: 8416c41d30 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/m/alias_args.m from [a29d76d05e] to [810260547d].
|
| | > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | function args = alias_args(args,alias,delim,message,FileID,sys_name) ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.4 2000/09/14 13:35:43 peterg ## appended '(' and ')' to SEPS ## -- otherwise first argument after '(' doesn't get substituted ## (Fixed by Geraint) ## ## Revision 1.3 1998/08/11 14:09:05 peterg ## Replaced incorrect length(args>0) with !isempty(args) ## ## Revision 1.2 1998/07/27 10:24:20 peterg ## Included , in the the list of seperators (SEPS) ## This makes it substitute for bits of args separated by commas. ## |
︙ | ︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 | for i=1:N arg = deblank(Args(i,:)); arg_ = strrep(arg,",","__"); if struct_contains(alias,arg_) eval(["new_arg = alias.", arg_,";"]); mtt_info(["Replacing ", arg, "\t by ",\ new_arg, message],FileID); arg = new_arg; end SEPS = ",+-*/()"; for j = 1:length(SEPS) if length(findstr(arg,SEPS(j)))>0 | > > | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | for i=1:N arg = deblank(Args(i,:)); arg_ = strrep(arg,",","__"); if struct_contains(alias,arg_) eval(["new_arg = alias.", arg_,";"]); mtt_info(["Replacing ", arg, "\t by ",\ new_arg, message],FileID); mtt_save_alias(arg,sys_name); arg = new_arg; end SEPS = ",+-*/()"; for j = 1:length(SEPS) if length(findstr(arg,SEPS(j)))>0 arg = alias_args(arg,alias,SEPS(j),message,FileID,sys_name); end end; args = sprintf("%s%s%s", args, delim, arg); end args = substr(args,2); % loose leading ; end end; endfunction; |