HP3000-L Archives

November 2004, Week 5

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:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Mon, 29 Nov 2004 14:55:51 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
How about your own replacement in your code or XL.

Sorry, my pascal is not ingrained, as you can C.
  :SETVAR CCOPTS "-Aa -C +e +w1"
  :CCXLLK FSC,FSP,,-DTEST
  :run FSP
/*----------------------------------------------------------------*/
/* file fsc */
/* freadseek wrapper */

#pragma list off

#define  _MPEXL_SOURCE

#include <stdio.h>
#include <mpe.h>

#pragma intrinsic HPSETCCODE     mpe_hpsetccode
#pragma intrinsic CCODE          mpe_ccode

typedef  short       i16;
typedef  int         i32;
/*----------------------------------------------------------------*/

void FREADSEEK ( i16 fn, i32 rec )
{
/* Do nothing; except say all is ok */
   mpe_hpsetccode ( CCE );
}
/*----------------------------------------------------------------*/

#ifdef   TEST
#undef   TEST

int main ( int ac, char* av [] )
{
   int   cc;

/* call my FREADSEEK and test return status */
   FREADSEEK ( 10, 23 );
   cc = mpe_ccode ();
   printf ( "CC%c\n", "GLE?" [cc] );
}
#endif
/*----------------------------------------------------------------*/

_______________________________________________
Keven Miller       [log in to unmask]

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2