Overview
Comment:Stopped complaint about missing lbl entry for port components
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 60ccb667a95db76a8839034e57d8f83712226faab69e08e8eea5da5a9279c1d7
User & Date: gawthrop@users.sourceforge.net on 1996-08-04 20:32:28
Other Links: branch diff | manifest | tags
Context
1996-08-05
10:14:46
Made ports appear, in order, at top of component lists check-in: 6c1d5ab4b6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1996-08-04
20:32:28
Stopped complaint about missing lbl entry for port components check-in: 60ccb667a9 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
20:05:25
Included port components - eg SS:[1] check-in: 158fedb6ad user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/awk/rbg_fig2m.awk from [3ec50668e6] to [88bb60c2cc].

8
9
10
11
12
13
14



15
16
17
18
19
20
21
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24







+
+
+







# Copyright (c) P.J.Gawthrop, 1996.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1996/08/04 20:05:25  peter
## Included port components - eg SS:[1]
##
## Revision 1.1  1996/08/04 20:01:58  peter
## Initial revision
##
###############################################################


##############################################################
96
97
98
99
100
101
102
103

104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
99
100
101
102
103
104
105

106
107
108
109
110
111
112
113
114
115
116
117
118


119
120
121
122
123
124
125







-
+












-
-







# It is terminated by /001 - so delete this termination
  str = substr(str,1,length(str)-4);

# A component string contain only alphanumeric  _ and :
  isa_plain_component = match(str, component_regexp)==0;

# A port is an integer within []
  isa_port = match(str, port_regexp)>0;
  isa_port = exact_match(str, port_regexp)>0;

# A port component is SS followed by : followed by a port string
  isa_port_component = 0;
  if (match(str, delimiter)) {
    split(str,a,delimiter);
    isa_port_component = (exact_match(a[1], "SS"))&&
      (match(a[2], port_regexp)>0)
      }
    
# A component is a plain or a port component
  isa_component = isa_plain_component||isa_port_component;

print str, isa_component;

# Coordinates in fields 12 & 13
  x_coord = $12;
  y_coord = $13;

  if (isa_component) {
    i_text++;


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