[comp.std.c] entry, was Re: portability

jagardner@watmath.waterloo.edu (Jim Gardner) (01/29/89)

In article <23254@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