Overview
Comment: | n_ports now appear in the _abg file instead. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
62bdc4e567bda4b366a04aa2fb5680dc |
User & Date: | gawthrop@users.sourceforge.net on 1996-08-05 12:17:37 |
Other Links: | branch diff | manifest | tags |
Context
1996-08-05
| ||
12:22:16 | Initial revision check-in: f15a184147 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:17:37 | n_ports now appear in the _abg file instead. check-in: 62bdc4e567 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:01:28 | The _cmp function now returns the number of ports. check-in: e3e93fced8 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/awk/rbg_fig2m.awk from [fb306dc90a] to [eea5ed3677].
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.4 1996/08/05 10:14:46 peter ## Made ports appear, in order, at top of component lists ## ## Revision 1.3 1996/08/04 20:32:28 peter ## Stopped complaint about missing lbl entry for port components ## ## Revision 1.2 1996/08/04 20:05:25 peter | > > > | 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.5 1996/08/05 12:01:28 peter ## The _cmp function now returns the number of ports. ## ## Revision 1.4 1996/08/05 10:14:46 peter ## Made ports appear, in order, at top of component lists ## ## Revision 1.3 1996/08/04 20:32:28 peter ## Stopped complaint about missing lbl entry for port components ## ## Revision 1.2 1996/08/04 20:05:25 peter |
︙ | ︙ | |||
343 344 345 346 347 348 349 | else { process_fig() } } END { #Print out the matlab functions | | | | | < < | 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | else { process_fig() } } END { #Print out the matlab functions printf("function [rbonds, rstrokes,rcomponents,rports,n_ports] = %s_rbg\n", sys_name) > b_file; printf("%% [rbonds,rstrokes,rcomponents,rports,n_ports] = %s_rbg\n", sys_name) > b_file; printf("%% Generated by MTT\n\n") > b_file; printf("function [comp_type, name, cr, arg] = %s_cmp(i)\n",\ sys_name) > c_file; printf("%% [comp_type, name, cr, arg] = %s_cmp\n", sys_name) > c_file; printf("%% Generated by MTT\n\n") > c_file; printf("rbonds = [\n") >> b_file; for (i = 1; i <= i_bond; i++) print bonds[i] >> b_file; for (i = 1; i <= i_arrow; i++) print arrows[i], "-1 -1" >> b_file; printf("];\n") >> b_file; printf("rstrokes = [\n") >> b_file; for (i = 1; i <= i_stroke; i++) print strokes[i] >> b_file; printf("];\n") >> b_file; printf("rcomponents = [") >> b_file; j = 0; # Do the port components, in order, first for (i = 1; i <= i_port_component; i++) { port_type = "SS"; name = sprintf("[%1.0f]", i); cr = i; arg = ""; |
︙ | ︙ | |||
416 417 418 419 420 421 422 | } } printf("];\n") >> b_file; printf("rports = [\n") >> b_file; for (i = 1; i <= i_port; i++) print ports[i] >> b_file; | | > > > | 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | } } printf("];\n") >> b_file; printf("rports = [\n") >> b_file; for (i = 1; i <= i_port; i++) print ports[i] >> b_file; printf("];\n\n") >> b_file; printf("n_ports = %1.0f;\n", i_port_component) >> b_file; } |