[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with Orca/C 1.3 porting PGP 2.2 Please help
In article <1smorq$sbj@genesis.MCS.COM> zane@genesis.MCS.COM (Sameer Parekh) writes:
>I'm using Orca/C 1.3-- I have a bit of a problem porting PGP 2.2
>
>NULL, as usual, is (void *)
>n is an array, with the declaration:
> unit n[MAX_UNIT_PRECISION];
>
>userid_match is a function with the header:
> static boolean userid_match(char *userid, char *substr,unitptr n);
[...]
>if (userid_match((char *)userid0, (char *) userid,
> (exact_match ? NULL : n)))
> ^ The operation cannot be performed on operands of the type given
> ^ The operation cannot be performed on operands of the type given
Although it _should_ work, both Orca/C 1.3 and 2.0 have some problems.
Try these in order:
1. try ...(exact_match ? NULL : (unitptr) n)))
2. try ...(exact_match ? (unitptr) NULL : (unitptr) n)))
3. try pulling the above fragment out of the if() statement
as a separate function.
Good luck, I would really like to see this package (especially if it's
incorporated into MuGS).
--
G. Devin Reade glyn@cs.ualberta.ca