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:
Lane Rollins <[log in to unmask]>
Reply To:
Lane Rollins <[log in to unmask]>
Date:
Tue, 7 Apr 1998 15:26:12 -0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
>Lane Rollins writes:
>
>>I am trying to use the HPSORTINIT intrinsic from C (MPE not POSIX) and
>>running into a problem due to C not supporting default parameter
>>substitution. Is there any way not to supply file numbers to these
>>subroutines?
>
>Are you declaring the procedures with
>
>  #pragma intrinsic HPSORTINIT
>
>before using them? C is normally supposed to take care of the
>peculiarities of Pascal parameter passing. However, I've seen some
>routines where this doesn't work.
>
>-- Bruce

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.

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

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

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

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

Thanks again, Lane

ATOM RSS1 RSS2