NewtIO.c

入出力処理 [詳細]

#include <string.h>
#include <stdio.h>
#include <errno.h>
#include "NewtCore.h"
#include "NewtIO.h"

ソースコードを見る。

マクロ定義

#define newt_getch()   (0)

関数

static int cbreak_and_noecho (int fd, int vmin, struct termios *tiosp)
static int tcgetch (int fd)
void NIOSetFile (newtStream_t *stream, FILE *f)
int NIOFprintf (newtStream_t *stream, const char *format,...)
int NIOVfprintf (newtStream_t *stream, const char *format, va_list ap)
int NIOFputc (int c, newtStream_t *stream)
int NIOFputs (const char *str, newtStream_t *stream)
int NewtFprintf (FILE *f, const char *format,...)
int NewtFputc (int c, FILE *f)
int NewtFputs (const char *str, FILE *f)
int NewtDebugMsg (const char *title, const char *format,...)
newtRef NewtFgets (FILE *stream)
newtRef NsGets (newtRefArg rcvr)
newtRef NewtFgetc (FILE *stream)
newtRef NsGetc (newtRefArg rcvr)
newtRef NsGetch (newtRefArg rcvr)


説明

入出力処理

作者:
M.Nukui
日付:
2004-06-05
Copyright (C) 2003-2004 M.Nukui All rights reserved.

NewtIO.c で定義されています。


関数

int NewtDebugMsg ( const char *  title,
const char *  format,
  ... 
)

printf フォーマットで出力する(不定長)

引数:
title [in] タイトル
format [in] フォーマット
... [in] printf 引数
戻り値:
printf の戻り値

NewtIO.c265 行で定義されています。

参照先 NIOFputs()NIOSetFile()NIOVfprintf().

参照元 NewtPoolSnap()NVMLoop().

関数の呼び出しグラフ:

newtRef NewtFgetc ( FILE *  stream  ) 

入力ストリームから文字を取出す

引数:
stream [in] 入力ストリーム
戻り値:
文字オブジェクト 入力データが存在する場合
NIL EOF

NewtIO.c387 行で定義されています。

参照先 kNewtRefNILNewtMakeCharacter.

参照元 NsGetc().

newtRef NewtFgets ( FILE *  stream  ) 

入力ストリームから文字列を取出す

引数:
stream [in] 入力ストリーム
戻り値:
文字列オブジェクト 入力データが存在する場合
NIL 入力データが存在しない場合
覚え書き:
制限 NEWT_FGETS_BUFFSIZE (NewtConf.h)

NewtIO.c300 行で定義されています。

参照先 kNErrOutOfObjectMemorykNewtRefNILNEWT_FGETS_BUFFSIZENewtMakeString2()NewtRefIsNIL()NewtStrCat2()NewtStringLength()NewtThrow0().

参照元 NsGets().

関数の呼び出しグラフ:

int NewtFprintf ( FILE *  f,
const char *  format,
  ... 
)

printf フォーマットで出力する(不定長)

引数:
f [in] 出力ストリーム
format [in] フォーマット
... [in] printf 引数
戻り値:
printf の戻り値

NewtIO.c202 行で定義されています。

参照先 NIOSetFile()NIOVfprintf().

参照元 NBCDefLocal()NBCGenBC()NBError()NewtErrMessage()NPSDumpSyntaxTree()NPSErrorStr()NPSParse()NPSParseFile()NPSPrintNode()NPSPrintSyntaxCode()NVMDumpCode()NVMDumpFn()NVMDumpInstCode()NVMDumpInstName()NVMDumpInstResult()NVMInterpret().

関数の呼び出しグラフ:

int NewtFputc ( int  c,
FILE *  f 
)

文字の出力

引数:
c [in] 文字
f [in] 出力ストリーム
戻り値:
fputc の戻り値

NewtIO.c227 行で定義されています。

参照先 NIOFputc()NIOSetFile().

関数の呼び出しグラフ:

int NewtFputs ( const char *  str,
FILE *  f 
)

文字の出力

引数:
str [in] 文字列
f [in] 出力ストリーム
戻り値:
fputs の戻り値

NewtIO.c245 行で定義されています。

参照先 NIOFputs()NIOSetFile().

参照元 NVMDumpStackTop().

関数の呼び出しグラフ:

int NIOFprintf ( newtStream_t stream,
const char *  format,
  ... 
)

printf フォーマットで出力する(不定長)

引数:
stream [in] 出力ストリーム
format [in] フォーマット
... [in] printf 引数
戻り値:
printf の戻り値
覚え書き:
newtStream_t を使用

NewtIO.c79 行で定義されています。

参照先 NIOVfprintf().

参照元 NIOPrintFnFrame().

関数の呼び出しグラフ:

int NIOFputc ( int  c,
newtStream_t stream 
)

文字を出力する

引数:
c [in] 文字
stream [in] 出力ストリーム
戻り値:
fputc の戻り値
覚え書き:
newtStream_t を使用

NewtIO.c143 行で定義されています。

参照先 newtStream_t::fileNewtRefIsString()NewtStrCat()newtStream_t::obj.

参照元 NewtCharToEscape()NewtFputc()NIOPrintCharacter()NIOPrintLiteral().

関数の呼び出しグラフ:

int NIOFputs ( const char *  str,
newtStream_t stream 
)

文字列を出力する

引数:
str [in] 文字列
stream [in] 出力ストリーム
戻り値:
fputs の戻り値
覚え書き:
newtStream_t を使用

NewtIO.c174 行で定義されています。

参照先 newtStream_t::fileNewtRefIsString()NewtStrCat()newtStream_t::obj.

参照元 NewtCharToEscape()NewtDebugMsg()NewtFputs()NewtPrintObject()NIOInfo()NIOPrintObj2()NIOPrintObjArray()NIOPrintObjFrame()NIOPrintRegexFrame()NIOPrintString()NIOPrintSymbol().

関数の呼び出しグラフ:

void NIOSetFile ( newtStream_t stream,
FILE *  f 
)

入出力ストリーム構造体にファイルの情報をセットする

引数:
stream [out]入出力ストリーム
f [in] ファイル
戻り値:
なし

NewtIO.c54 行で定義されています。

参照先 newtStream_t::filekNewtRefUnbindNcGetGlobalVarNSSYM0newtStream_t::obj.

参照元 NewtDebugMsg()NewtFprintf()NewtFputc()NewtFputs()NewtInfo()NewtInfoGlobalFns()NewtPrint()NewtPrintObj()NewtPrintObject().

int NIOVfprintf ( newtStream_t stream,
const char *  format,
va_list  ap 
)

vprintf フォーマットで出力する

引数:
stream [in] 出力ストリーム
format [in] フォーマット
ap [in] vprintf 引数
戻り値:
vprintf の戻り値
覚え書き:
newtStream_t を使用 文字列に追加する場合の制限 NEWT_SNPRINTF_BUFFSIZE (NewtConf.h)

NewtIO.c105 行で定義されています。

参照先 newtStream_t::fileNEWT_SNPRINTF_BUFFSIZENewtRefIsString()NewtStrCat()newtStream_t::obj.

参照元 NewtDebugMsg()NewtFprintf()NIOFprintf().

関数の呼び出しグラフ:

newtRef NsGetc ( newtRefArg  rcvr  ) 

標準入力から文字を取出す

引数:
rcvr [in] レシーバ
戻り値:
文字オブジェクト 入力データが存在する場合
NIL 入力データが存在しない場合

NewtIO.c409 行で定義されています。

参照先 NewtFgetc().

参照元 NVMInitExGlobalFns().

関数の呼び出しグラフ:

newtRef NsGetch ( newtRefArg  rcvr  ) 

キーボードから入力文字を1文字取得

引数:
rcvr [in] レシーバ
戻り値:
文字オブジェクト 入力データが存在する場合
NIL 入力データが存在しない場合

NewtIO.c487 行で定義されています。

参照先 kNewtRefNILnewt_getchNewtMakeCharacter.

参照元 NVMInitExGlobalFns().

newtRef NsGets ( newtRefArg  rcvr  ) 

標準入力から文字列を取出す

引数:
rcvr [in] レシーバ
戻り値:
文字列オブジェクト 入力データが存在する場合
NIL 入力データが存在しない場合

NewtIO.c372 行で定義されています。

参照先 NewtFgets().

参照元 NVMInitExGlobalFns().

関数の呼び出しグラフ:


NEWT/0に対してThu Nov 23 17:02:33 2006に生成されました。  doxygen 1.5.0