Oldham, Adam wrote:
OK, maybe I need a little more detail.
I have some C functions called from Pascal that write to a pointer to packed array of chars. Alot of what they write is 0x80 0x3a, etc. When it comes back into pascal, I would like to run the result through an IF statement to check the hex value in the character. With the old compiler we were allowed to do this: IF (character = '/8a') THEN blah;
Well, this would be incompatible to just about every Pascal standard and compiler I know, where strings enclosed in single quoted are always interpreted verbatim. So, while we usually try to implement as many compatibility features to other compilers as possible, this one is not a good candidate.
Besides the suggestions already made, GPC also supports the BP syntax (#$8a) and a C-ish syntax ("\x8a") -- note the double quotes (at least that's for fairly recent GPC versions, with previous ones you needed a compiler swich {$char-escapes}).
Frank