<<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
|