home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / comm / tcp / amitcp / src / l / inet-handler / util.h < prev   
Encoding:
C/C++ Source or Header  |  1994-04-05  |  644 b   |  33 lines

  1. /*
  2.  * util.h
  3.  *
  4.  * Author: Tomi Ollila <too@cs.hut.fi>
  5.  *
  6.  * Copyright (c) 1993 AmiTCP/IP Group, <amitcp-group@hut.fi>
  7.  *              All rights reserved
  8.  *
  9.  * Created: Fri Oct 15 17:54:05 1993 too
  10.  * Last modified: Sat Oct 16 17:00:06 1993 too
  11.  *
  12.  * HISTORY
  13.  * $Log: util.h,v $
  14.  * Revision 1.1  1993/10/24  13:01:32  too
  15.  * Initial revision
  16.  *
  17.  */
  18.  
  19. #ifndef _UTIL_H_
  20. #define _UTIL_H_
  21.  
  22. static inline void
  23. NewList(struct List * list)
  24. {
  25.   list->lh_Head = (struct Node *)&list->lh_Tail;
  26.   list->lh_Tail = 0;
  27.   list->lh_TailPred = (struct Node *)&list->lh_Head;
  28. }
  29.  
  30. void initMsgPort(struct MsgPort * port, UBYTE sig, struct Task * task);
  31.  
  32. #endif _UTIL_H_
  33.