Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Porting Unix Pro C to NT

Porting Unix Pro C to NT

From: Eric Janik <ejanik_at_bi.com>
Date: Tue, 16 Feb 1999 20:52:01 GMT
Message-ID: <7aclpd$d0a$1@nnrp1.dejanews.com>


I'm involved in development effort that requires porting reams of Oracle 8.0.5 Pro C code to Windows NT. Our most significant stumbling block so far has been an anomoly what the Pro C precompiler regards as legal syntax.

Under Unix we declare character string host variables as such:

              #define MAXLEN 32
              ...
              EXEC SQL BEGIN DECLARE SECTION;
              char HostCharString[MAXLEN];
              EXEC SQL END DECLARE SECTION;

The NT version of the preprocessor insists that no #defined symbols appear in the declare section, so we must indicate the array size with a literal value.

              EXEC SQL BEGIN DECLARE SECTION;
              char HostCharString[32];
              EXEC SQL END DECLARE SECTION;

Has anyone dealt with a this sort of problem before, without modifying source code? Seriously, modifying source code is NOT an option. We are considering writing a preprocessor for the precompiler that de-references macros that occur in declare sections. Does such a tool already exist somewhere?

Eric Janik

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Feb 16 1999 - 14:52:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US