home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / database / informix / 2464 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  1.3 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!rutgers!igor.rutgers.edu!gauss.rutgers.edu!manmetha
  2. From: manmetha@gauss.rutgers.edu (Rajesh Malhotra)
  3. Newsgroups: comp.databases.informix
  4. Subject: Sharing structs between ESQL and 'C'
  5. Keywords: Duplicate definitions of Structs.
  6. Message-ID: <Nov.18.14.57.51.1992.20682@gauss.rutgers.edu>
  7. Date: 18 Nov 92 19:57:51 GMT
  8. Organization: Rutgers Univ., New Brunswick, N.J.
  9. Lines: 35
  10.  
  11.  
  12. Fellow Informixers,
  13.  
  14.     Is there a way to share structure definitions between 'C' and
  15. the ESQL definitions?
  16. i.e. Say I have an ESQL definition of the type
  17.  
  18.     $typedef struct {
  19.         char var1;
  20.         int  var2
  21.     } SQLstruct;
  22.  
  23. and I also need a 'C' struct
  24.  
  25.     typedef struct {
  26.         char var1;
  27.         int  var2;
  28.     } Cstruct;
  29.  
  30. Must I have two definitions.  Is there a workaround that would help me get
  31. by with a single declaration?
  32.  
  33. Any and all responses would be appreciated.
  34.  
  35. Thanx,
  36.  
  37. Raj.
  38. -- 
  39. ===============================================================================
  40.   __  __     .
  41.  /   __/    /                               Raj Malhotra.
  42. /   ( /_   /                                voice : (908)613 4313. 
  43.         __/                                 email : manmetha@gauss.rutgers.edu
  44.  
  45. ===============================================================================
  46.