entry, was Re: portability

Jim Gardner jagardner at watmath.waterloo.edu
Sun Jan 29 03:05:46 AEST 1989


In article <23254 at watmath.waterloo.edu> Ray Butterworth writes:
>e.g.
>    write(args) entry __write { c_blah c_blah }

Use entry as a unary operator that takes a string literal. Multiple aliases
for the function could be specified by

	int func1( type1 a, type2 b ), func2, func3 { ...

where func2 and func3 are alternate names for func1. The entry keyword can
then be used like

	int entry"..func1"( .... ), func2, entry "##func3!" { ...
	...
	void some_func() {  int a; a = entry"..func1"( ..whatever..); ... }

i.e. entry is used to build function (and variable?) references to names
that are not legal C names (eg. they could be from a different language).
  --daiv



More information about the Comp.std.c mailing list