[BACK]Return to wtext.h CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gnuplot / win

Annotation of OpenXM_contrib/gnuplot/win/wtext.h, Revision 1.1

1.1     ! maekawa     1: /*
        !             2:  * $Id: wtext.h,v 1.5 1998/04/14 00:18:29 drd Exp $
        !             3:  */
        !             4:
        !             5: /* GNUPLOT - win/wtext.h */
        !             6:
        !             7: /*[
        !             8:  * Copyright 1992 - 1993, 1998   Russell Lang
        !             9:  *
        !            10:  * Permission to use, copy, and distribute this software and its
        !            11:  * documentation for any purpose with or without fee is hereby granted,
        !            12:  * provided that the above copyright notice appear in all copies and
        !            13:  * that both that copyright notice and this permission notice appear
        !            14:  * in supporting documentation.
        !            15:  *
        !            16:  * Permission to modify the software is granted, but not the right to
        !            17:  * distribute the complete modified source code.  Modifications are to
        !            18:  * be distributed as patches to the released version.  Permission to
        !            19:  * distribute binaries produced by compiling modified sources is granted,
        !            20:  * provided you
        !            21:  *   1. distribute the corresponding source modifications from the
        !            22:  *    released version in the form of a patch file along with the binaries,
        !            23:  *   2. add special version identification to distinguish your version
        !            24:  *    in addition to the base release version number,
        !            25:  *   3. provide your name and address as the primary contact for the
        !            26:  *    support of your modified version, and
        !            27:  *   4. retain our contact information in regard to use of the base
        !            28:  *    software.
        !            29:  * Permission to distribute the released version of the source code along
        !            30:  * with corresponding source modifications in the form of a patch file is
        !            31:  * granted with same provisions 2 through 4 for binary distributions.
        !            32:  *
        !            33:  * This software is provided "as is" without express or implied warranty
        !            34:  * to the extent permitted by applicable law.
        !            35: ]*/
        !            36:
        !            37: /* redefine functions that can talk to tty devices, to use
        !            38:  * implementation in winmain.c/wgnuplot.dll */
        !            39:
        !            40: #define kbhit()  MyKBHit()
        !            41: #define getche() MyGetChE()
        !            42: #define getch()  MyGetCh()
        !            43: #define putch(ch)  MyPutCh(ch)
        !            44:
        !            45: #define fgetc(file) MyFGetC(file)
        !            46: #undef  getchar
        !            47: #define getchar()   MyFGetC(stdin)
        !            48: #undef  getc
        !            49: #define getc(file)  MyFGetC(file)
        !            50: #define fgets(str,sz,file)  MyFGetS(str,sz,file)
        !            51: #define gets(str)          MyGetS(str)
        !            52:
        !            53: #define fputc(ch,file) MyFPutC(ch,file)
        !            54: #undef  putchar
        !            55: #define putchar(ch)    MyFPutC(ch,stdout)
        !            56: #undef  putc
        !            57: #define putc(ch,file)  MyFPutC(ch,file)
        !            58: #define fputs(str,file)  MyFPutS(str,file)
        !            59: #define puts(str)        MyPutS(str)
        !            60:
        !            61: #define fprintf MyFPrintF
        !            62: #define printf MyPrintF
        !            63:
        !            64: #define fwrite(ptr, size, n, stream) MyFWrite(ptr, size, n, stream)
        !            65: #define fread(ptr, size, n, stream) MyFRead(ptr, size, n, stream)
        !            66:
        !            67: /* now cause errors for some unimplemented functions */
        !            68:
        !            69: #define vprintf dontuse_vprintf
        !            70: #define vfprintf dontuse_vfprintf
        !            71: #define fscanf dontuse_fscanf
        !            72: #define scanf dontuse_scanf
        !            73: #define clreol dontuse_clreol
        !            74: #define clrscr dontuse_clrscr
        !            75: #define gotoxy dontuse_gotoxy
        !            76: #define wherex dontuse_wherex
        !            77: #define wherey dontuse_wherey
        !            78: #define cgets dontuse_cgets
        !            79: #define cprintf dontuse_cprintf
        !            80: #define cputs dontuse_cputs
        !            81: #define cscanf dontuse_cscanf
        !            82: #define ungetch dontuse_ungetch
        !            83:
        !            84: /* now for the prototypes */
        !            85:
        !            86: int MyPutCh(int ch);
        !            87: int MyKBHit(void);
        !            88: int MyGetCh(void);
        !            89: int MyGetChE(void);
        !            90: int MyFGetC(FILE *file);
        !            91: char * MyGetS(char *str);
        !            92: char * MyFGetS(char *str, unsigned int size, FILE *file);
        !            93: int MyFPutC(int ch, FILE *file);
        !            94: int MyFPutS(char *str, FILE *file);
        !            95: int MyPutS(char *str);
        !            96: int MyFPrintF(FILE *file, char *fmt, ...);
        !            97: int MyPrintF(char *fmt, ...);
        !            98: size_t MyFWrite(const void *ptr, size_t size, size_t n, FILE *stream);
        !            99: size_t MyFRead(void *ptr, size_t size, size_t n, FILE *stream);
        !           100:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>