#include <stdio.h>
#include <stdarg.h>
#include "NewtType.h"
データ構造 | |
| struct | newtStream_t |
| 入出力ストリーム [詳細] | |
マクロ定義 | |
| #define | NcGets() NsGets(kNewtRefNIL) |
| #define | NcGetc() NsGetc(kNewtRefNIL) |
| #define | NcGetch() NsGetch(kNewtRefNIL) |
関数 | |
| 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) |
NewtIO.h で定義されています。
| int NewtDebugMsg | ( | const char * | title, | |
| const char * | format, | |||
| ... | ||||
| ) |
printf フォーマットで出力する(不定長)
| title | [in] タイトル | |
| format | [in] フォーマット | |
| ... | [in] printf 引数 |
参照先 NIOFputs()・NIOSetFile()・NIOVfprintf().
参照元 NewtPoolSnap()・NVMLoop().
関数の呼び出しグラフ:

| newtRef NewtFgetc | ( | FILE * | stream | ) |
入力ストリームから文字を取出す
| stream | [in] 入力ストリーム |
| 文字オブジェクト | 入力データが存在する場合 | |
| NIL | EOF |
参照先 kNewtRefNIL・NewtMakeCharacter.
参照元 NsGetc().
| newtRef NewtFgets | ( | FILE * | stream | ) |
入力ストリームから文字列を取出す
| stream | [in] 入力ストリーム |
| 文字列オブジェクト | 入力データが存在する場合 | |
| NIL | 入力データが存在しない場合 |
参照先 kNErrOutOfObjectMemory・kNewtRefNIL・NEWT_FGETS_BUFFSIZE・NewtMakeString2()・NewtRefIsNIL()・NewtStrCat2()・NewtStringLength()・NewtThrow0().
参照元 NsGets().
関数の呼び出しグラフ:

| int NewtFprintf | ( | FILE * | f, | |
| const char * | format, | |||
| ... | ||||
| ) |
printf フォーマットで出力する(不定長)
| f | [in] 出力ストリーム | |
| format | [in] フォーマット | |
| ... | [in] printf 引数 |
参照先 NIOSetFile()・NIOVfprintf().
参照元 NBCDefLocal()・NBCGenBC()・NBError()・NewtErrMessage()・NPSDumpSyntaxTree()・NPSErrorStr()・NPSParse()・NPSParseFile()・NPSPrintNode()・NPSPrintSyntaxCode()・NVMDumpCode()・NVMDumpFn()・NVMDumpInstCode()・NVMDumpInstName()・NVMDumpInstResult()・NVMInterpret().
関数の呼び出しグラフ:

| int NewtFputc | ( | int | c, | |
| FILE * | f | |||
| ) |
| int NewtFputs | ( | const char * | str, | |
| FILE * | f | |||
| ) |
文字の出力
| str | [in] 文字列 | |
| f | [in] 出力ストリーム |
参照先 NIOFputs()・NIOSetFile().
参照元 NVMDumpStackTop().
関数の呼び出しグラフ:

| int NIOFprintf | ( | newtStream_t * | stream, | |
| const char * | format, | |||
| ... | ||||
| ) |
printf フォーマットで出力する(不定長)
| stream | [in] 出力ストリーム | |
| format | [in] フォーマット | |
| ... | [in] printf 引数 |
参照先 NIOVfprintf().
参照元 NIOPrintFnFrame().
関数の呼び出しグラフ:

| int NIOFputc | ( | int | c, | |
| newtStream_t * | stream | |||
| ) |
文字を出力する
| c | [in] 文字 | |
| stream | [in] 出力ストリーム |
参照先 newtStream_t::file・NewtRefIsString()・NewtStrCat()・newtStream_t::obj.
参照元 NewtCharToEscape()・NewtFputc()・NIOPrintCharacter()・NIOPrintLiteral().
関数の呼び出しグラフ:

| int NIOFputs | ( | const char * | str, | |
| newtStream_t * | stream | |||
| ) |
文字列を出力する
| str | [in] 文字列 | |
| stream | [in] 出力ストリーム |
参照先 newtStream_t::file・NewtRefIsString()・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] ファイル |
参照先 newtStream_t::file・kNewtRefUnbind・NcGetGlobalVar・NSSYM0・newtStream_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 引数 |
参照先 newtStream_t::file・NEWT_SNPRINTF_BUFFSIZE・NewtRefIsString()・NewtStrCat()・newtStream_t::obj.
参照元 NewtDebugMsg()・NewtFprintf()・NIOFprintf().
関数の呼び出しグラフ:

| newtRef NsGetc | ( | newtRefArg | rcvr | ) |
標準入力から文字を取出す
| rcvr | [in] レシーバ |
| 文字オブジェクト | 入力データが存在する場合 | |
| NIL | 入力データが存在しない場合 |
参照先 NewtFgetc().
参照元 NVMInitExGlobalFns().
関数の呼び出しグラフ:

| newtRef NsGetch | ( | newtRefArg | rcvr | ) |
キーボードから入力文字を1文字取得
| rcvr | [in] レシーバ |
| 文字オブジェクト | 入力データが存在する場合 | |
| NIL | 入力データが存在しない場合 |
参照先 kNewtRefNIL・newt_getch・NewtMakeCharacter.
参照元 NVMInitExGlobalFns().
| newtRef NsGets | ( | newtRefArg | rcvr | ) |
標準入力から文字列を取出す
| rcvr | [in] レシーバ |
| 文字列オブジェクト | 入力データが存在する場合 | |
| NIL | 入力データが存在しない場合 |
参照先 NewtFgets().
参照元 NVMInitExGlobalFns().
関数の呼び出しグラフ:

1.5.0