stk/Src/sport.h

39 lines
1.1 KiB
C
Raw Normal View History

1996-09-27 06:29:02 -04:00
/*
* s p o r t . h -- String ports management
*
1999-09-05 07:16:41 -04:00
* Copyright <EFBFBD> 1993-1999 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
1996-09-27 06:29:02 -04:00
*
*
1999-09-05 07:16:41 -04:00
* Permission to use, copy, modify, distribute,and license this
* software and its documentation for any purpose is hereby granted,
* provided that existing copyright notices are retained in all
* copies and that this notice is included verbatim in any
* distributions. No written agreement, license, or royalty fee is
* required for any of the authorized uses.
* This software is provided ``AS IS'' without express or implied
* warranty.
1996-09-27 06:29:02 -04:00
*
*
* Author: Erick Gallesio [eg@unice.fr]
* Creation date: 17-Feb-1993 12:27
1999-09-05 07:16:41 -04:00
* Last file update: 3-Sep-1999 20:22 (eg)
1996-09-27 06:29:02 -04:00
*
*/
#define SPORT_SIGNATURE 0xabcdef00 /* Magic number for a string port */
#define START_ALLOC 128 /* Initial size of an ouput string port */
#define READING 01
#define WRITING 02
1999-02-02 06:13:40 -05:00
#define STRING_PORTP(f) (((struct str_iob *) f)->signature == SPORT_SIGNATURE)
1996-09-27 06:29:02 -04:00
struct str_iob {
1998-04-10 06:59:06 -04:00
long int signature;
short flag;
int cnt;
unsigned char *ptr;
unsigned char *base;
int bufsiz;
1996-09-27 06:29:02 -04:00
};