GPC Keywords/Reserved Words
Martin Liddle
martin at tcs02.demon.co.uk
Sat Dec 1 00:23:38 CET 2001
In article <CB8F4D9EA060D31188730008C79143C406F8C101 at dlee11.itg.ti.com>,
"Gloria, Jing" <j-gloria at ti.com> writes
>Pls advise if there is a way to make GPC accept a field name in a RECORD or
>variable name and that field name or variable name is a reserved or key word
>in GPC. I am porting software from SPARC SunOS (using SUN PASCAL compiler)
>to INTEL Solaris 7 (using GPC). For example :
>
>EXAMPLE B:
>
> Sortmask_rec = PACKED RECORD
> Bin_nbr :Int8;
> Class :Class_typ; <<< line
>226 Class is a GPC reserve word.
> Any :BOOLEAN;
> Display_ch :Displ_char;
> Socket_quality_delta :INT16;
> Test_Sum :INT16;
> Test_List :PACKED ARRAY[1..Maximum_tests] of INT16;
> END;
>
You can certainly work around this by adding a {$define class thing}
directive to the start of the program/unit. We had exactly the same
problem when Class became a reserved word.
--
Martin Liddle, Tynemouth Computer Services, 27 Garforth Close,
Cramlington, Northumberland, England, NE23 6EW.
Phone: 01670-712624. Fax: 01670-717324.
Web site: <http://www.tynecomp.co.uk>.
More information about the Gpc
mailing list