home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4250 < prev    next >
Encoding:
Text File  |  1992-08-16  |  848 b   |  34 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!wupost!gumby!yale!yale.edu!jvnc.net!nuscc!matcsp
  3. From: matcsp@nuscc.nus.sg (Chan Shih-Ping)
  4. Subject: Bug in the WATCOM 9.0 preprocessor?
  5. Message-ID: <1992Aug17.014131.9113@nuscc.nus.sg>
  6. Organization: National University of Singapore
  7. Date: Mon, 17 Aug 1992 01:41:31 GMT
  8. Lines: 24
  9.  
  10. Is this a bug in the WATCOM 9.0 preprocessor?
  11.  
  12. /* Input file test.c */
  13.  
  14.  
  15. #define A    AA
  16. #define g(x, y)    x ## y
  17. #define gg(x)    g(x, A)
  18.  
  19. extern g(B, A)();
  20. extern gg(B) ();
  21.  
  22. /* End of test.c */
  23.  
  24. Output of preprocessing phase:
  25.  
  26. WATCOM C 386 Compile and Link Utility Version 9.0
  27. Copyright by WATCOM Systems Inc. 1988, 1992.  All rights reserved.
  28. WATCOM is a trademark of WATCOM Systems Inc.
  29.        wcc386 test.c  /p
  30.  
  31. extern  BA();
  32. extern  BAA ();  <----- Isn't this wrong? Shouldn't it be BA ();
  33.  
  34.