🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5681

entry, was Re: portability

#5681
From: Jim Gardner
Date: Sat, 28 Jan 1989 17:05
19 lines
1098 bytes
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
Technical Details
Message-ID: <23318@watmath.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!jagardner
References: <86097@sun.uucp> <877@auspex.UUCP> <23254@watmath.waterloo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!jagardner
From: jagardner@watmath.waterloo.edu (Jim Gardner)
Newsgroups: comp.std.c
Subject: entry, was Re: portability
Message-ID: <23318@watmath.waterloo.edu>
Date: 28 Jan 89 17:05:46 GMT
References: <86097@sun.uucp> <877@auspex.UUCP> <23254@watmath.waterloo.edu>
Reply-To: jagardner@watmath.waterloo.edu (Jim Gardner)
Organization: U. of Waterloo, Ontario
Lines: 19