home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / AZTEC-C / COMND004.ARK / CMDPSD.C < prev    next >
C/C++ Source or Header  |  1986-06-17  |  2KB  |  96 lines

  1. /*    cmdpsd.c    COMND module; Stub for date/time function parse.
  2.  
  3.     Copyright (C) 1985 Mark E. Mallett
  4.  
  5.     Permission is hereby granted to distribute this file indiscriminately.
  6.  
  7.     This file is a stub for the date/time parsing function, and
  8. is to be included in the link when date/time functions are not used
  9. (in order to save memory on small machines like mine).
  10.  
  11. Edit history
  12.  
  13. When    Who    What
  14. ------    ---    --------------------------------
  15. 850527    MEM    Create file.
  16.  
  17.     Routines included:
  18.  
  19.         CFPdat        Parse date and/or time
  20.         CMDpsd        fake routine to drag in this module.
  21.  
  22. */
  23.  
  24. #include "stdio.h"            /* Standard system defs */
  25. #include "comnd.h"            /* COMND interface definitions */
  26. #include "comndi.h"            /* COMND internal definitions */
  27.  
  28.  
  29.  
  30. /* External routines */
  31.  
  32.  
  33. /* External data */
  34.  
  35.  
  36. /* Internal (public) routines */
  37.  
  38.  
  39.  
  40. /* Internal (public) data */
  41.  
  42.  
  43. /* Local (static) data */
  44.  
  45.  
  46. /*
  47.  
  48. *//* CMDpsd()
  49.  
  50.     Parse stub for date/time
  51.  
  52. If the COMND files are stored in an object library (for the linker), you
  53. can put this module first and call this routine directly in order to
  54. drag in this module and satisfy the references with the stub(s) in this
  55. routine.  Or you can keep this module separate and link it in before
  56. referencing the library.
  57.  
  58.  
  59. */
  60.  
  61. CMDpsd()
  62.  
  63. {}
  64. /*
  65.  
  66. *//* CFPdat (CSBptr, CFBptr, ccptr)
  67.  
  68.     Function parse for type=_CMDAT, date and/or time
  69.  
  70. This is a stub for the _CMDAT function processor.  It will indicate
  71. an invalid function call.
  72.  
  73. Accepts :
  74.  
  75.     CSBptr        Address of command state block
  76.     CFBptr        Address of command function block
  77.     ccptr        Address of CC table (N/A here)
  78.  
  79.  
  80. Returns :
  81.  
  82.     <value>        Parse status of _CPABT.
  83.  
  84. */
  85.  
  86. CFPdat (CSBptr, CFBptr, ccptr)
  87.  
  88. CSB        *CSBptr;        /* Addr of command state block */
  89. CFB        *CFBptr;        /* Addr of command function block */
  90. WORD        *ccptr;            /* Addr of CC table */
  91.  
  92. {
  93. CSBptr -> CSB_RCD = _CRIFC;        /* Set invalid function code */
  94. return (_CPABT);            /* Abort, right now */
  95. }
  96.