home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / oracle / 2605 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.6 KB  |  64 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!mcsun!chsun!osnbe!
  3. From: rheiger@renext.eiger.olivetti.ch (Richard H. E. Eiger)
  4. Subject: Re: Pro*C
  5. Message-ID: <1992Dec20.105229.955@osnbe.Olivetti.ch>
  6. Sender: @osnbe.Olivetti.ch
  7. Nntp-Posting-Host: renext
  8. Reply-To: rheiger@renext.eiger.olivetti.ch
  9. Organization: Olivetti (Schweiz) AG, Branch Office Berne
  10. References: <1992Dec17.220804.12585@tigger.jvnc.net>
  11. Date: Sun, 20 Dec 1992 10:52:29 GMT
  12. Lines: 50
  13.  
  14. In article <1992Dec17.220804.12585@tigger.jvnc.net> fogelinc@nmr1.Cyanamid.COM  
  15. (Carl Fogelin) writes:
  16. > In article 13161@den.mmc.com, richard@crowded-house.den.mmc.com (Richard  
  17. Armstrong) writes:
  18. > >
  19. > >I have plenty of good things to say about Oracle Pro*C. However, let me
  20. > >focus on one area where I find Pro*C completely brain-dead.
  21. > >
  22. > [stuff deleted]
  23. > >
  24. > >Why doesn't the Pro*C precompiler do #define substitutions?
  25. > Because the scope of the Pro*C preprocessor would probably get out of hand.
  26. > Sure, it would be nice if the Pro*C preprocessor would at least recognize 
  27. > #defines which are at the top of the current module, but the c preprocessor
  28. > can be much more complicated.  What about #defines found in an #include file?
  29. > What about #defines which use conditional assignments (i.e., #ifdef)?  These
  30. > are just a couple of complications, but if you think about it, I'm sure you
  31. > can come up with more.
  32. > Yes, I agree that I wish Pro*C did the #define substitutions, but I  
  33. understand
  34. > why they didn't do it.  What I don't understand is why "struct"ures are not
  35. > valid for host variables, but VARCHARs (which are structures) are...  8-(
  36. > -------------------------------------
  37. > Carl Fogelin (fogelinc@cyanamid.com) 
  38.  
  39. The problems described here are a nuisance, I agree. But there are things I  
  40. find much much worse in PRO*C. For instance, you can specify ireclen and  
  41. oreclen. But, PRO*C still has an upper limit. When that is reached your output  
  42. will be erratic without warning!
  43.  
  44. The other real stupidity is that PRO*C is not clever enough to put "#line nnn  
  45. file.pc" statements into the output. It would be so much less of a pain to find  
  46. errors in the .pc source when the C-compiler complains. And also runtime output  
  47. from the assert macro would finally be useful.
  48.  
  49. The solution to this is to preprocess the .pc file before feeding it to pcc.
  50.  
  51.     Just my 2 cents.
  52.     Richard
  53. --
  54.                          
  55.     ___           _____2
  56.    /   )  /  /   /        Richard H. E. Eiger
  57.   /_ _/  /__/   /__       Ing. Informatik HTL
  58.  /\     /  /   /          Unregistered NeXT fan
  59. /  \   /  /   /_____      rheiger@renext.eiger.olivetti.ch (NeXT mail welcome)
  60.