HP3000-L Archives

April 1998, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dirickson Steve <[log in to unmask]>
Reply To:
Dirickson Steve <[log in to unmask]>
Date:
Tue, 7 Apr 1998 15:56:35 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
        <<Yes I have the pragma setup. C doesn't allow you to leave any
paramters out of the middle fo a paramter list, off the end that's fine. SPL
and PASCAL don't have a problem, I don't know about any of the other
languages on the 3k.>>


Sure it does; I do it all the time.

        <<If life was perfect I would like the line to look like...

        hpsortinit( &sort_status,,,, sizeof(acct_info),, 1, keys );>>


It can; here are some actual examples from my code:

 IPCCONTROL(pSock->m_hSocket, 1,,,,,, &res32);  /* enable NOWAIT */
 HPERRMSG(2,,, _mpe_status.word,,, &mpestatus);


        <<I get the following error message if I do....

        cc: "CMDLOCC.SMI.IDS", line 84: error 1615: Default parameter
specification not supported.>>


Does the case of the declaration exactly match the case of the call?
HPSORTINIT is not the same as hpsortinit, and it won't work if the pragma
declaration differs from the call. Or, as page 10-3 of the "HP C/iX
Reference Manual" puts it:

  "To ensure that all calls are handled correctly by the compiler, the
intrinsic pragma should declare the name of the intrinsic using an
identifier with the identical case that is used by the function calls in the
program, especially if the optional user-name is not specified."

Steve

ATOM RSS1 RSS2