home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / duucp-1.17 / AU-117b4-src.lha / src / fifolib / rauch.manxpragmas / text0000.txt < prev   
Encoding:
Text File  |  1991-06-16  |  3.4 KB  |  154 lines

  1. I sent this to henning...  It may be of some interest to you, as it regards
  2. fifo.library's use with Aztec 5.0a.
  3.  
  4. (I used Aztec's #pragmas, so I don't know if the assembly glue will work
  5. correctly with Aztec's assembler/C.  I long since gave up trying to link
  6. Amiga .o and .lib files with Aztec, despite claims in the Aztec linker
  7. docs, so I didn't even try simply linking the provided glue, either.)
  8.  
  9.  
  10.   /~~~dup of a message
  11.  
  12.   To:  henning@aemsrc.UUCP
  13.  
  14.     /~~~henning
  15.  
  16.    ...
  17.    tried both the dillon and the aux: devices, and either I am missing
  18.    something, or they just don't compile correctly under manx 5.0)
  19.    ...
  20.  
  21.     \___henning
  22.  
  23.   I have managed to use the remcli.c with Dillon's FIFO:.  It compiles,
  24.   links, and runs, just the same as when compiled with DICE as far as I
  25.   can see.
  26.  
  27.   I had to make some changes (and I had to generate #pragmas, plus prototype
  28.   by hand from the .doc), but it all works.  (Manx/Aztec 5.0a)
  29.  
  30.  
  31.   fifo_pragmas.h is a new file.  The other two files are provided in diff
  32.   form (generated by the RCS diff, for what it's worth), relative to the
  33.   fifodev2.lzh archive.
  34.  
  35.  
  36.     /~~~fifo_pragmas.h
  37.  
  38.    /*
  39.    **  Made this file with:
  40.    **
  41.    **  aztec:res_lib/mapfd -l -o fifo_pragmas.h fifo_lib.fd
  42.    **
  43.    **       ---rkr.
  44.    **
  45.    */
  46.    #pragma libcall FifoBase OpenFifo 1e 81003
  47.    #pragma libcall FifoBase CloseFifo 24 1002
  48.    #pragma libcall FifoBase ReadFifo 2a 81003
  49.    #pragma libcall FifoBase WriteFifo 30 81003
  50.    #pragma libcall FifoBase RequestFifo 36 81003
  51.    #pragma libcall FifoBase BufSizeFifo 3c 1
  52.  
  53.     \___fifo_pragmas.h
  54.  
  55.  
  56.     /~~~fifo.h_diff
  57.  
  58.    27a28,41
  59.    >
  60.    > /*
  61.    > **  Need some protos so that I can use Manx/Aztec #pragmas...
  62.    > **
  63.    > **    ---rkr.
  64.    > **
  65.    > */
  66.    > FifoHan OpenFifo  (char *name, long bufsize, long flags);
  67.    > void  CloseFifo (FifoHan fifo, long flags);
  68.    > long  ReadFifo  (FifoHan fifo, char **pptr, long skip);
  69.    > long  WriteFifo (FifoHan fifo, void *buf, long max);
  70.    > void  RequestFifo (FifoHan fifo, struct Message *msg, long req);
  71.    > long  BufSizeFifo (FifoHan fifo);
  72.    >
  73.  
  74.     \___fifo.h_diff
  75.  
  76.  
  77.     /~~~remcli.c_diff
  78.  
  79.    29a30,31
  80.    > #include "fifo_pragmas.h"       /*** rkr ***/
  81.    >
  82.    81c83,91
  83.    < int  brk();
  84.    ---
  85.    >
  86.    > /*
  87.    > **  This function not needed in Aztec.
  88.    > **
  89.    > **    ---rkr.
  90.    > **
  91.    > **  int  brk();
  92.    > */
  93.    > extern long Enable_Abort;     /*** Aztec flag for ^c checking ---rkr. ***/
  94.    98c108,109
  95.    <     onbreak(brk);
  96.    ---
  97.    >     /***     onbreak(brk);   /*** not needed in Aztec        ---rkr. ***/
  98.    >     Enable_Abort = 0;     /*** Aztec way of disable ^c    ---rkr. ***/
  99.    292c303
  100.    <       CloseFifo(FifoR);
  101.    ---
  102.    >       CloseFifo(FifoR, 0);    /*** rkr ***/
  103.    294c305
  104.    <       CloseFifo(FifoW);
  105.    ---
  106.    >       CloseFifo(FifoW, 0);    /*** rkr ***/
  107.    315a327
  108.    > long len;               /*** rkr ***/
  109.    322,326c334,344
  110.    < int
  111.    < brk()
  112.    < {
  113.    <     return(0);
  114.    < }
  115.    ---
  116.    > /*
  117.    > **  This function not needed in Aztec.
  118.    > **
  119.    > **    ---rkr.
  120.    > **
  121.    > **  int
  122.    > **  brk()
  123.    > **  {
  124.    > **    return(0);
  125.    > **  }
  126.    > */
  127.  
  128.     \___remcli.c_diff
  129.  
  130.  
  131.   Richard Rauch
  132.  
  133.       11415 Grant Dr.
  134.       Overland Park, Ks. 66210
  135.  
  136.       1:280/304.3
  137.       1:280/304.4
  138.  
  139.       Richard.Rauch@amigacen.kcufgat.fidonet.org
  140.  
  141.   \___dup of a message
  142.  
  143.  
  144. Richard Rauch
  145.  
  146.     11415 Grant Dr.
  147.     Overland Park, Ks. 66210
  148.  
  149.     1:280/304.3
  150.     1:280/304.4
  151.  
  152.     Richard.Rauch@amigacen.kcufgat.fidonet.org
  153.  
  154.