home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,416 of 2,753   
   Hans-Peter Diettrich to All   
   C99 translation phases   
   25 May 17 13:09:58   
   
   From: DrDiettrich1@netscape.net   
      
   The standard specifies translation phase 4 as:   
   "Preprocessing  directives  are  executed,  macro  invocations  are   
   expanded,  and _Pragma unary  operator  expressions  are  executed. ..."   
      
   Does this mean a strict sequence of these actions?   
   At least this example seems to suggest a specific sequence:   
      
   EXAMPLE     In:   
      #define EMPTY   
      EMPTY # include    
   the sequence of preprocessing tokens on the second line is not   
   a preprocessing directive, because it does not begin with a #   
   at the start of translation phase 4, even though it will do so after the   
   macro EMPTY has been replaced.   
      
   DoDi   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca