In article CB8F4D9EA060D31188730008C79143C406F8C101@dlee11.itg.ti.com, "Gloria, Jing" j-gloria@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.