X-Git-Url: http://git.subgeniuskitty.com/pforth/.git/blobdiff_plain/bb6b2dcdd9acffabfd373c4c3f6b64a9cc43f335..HEAD:/csrc/pf_io_none.c diff --git a/csrc/pf_io_none.c b/csrc/pf_io_none.c index 0c4d1b3..52f92b0 100644 --- a/csrc/pf_io_none.c +++ b/csrc/pf_io_none.c @@ -1,49 +1,52 @@ -/* $Id$ */ -/*************************************************************** -** I/O subsystem for PForth when NO CHARACTER I/O is supported. -** -** Author: Phil Burk -** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom -** -** The pForth software code is dedicated to the public domain, -** and any third party may reproduce, distribute and modify -** the pForth software code or any derivative works thereof -** without any compensation or license. The pForth software -** code is provided on an "as is" basis without any warranty -** of any kind, including, without limitation, the implied -** warranties of merchantability and fitness for a particular -** purpose and their equivalents under the laws of any jurisdiction. -** -**************************************************************** -** 941004 PLB Extracted IO calls from pforth_main.c -***************************************************************/ - -#include "pf_all.h" - - -#ifdef PF_NO_CHARIO -int sdTerminalOut( char c ) -{ - TOUCH(c); - return 0; -} -int sdTerminalEcho( char c ) -{ - TOUCH(c); - return 0; -} -int sdTerminalIn( void ) -{ - return -1; -} -int sdTerminalFlush( void ) -{ - return -1; -} -void sdTerminalInit( void ) -{ -} -void sdTerminalTerm( void ) -{ -} -#endif +/* $Id$ */ +/*************************************************************** +** I/O subsystem for PForth when NO CHARACTER I/O is supported. +** +** Author: Phil Burk +** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom +** +** Permission to use, copy, modify, and/or distribute this +** software for any purpose with or without fee is hereby granted. +** +** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL +** THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR +** CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING +** FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF +** CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +** OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +** +**************************************************************** +** 941004 PLB Extracted IO calls from pforth_main.c +***************************************************************/ + +#include "pf_all.h" + + +#ifdef PF_NO_CHARIO +int sdTerminalOut( char c ) +{ + TOUCH(c); + return 0; +} +int sdTerminalEcho( char c ) +{ + TOUCH(c); + return 0; +} +int sdTerminalIn( void ) +{ + return -1; +} +int sdTerminalFlush( void ) +{ + return -1; +} +void sdTerminalInit( void ) +{ +} +void sdTerminalTerm( void ) +{ +} +#endif