Jump to content
Excelsior Forums
Sign in to follow this  

Curious variable in xmfonts.mod

Recommended Posts

I'm trying to learn how to write X programs.  At the moment, I'm playing with samples/X11/smfonts.mod

I've figured some things out, like fixing  the \n and \0

One thing I'm wondering about is in the CreateHelp procedure:

 button:            Xt.Widget;
 message_box:            Xt.Widget;                     (* Message Dialog *)
 args:                  ARRAY [0..MAX_ARGS] OF Xt.Arg; (* arg list       *)
--  message:            ARRAY [0..1023] OF CHAR;
 title_string:            Xm.XmString;
 message_string:      Xm.XmString;
 button_string:      Xm.XmString;

What, precisely, is: --  message         ?

I originally thought it might be extraneous characters due to the focus policy of Waimea - but the compiler didn't complain.  I then tried removing them and did receive an error (though there is a possibility that it was related to an erroneous paste that duplicated it a few lines down in the code).

Anyone know what the two hyphens are for?

Share this post

Link to post
Share on other sites

Well, just so it looks like people actually read the board, I'll point out that someone told me that it is most likely a C++ comment

Now, off to start another topic :)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this