Overview
Comment: | Modified to use named (as opposed to numbered) ports. Generates a list of component ports in the .rbg file. As octave handles string vectors properly, the .cmp file format is not really necessary - but I've let it be for the moment. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a524632e5a7a4a3bbfe425bae1e9239e |
User & Date: | gawthrop@users.sourceforge.net on 1997-08-04 12:49:17 |
Other Links: | branch diff | manifest | tags |
Context
1997-08-04
| ||
12:50:39 |
Many bug fixes to the named port version + tied up the logic and supporting comments. check-in: f7ba5ad7f2 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:49:17 |
Modified to use named (as opposed to numbered) ports. Generates a list of component ports in the .rbg file. As octave handles string vectors properly, the .cmp file format is not really necessary - but I've let it be for the moment. check-in: a524632e5a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
1997-08-02
| ||
19:37:53 | Now uses named ports. check-in: f84d84397e user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/awk/rbg_fig2m.awk from [f978d62200] to [ff580b61c9].
︙ | |||
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.20 1997/03/19 12:02:01 peterg ## Now writes an error message if a lable is used twice in the fig file. ## # Revision 1.19 1997/03/19 09:49:39 peterg # Ports now written in cmp file. # # Revision 1.18 1997/03/19 09:42:08 peterg # Now writes out the following additional fig files: # _head.fig The fig header # _bnd.fig The bonds actually used |
︙ | |||
167 168 169 170 171 172 173 | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | - + - - + + + | for (i=15; i<=NF; i++) { str = sprintf("%s %s", str, $i) } # The depth is field 4 depth = $4; |
︙ | |||
200 201 202 203 204 205 206 | 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 | - - + + - - - - + + + + + | # Coordinates in fields 12 & 13 x_coord = $12; y_coord = $13; # Do the ports if (isa_port) { i_port++; |
︙ | |||
469 470 471 472 473 474 475 | 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 | - + | default_args = ""; delimiter = ":"; repetition_delimiter = "*"; repetition_regexp = "\\*"; q = "\047"; terminator = "\\001"; component_regexp = "[^0-9a-zA-Z_:\*-]"; |
︙ | |||
509 510 511 512 513 514 515 | 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 | - - + + | else { process_fig() } } END { #Print out the matlab functions |
︙ | |||
534 535 536 537 538 539 540 | 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 | - + - + | print strokes[i] >> b_file; printf("];\n") >> b_file; printf("rcomponents = [") >> b_file; j = 0; |
︙ | |||
579 580 581 582 583 584 585 | 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 | - - - - + + + + + + + + - - - - - + + + + + + + + + + + + | printf("\targ = %s%s%s;\n", q, arg, q) >> c_file; printf("\trepetitions = %s;\n", reps[name]) >> c_file; print "end" >> c_file } } printf("];\n") >> b_file; |