home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / win32 / 850 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!pipex!demon!edscom!kevin
  3. From: kevin@edscom.demon.co.uk (Kevin Broadey)
  4. Subject: MSC-7.00, CC, CL386/CLMIPS and function prototypes
  5. Message-ID: <KEVIN.92Sep7113248@runningbear.edscom.demon.co.uk>
  6. Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
  7. Organization: EDS-Scicon, Milton Keynes, UK
  8. Distribution: comp
  9. Date: Mon, 7 Sep 1992 11:32:48 GMT
  10. Lines: 34
  11.  
  12. The application I'm porting to NT started life in Windows 2 and was
  13. written for version 5 of the Microsoft C compiler.  It might even have
  14. been version 4.  Anyway, in these pre-ANSI days you declared an external
  15. function in your .H file as:-
  16.  
  17.     int foobar (int foo, int bar);
  18.  
  19. and you defined it in your .C file as:-
  20.  
  21.     int foobar (foo, bar)
  22.         int        foo;
  23.         int        bar;
  24.     {
  25.         ...
  26.     }
  27.  
  28. The problem is, this gets thrown out by the CC compiler on my R4000
  29. system.  The same code compiles quite happily for Windows 3.1 using
  30. MSC-7.00.
  31.  
  32. I've read in this newsgroup that CL386 is based on MSC-7.00, so does it
  33. allow this sort of code to go through?
  34.  
  35. Also, according to Chapter 1: "C/C++ Compiler" in the SDK tools
  36. documentation taken from the July CD-ROM, CC will be replaced by CLMIPS.
  37. I assume this is CL386 with an R4000 code generator.  If so, am I right
  38. in thinking that I don't need to edit my 100 or so source files to
  39. change the header style?
  40.  
  41. --
  42. Kevin Broadey <kbroadey@edscom.demon.co.uk>
  43. EDS-Scicon, Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England.
  44. Phone: +44 908 284198 (direct) or +44 908 585858 ext 4198
  45. These opinions are mine: others available on request.
  46.