Overview
Comment:Fixed handling of anonymous components
- default cr and args were printed in fields 1 and 2 with 3 empty
- now lists anonymous components in label file for information
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: edf73359ab16ace8b396e502e56823ca457221fbdffc593f33024dd5b99db9f1
User & Date: geraint@users.sourceforge.net on 2002-12-06 22:14:35
Other Links: branch diff | manifest | tags
Context
2002-12-07
18:33:08
Added portlist for internal ports. check-in: 6e6c017e61 user: geraint@users.sourceforge.net tags: origin/master, trunk
2002-12-06
22:14:35
Fixed handling of anonymous components
- default cr and args were printed in fields 1 and 2 with 3 empty
- now lists anonymous components in label file for information
check-in: edf73359ab user: geraint@users.sourceforge.net tags: origin/master, trunk
22:12:28
Removed unique option from sort
- prevents multiple anonymous components from existing
- duplicate named components are caught by rbg_fig2m.awk anyway
check-in: 0da9a94a57 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/cmp2lbl_txt from [37a8cc08d4] to [cfe16ef4bc].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Hacked from (now redundent) abg2lbl_txt

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



## Revision 1.1  2002/12/01 14:54:52  gawthrop
## Replaces defunct abg2lbl_fig2txt
##
##
## Old log from abg2lbl_fig2txt
## Revision 1.28  2002/10/30 00:04:22  gawthrop
## Added AEf and AFe to list







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Hacked from (now redundent) abg2lbl_txt

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  2002/12/06 11:45:57  gawthrop
## Strips comments from _cmp.txt before processing
##
## Revision 1.1  2002/12/01 14:54:52  gawthrop
## Replaces defunct abg2lbl_fig2txt
##
##
## Old log from abg2lbl_fig2txt
## Revision 1.28  2002/10/30 00:04:22  gawthrop
## Added AEf and AFe to list
198
199
200
201
202
203
204
205







206
207
208
209

210
211
212

213
214
215
216
217
218
219
#Write out the outline lbl file
strip_comments <$1_cmp.txt | grep -v  '\[[0-9]*\]' | \
gawk --field-separator ':' '
 BEGIN {
    OldComponent="None";
    default_cr = "lin";
 }
 { 







  Component = $1;
  Name = $2;
  Arg = $3;


##Aliases
  if (Component == "SS") {
    port_alias[++j] = Name;

  }
  else {
    alias[++i] = Name;
    if (length(sensitivity)>0) {
      s_arg = sprintf("%ss",Name);
      alias[++i] = s_arg;
      s_arg = sprintf(";%s",s_arg);







<
>
>
>
>
>
>
>



|
>



>







201
202
203
204
205
206
207

208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
#Write out the outline lbl file
strip_comments <$1_cmp.txt | grep -v  '\[[0-9]*\]' | \
gawk --field-separator ':' '
 BEGIN {
    OldComponent="None";
    default_cr = "lin";
 }

(NF == 1) {
  Component = $1 " (anonymous => default parameters)";
  Name = "# " $1;
  cr[Component] = "\t";
  arg[Component] = "\t";
}
(NF > 1) { 
  Component = $1;
  Name = $2;
  Arg = $3;
}
{
##Aliases
  if (Component == "SS") {
    port_alias[++j] = Name;
    Component_type = Component;
  }
  else {
    alias[++i] = Name;
    if (length(sensitivity)>0) {
      s_arg = sprintf("%ss",Name);
      alias[++i] = s_arg;
      s_arg = sprintf(";%s",s_arg);


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