[BACK]Return to io.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Diff for /OpenXM/src/asir-doc/parts/builtin/io.texi between version 1.6 and 1.9

version 1.6, 2001/03/12 05:01:18 version 1.9, 2002/09/03 01:50:59
Line 1 
Line 1 
 @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/io.texi,v 1.5 2000/11/13 00:16:36 noro Exp $  @comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/io.texi,v 1.8 2002/07/15 01:58:24 takayama Exp $
 \BJP  \BJP
 @node $BF~=PNO(B,,, $BAH$_9~$_H!?t(B  @node $BF~=PNO(B,,, $BAH$_9~$_H!?t(B
 @section $BF~=PNO(B  @section $BF~=PNO(B
Line 96  line of the input file is strongly recommended.
Line 96  line of the input file is strongly recommended.
 @itemize @bullet  @itemize @bullet
 \BJP  \BJP
 @item  @item
 $B<B:]$N%W%m%0%i%`$N=q$-J}$O(B, @xref{$B%f!<%68@8l(B Asir}.  $B<B:]$N%W%m%0%i%`$N=q$-J}$O(B, @pxref{$B%f!<%68@8l(B Asir}.
  $B%F%-%9%H%U%!%$%k$rFI$_9~$`>l9g(B, @code{cpp}   $B%F%-%9%H%U%!%$%k$rFI$_9~$`>l9g(B, @code{cpp}
 $B$rDL$9$N$G(B, C $B$N%W%m%0%i%`F1MM(B @code{#include}, @code{#define} $B$r;H$&$3$H$,$G$-$k(B.  $B$rDL$9$N$G(B, C $B$N%W%m%0%i%`F1MM(B @code{#include}, @code{#define} $B$r;H$&$3$H$,$G$-$k(B.
 @item  @item
Line 121  Windows $BHG$b%G%#%l%/%H%j$N%;%Q%l!<%?$H$7$F(B @samp
Line 121  Windows $BHG$b%G%#%l%/%H%j$N%;%Q%l!<%?$H$7$F(B @samp
 \E  \E
 \BEG  \BEG
 @item  @item
 @xref{User language Asir} for practical programming.  See @ref{User language Asir} for practical programming.
 Since text files are read through @code{cpp},  Since text files are read through @code{cpp},
 the user can use, as in C programs, @code{#include} and @code{#define}  the user can use, as in C programs, @code{#include} and @code{#define}
 in @b{Asir} program source codes.  in @b{Asir} program source codes.
Line 140  On Windows, @code{get_rootdir()/lib} is searched if 
Line 140  On Windows, @code{get_rootdir()/lib} is searched if 
 We recommend to write an @code{end} command at the last line of  We recommend to write an @code{end} command at the last line of
 your program.  If not, @b{Asir} will not give you a prompt after it  your program.  If not, @b{Asir} will not give you a prompt after it
 will have executed @code{load} command.  will have executed @code{load} command.
 (Escape with an interrupt character (@pxref{Interruption}),  (Escape with an interrupt character (@ref{Interruption}),
 if you have lost yourself.)  if you have lost yourself.)
 Even in such a situation,  Even in such a situation,
 @b{Asir} itself is still ready to read keyboard inputs as usual.  @b{Asir} itself is still ready to read keyboard inputs as usual.
Line 555  xyz123gahaha
Line 555  xyz123gahaha
 @item get_byte(@var{num})  @item get_byte(@var{num})
 \JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$+$i(B 1 $B%P%$%HFI$`(B.  \JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$+$i(B 1 $B%P%$%HFI$`(B.
 \EG :: Reads a byte from the file indicated by a descriptor @var{num}.  \EG :: Reads a byte from the file indicated by a descriptor @var{num}.
 @item put_byte(@var{num})  @item put_byte(@var{num},@var{c})
 \JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$K(B 1 $B%P%$%H=q$/(B.  \JP :: $B<1JL;R(B @var{num} $B$N%U%!%$%k$K(B 1 $B%P%$%H(B @var{c} $B$r=q$/(B.
 \EG :: Writes a byte to the file indicated by a descriptor @var{num}.  \EG :: Writes a byte @var{c} to the file indicated by a descriptor @var{num}.
 @item purge_stdin()  @item purge_stdin()
 @item purge_stdin()  @item purge_stdin()
 \JP :: $BI8=`F~NO$N%P%C%U%!$r%/%j%"$9$k(B.  \JP :: $BI8=`F~NO$N%P%C%U%!$r%/%j%"$9$k(B.
Line 606  xyz123gahaha
Line 606  xyz123gahaha
 @item @code{open_file()} opens a file.  @item @code{open_file()} opens a file.
 If @var{mode} is not specified, a file is opened for reading.  If @var{mode} is not specified, a file is opened for reading.
 If @var{mode} is specified, it is used as the mode specification for  If @var{mode} is specified, it is used as the mode specification for
 C standard I/O function {\tt fopen()}. For example @code{"w"} requests  C standard I/O function @code{fopen()}. For example @code{"w"} requests
 that the file is truncated to zero length or created for writing.  that the file is truncated to zero length or created for writing.
 @code{"a"} requests that the file is opened for writing or created  @code{"a"} requests that the file is opened for writing or created
 if it does not exist.  if it does not exist.

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

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