Something Hard to Google for

J

jasonwthompson

I'm working on some code and I noticed that there are functions that
contain a $ in them. Does anyone know what they mean? I suspect that
they are macro definitions, but I'm not sure if the $ is legal in a
macro def.

Or does a $ have an actual meaning in C/C++?
 
A

Alf P. Steinbach

* (e-mail address removed):
I'm working on some code and I noticed that there are functions that
contain a $ in them. Does anyone know what they mean? I suspect that
they are macro definitions, but I'm not sure if the $ is legal in a
macro def.

Or does a $ have an actual meaning in C/C++?

$ is not supported in standard C++ names, but can be supported as a
language extension.

A $ in a string, on the other hand, can mean anything or nothing,
depending on what the string is used for.
 
L

Laurent D.A.M. MENTEN

I'm working on some code and I noticed that there are functions that
contain a $ in them. Does anyone know what they mean? I suspect that
they are macro definitions, but I'm not sure if the $ is legal in a
macro def.

Or does a $ have an actual meaning in C/C++?

hmmmm... looks like OpenVMS code, isn't it? Folks at digital used it as
others do with underscore to separate parts of identifiers: SYS$QIO()
would mean something like QIO function of the SYS library.

Yet this is not valid in C++ identifiers, gcc does not complain about it
unless -ansi is passed,
 
A

Alf P. Steinbach

* Laurent D.A.M. MENTEN:
hmmmm... looks like OpenVMS code, isn't it? Folks at digital used it as
others do with underscore to separate parts of identifiers: SYS$QIO()
would mean something like QIO function of the SYS library.

As I recall $ was also used in API function names on the HPx000 series
under MPE/xx.

Argh, off-topic trivia... :)

Cheers,

- Alf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,042
Latest member
icassiem

Latest Threads

Top