HP3000-L Archives

October 1998, Week 4

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:
John Zoltak <[log in to unmask]>
Reply To:
John Zoltak <[log in to unmask]>
Date:
Wed, 28 Oct 1998 14:02:34 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Thankyou, Roshan, Bruce and Keven,

Keven had the answer I was looking for, the TYPEDEF. Typedefing the
prototype and casting with that eliminates the warning.

Thanks to all respondents

John Zoltak
North American Mfg Co

> -----Original Message-----
> From: Keven Miller [SMTP:[log in to unmask]]
> Sent: Wednesday, October 28, 1998 1:07 PM
> To:   John Zoltak; HPlist
> Subject:      RE: [HP3000-L] HP C/iX Warning 604
>
> Try this
>
> #pragma intrinsic HPGETPROCPLABEL
>
> typedef  short (*i2funcptr)();
>
> i2funcptr pASCII;
>
> void *load () {
>    int pLabel;
>    HPGETPROCPLABEL ("%ASCII%", &pLabel );
>    return (void*) pLabel;
> }
>
> void main () {
>    pASCII = (i2funcptr) load ();
> }
>
>
> +=====================================
>  Keven Miller   KC7LYD
>  [log in to unmask]   (Salt Lake City, Utah, USA)
> +=====================================
>
>

ATOM RSS1 RSS2