How to get Pro * C to handle the #warning directives?

When I try to precompile the * .pc file containing the #warning directive, I get the following error:

PCC-S-02014, met the warning symbol, expecting one of the following: (bla bla bla).

Can I somehow convince Pro * C to ignore this thing if she does not know what to do with it? I cannot remove the directive #warningas it is used in the header file, which I cannot change and must include.

+3
source share
7 answers

Pro * C/++ Programmer ( 5 " " ) Pro * C , #error #pragma, , , #warning. , ORA_PROC:

#ifndef  ORA_PROC
#include <irrelevant.h>
#endif

- Pro * C , #warning .

+4

parse=none proc

+1

. Pro * C #if #include. , , Pro * C . -

grep -v -E '^#(warning|pragma|define)' unchangeable.h >unchangeable.pc.h

, Pro * C, , ...

0

Jons Ericsons .

, .

Pro * c include, .

ORA_PROC - .

0

/bin/make -f/css/hwmig/pcprg/proc9i32.mk PROCFLAGS = "sqlcheck = SEMANTICS userid = cssd/india09" PCCsrc= bic I_SYM = include = pc1   proc sqlcheck = SEMANTICS userid = cssd/india09 iname = bic include =. include =/oracle/Ora92/precomp/public include =/oracle/Ora92/rdbms/public include =/oracle/Ora92/rdbms/demo include =/oracle/Ora92/plsql/public include =/oracle/Ora92/network/public

Pro * C/++: 9.2.0.6.0 - 2 14:05:38 2008

(c) 1982, 2002, Oracle Corporation. .

, :/oracle/Ora92/precomp/admin/pcscfg.cfg

135, 2, /usr/include/standards.h: 135, 2 /usr/include/standards.h

warning -qdfp DFP .

0,1 PCC-S-02014, "", , :

, , define, elif, else, endif,  error, if, ifdef, ifndef, include, line, pragma, undef,   , C, " " "" .

30, 7, bic.pc: 30, 7 bic.pc FILE fp; ...... 1 PCC-S-02201, "", :

; ";" "*", .

Error in row 0, column 0 in bic.pc file PCC-F-02102, Fatal error while performing preprocessing C

0
source

Remove two lines from /usr/include/standards.h

warning The -qdfp parameter is required to process DFP code in headers.

still

-1
source

Change /usr/include/standards.h.
Delete a line #warning The -qdfp option is required to process DFP code in headers.Prok does not support #warning, just #else #ifetc.

-2
source

Source: https://habr.com/ru/post/1696433/


All Articles