Re: ProC: symbolic constants in the declare section?

From: Karl Zdero <karlz_at_pst.bt.co.uk>
Date: 13 Jan 1995 08:05:10 GMT
Message-ID: <3f5c7m$sar_at_pheidippides.axion.bt.co.uk>


zhdkd_at_svusenet.ubs.ch wrote:
>
> 29 static char test_arr[ARR_LEN];
> 29 .........................^
> PCC-S-0018: Expected "<unsigned_integer>", but found "ARR_LEN" at line
>
> Is there a way around this? Pro-C Ver 1.5

There is no way around this!
Since Pro-c is a precompiler, and its executed before the C precompiler (C pre-compiler is responsible for setting ARR_LEN), then PRo-C has no knowledge of #defines, macros, ...

This problem was fixed in Pro-C ver2.0, when Pro-C recognizes #define Received on Fri Jan 13 1995 - 09:05:10 CET

Original text of this message