home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apollo / 3355 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.5 KB  |  43 lines

  1. Newsgroups: comp.sys.apollo
  2. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!giachino
  3. From: giachino@ghost.dsi.unimi.it (luca giachino)
  4. Subject: NCS: problems compiling in ANSI C
  5. Keywords: NCS
  6. Organization: Computer Science Dep. - Milan University
  7. Date: Wed, 26 Aug 1992 10:23:40 GMT
  8. Message-ID: <1992Aug26.102340.23358@ghost.dsi.unimi.it>
  9. Lines: 32
  10.  
  11. Hi,
  12. I cannot figure a way to avoid the following problem.
  13. The NIDL compiler inserts extern function declarations into
  14. the include files it produces; these functions are those
  15. that are described in the interface description source.
  16.  
  17. You normally include these files in the manager sources,
  18. where you actually insert the bodies of the server functions.
  19. You might be in the need of rendering those functions invisible
  20. to the other sources, defining them as static. In this way
  21. the linker doesn't complain when you define different managers
  22. for the same interface.
  23.  
  24. But the ANSI C compiler does complain issuing a warning because
  25. these static functions appear defined with two different prototypes:
  26. in the include file as simple "#extern type function(type arg, ...)", 
  27. and in the manager source as "static type function(type arg, ...)".
  28.  
  29. Is anybody able to tell me a way for avoiding those annoing warnings?
  30.  
  31. Thank you in advance.
  32.  
  33.  
  34. ---------------------------------------
  35. Giachino Luca
  36. Computer Science Department
  37. Universita' Statale di Milano
  38. Milano, ITALY
  39.  
  40. EMAIL:     giachino@ghost.dsi.unimi.it
  41. ---------------------------------------
  42.  
  43.