source:
doc/proposals/modules-gen-hdr/akwd-val-trans/over_a.src.c@
a8079351
| Last change on this file since a8079351 was b28ce93, checked in by , 10 months ago | |
|---|---|
|
|
| File size: 552 bytes | |
| Rev | Line | |
|---|---|---|
| [b28ce93] | 1 | // in full-option-A transitive semantics, includes b's functions |
| 2 | #import auto a | |
| 3 | ||
| 4 | // awkward but necessary here, unnecessary in full-option-A transitive semantics | |
| 5 | // MANUAL step as ERR1: comment out the import | |
| 6 | // (manual becuase can't ifdef an import) | |
| 7 | // scaffold note: leave space after comment token, so `// #`, not `//#` | |
| 8 | #import static b | |
| 9 | ||
| 10 | //# $f | |
| 11 | void over_a( struct a_t * p, int depth ) { | |
| 12 | int printf( const char *, ... ); // scaffold | |
| 13 | printf( "over_a -> a\n" ); | |
| 14 | a( p, depth); | |
| 15 | printf( "over_a -> b\n" ); | |
| 16 | b( p->b, depth); | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.