home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20304 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.3 KB  |  43 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!news.cecer.army.mil!zorro.cecer.army.mil!rob
  3. From: rob@zorro.cecer.army.mil (Rob Knauerhase)
  4. Subject: long long and preproccessing
  5. Message-ID: <C19xsw.1zE@news.cecer.army.mil>
  6. Sender: news@news.cecer.army.mil (Net.Noise owner)
  7. Organization: US Army Corps of Engineers Construction Engineering Research Labs
  8. Date: Fri, 22 Jan 1993 21:17:20 GMT
  9. Lines: 32
  10.  
  11. We have a question about "long long".  The following program (x.c):
  12.  
  13. #define HUGE long
  14. typedef    long        HIST;
  15. main()
  16. {
  17.     HIST HUGE x;
  18. }
  19.  
  20. compiles and runs with cc on a Sparc/SunOS.  It does not on an Intergraph
  21. using their "acc".
  22.  
  23. However, the following program (y.c):
  24.  
  25. main()
  26. {
  27.     long long x;
  28. }
  29.  
  30. fails to compile on both Sun (using cc) and Intergraph.
  31.  
  32. Both compile with gcc on the Sun.
  33.  
  34. Any ideas why x.c works and y.c doesn't?
  35.  
  36. Rob (et al.)
  37. --
  38. Rob Knauerhase [rob@amber.cecer.army.mil]  Office of GRASS Integration
  39. Construction Engineering Research Labs, US Army Corps of Engineers
  40. "See, when the GOVERNMENT spends money, it creates jobs; whereas when the
  41.  money is left in the hands of TAXPAYERS, God only knows what they do with it.
  42.  Bake it into pies, probably.  Anything to avoid creating jobs." -- Dave Barry
  43.