| 
            Last change
 on this file since cbedb32f was             b28ce93, checked in by Michael Brooks <mlbrooks@…>, 4 months ago           | 
        
        
          | 
             
Add POC illustrating generating headers from compile units 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            552 bytes
           | 
        
      
      
| Line |   | 
|---|
| 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.