home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR503.W96 / ITEM.AP_ / ITEM.AP
Text File  |  1995-06-26  |  2KB  |  75 lines

  1. /***
  2. *
  3. *   Item.api
  4. *
  5. *   C language definitions for Clipper ITEM API
  6. *
  7. *   Copyright (c) 1992-1995, Computer Associates, International
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14. #ifndef _ITEM_API
  15.  
  16.    #define _ITEM_API
  17.  
  18.    #ifdef __cplusplus
  19.       extern "C" {
  20.    #endif
  21.  
  22.    typedef void _near * ITEM;
  23.  
  24.    typedef struct
  25.    {
  26.       USHORT type;
  27.       USHORT paramCount;
  28.       ITEM   item[ 10 ];
  29.    } EVALINFO;
  30.  
  31.    typedef EVALINFO far * EVALINFOP;
  32.  
  33.    extern ITEM    _itemNew( ITEM item );
  34.  
  35.    extern USHORT  _itemType( ITEM item );
  36.    extern USHORT  _itemSize( ITEM item );
  37.  
  38.    extern ITEM    _itemPutL ( ITEM item, BOOL log );
  39.    extern ITEM    _itemPutC ( ITEM item, BYTEP str );
  40.    extern ITEM    _itemPutCL( ITEM item, BYTEP str, USHORT len );
  41.    extern ITEM    _itemPutNL( ITEM item, long lnum );
  42.    extern ITEM    _itemPutND( ITEM item, XDOUBLE nd );
  43.    extern ITEM    _itemPutDS( ITEM item, BYTEP dstr );
  44.  
  45.    extern BOOL    _itemGetL ( ITEM item );
  46.    extern BYTEP   _itemGetC ( ITEM item );
  47.    extern long    _itemGetNL( ITEM item );
  48.    extern BYTEP   _itemGetDS( ITEM item, BYTEP buf );
  49.    extern XDOUBLE _itemGetND( ITEM item );
  50.  
  51.    extern USHORT  _itemCopyC( ITEM item, BYTEP buf, USHORT len );
  52.    extern BOOL    _itemFreeC( BYTEP str );
  53.  
  54.    extern ITEM    _itemArrayNew( USHORT uiSize );
  55.    extern ITEM    _itemArrayGet( ITEM itemArr, USHORT uiElem );
  56.    extern ITEM    _itemArrayPut( ITEM itemArr, USHORT uiElem, ITEM item );
  57.  
  58.  
  59.    extern ITEM    _itemParam ( USHORT uiParam );
  60.    extern ITEM    _itemReturn( ITEM item );
  61.  
  62.    extern BOOL    _itemRelease( ITEM item );
  63.  
  64.    extern BOOL    _evalNew     ( EVALINFOP evalP, ITEM eval );
  65.    extern BOOL    _evalPutParam( EVALINFOP evalP, ITEM param );
  66.    extern ITEM    _evalLaunch  ( EVALINFOP evalP );
  67.    extern BOOL    _evalRelease ( EVALINFOP evalP );
  68.  
  69.    #ifdef __cplusplus
  70.       }
  71.    #endif
  72.  
  73. #endif
  74.  
  75.