Overview
Comment:Comments may now be prefaced by # as well as %
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: c4e82c31acc0e9b40f8ed09319b923eeb3e29d6d7ea938e7b89476b772c0e718
User & Date: gawthrop@users.sourceforge.net on 1998-08-10 15:51:06
Other Links: branch diff | manifest | tags
Context
1998-08-10
16:05:52
Added VARs and parameters check-in: 09e5f7d000 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
15:51:06
Comments may now be prefaced by # as well as % check-in: c4e82c31ac user: gawthrop@users.sourceforge.net tags: origin/master, trunk
14:42:13
Initial revision check-in: 0115025df2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/trans/awk/rbg_fig2m.awk from [1fa61c80d5] to [39acd0804a].

9
10
11
12
13
14
15



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







+
+
+







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

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.32  1998/07/27 20:30:03  peterg
## *** empty log message ***
##
## Revision 1.31  1998/04/16 13:18:13  peterg
## Now ignores spurious ports (in lbl but not Figure \ref{) but gives
## warning
##
## Revision 1.30  1998/04/12 15:01:17  peterg
## Converted to uniform port notation - always use []
##
202
203
204
205
206
207
208
209

210
211
212
213
214
215
216
205
206
207
208
209
210
211

212
213
214
215
216
217
218
219







-
+







	}
  }

function process_lbl() {
# This puts the components in the lable file at the top of the list
# and saves up the corresponding CR and arguments
# note that there may be more than one component per label
  if ((match($1,"%")==0)&&(NF>0))
  if ((match($1,comment_regexp)==0)&&(NF>0))
    { 
      i_label++;
      name = $1;
      CR   = $2;
      args = $3;
      label[i_label,1] = name; 
      label[i_label,2] = CR;
531
532
533
534
535
536
537

538
539
540
541
542
543
544
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548







+







  head_file = sprintf("%s_head.fig", sys_name);

  warning_f = "WARNING %s \t in fig file but not lbl file  - using\n";
  warning_l = "WARNING %s \t in lbl file but not fig file  - ignoring\n";
  warning_p = "ERROR system ports are not consecutively numbered\n";
  warning_u = "ERROR %s has already appeared in the fig file\n";

  comment_regexp = "%|#"
  data_symbol = "----";
  out_data_symbol = "\t";
  default_cr = "";
  default_args = "";
  delimiter = ":";
  repetition_delimiter = "*";
  repetition_regexp = "\\*";


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