ReactOS 0.4.16-dev-306-g647d351
|
#include <stdio.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <winnt.h>
#include <winnls.h>
#include <winreg.h>
#include <winuser.h>
#include <conutils.h>
#include <strsafe.h>
#include "resource.h"
Go to the source code of this file.
Macros | |
#define | FLAG_HELP (1 << 0) |
#define | FLAG_E (1 << 1) |
#define | FLAG_C (1 << 2) |
#define | FLAG_P (1 << 3) |
#define | FLAG_S (1 << 4) |
#define | FLAG_Tn (1 << 5) |
#define | FLAG_PLUSn (1 << 6) |
#define | PROMPT_PERCENT (1 << 0) |
#define | PROMPT_LINE_AT (1 << 1) |
#define | PROMPT_OPTIONS (1 << 2) |
#define | PROMPT_LINES (1 << 3) |
#define | IS_TEXT_UNKNOWN_FLAGS_MASK ((7 << 13) | (1 << 11)) |
#define | FileCacheBufferSize 4096 |
Enumerations | |
enum | ENCODING { ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_AUTO = -1 , ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_UTF8BOM = 4 , ENCODING_ANSI = 0 , ENCODING_UTF16LE = 1 , ENCODING_UTF16BE = 2 , ENCODING_UTF8 = 3 , ENCODING_ANSI = 1 , ENCODING_UTF8 , ENCODING_UTF16LE , ENCODING_UTF16BE } |
Functions | |
static BOOL | IsBlankLine (IN PCWCH line, IN DWORD cch) |
static BOOL __stdcall | MorePagerLine (IN OUT PCON_PAGER Pager, IN PCWCH line, IN DWORD cch) |
static BOOL __stdcall | PagePrompt (PCON_PAGER Pager, DWORD Done, DWORD Total) |
static BOOL | IsDataUnicode (IN PVOID Buffer, IN DWORD BufferSize, OUT ENCODING *Encoding OPTIONAL, OUT PDWORD SkipBytes OPTIONAL) |
static BOOL | FileGetString (IN HANDLE hFile, IN ENCODING Encoding, IN OUT PVOID pCacheBuffer, IN DWORD CacheBufferLength, IN OUT PWCHAR *pBuffer, IN OUT PDWORD pnBufferLength, OUT PDWORD pdwReadBytes OPTIONAL, OUT PDWORD pdwReadChars OPTIONAL) |
static VOID | LoadRegistrySettings (HKEY hKeyRoot) |
static BOOL | IsFlag (PCWSTR param) |
static BOOL | ParseArgument (PCWSTR arg, BOOL *pbHasFiles) |
static BOOL | ParseMoreVariable (BOOL *pbHasFiles) |
int | wmain (int argc, WCHAR *argv[]) |
Variables | |
DWORD | dwFileSize |
DWORD | dwSumReadBytes |
DWORD | dwSumReadChars |
HANDLE | hFile = INVALID_HANDLE_VALUE |
HANDLE | hStdIn |
HANDLE | hStdOut |
HANDLE | hKeyboard |
BOOL | bEnableExtensions = TRUE |
static DWORD | s_dwFlags = 0 |
static LONG | s_nTabWidth = 8 |
static DWORD | s_nNextLineNo = 0 |
static BOOL | s_bPrevLineIsBlank = FALSE |
static WORD | s_fPrompt = 0 |
static BOOL | s_bDoNextFile = FALSE |
#define FileCacheBufferSize 4096 |
#define IS_TEXT_UNKNOWN_FLAGS_MASK ((7 << 13) | (1 << 11)) |
Definition at line 492 of file more.c.
|
static |
Definition at line 653 of file more.c.
Referenced by wmain().
Definition at line 77 of file more.c.
Referenced by MorePagerLine().
|
static |
Definition at line 501 of file more.c.
Referenced by wmain().
Definition at line 808 of file more.c.
Referenced by ParseArgument(), and wmain().
Definition at line 768 of file more.c.
Referenced by wmain().
Definition at line 106 of file more.c.
Referenced by wmain().
|
static |
Definition at line 160 of file more.c.
Referenced by ConOutResPaging(), ConPrintfVPaging(), ConPutsPaging(), ConResPaging(), ConResPagingEx(), ConWritePaging(), and wmain().
Definition at line 828 of file more.c.
Referenced by ParseMoreVariable(), and wmain().
Definition at line 908 of file more.c.
Referenced by wmain().
Definition at line 941 of file more.c.
Definition at line 53 of file more.c.
Referenced by Batch(), cmd_call(), cmd_chdir(), cmd_date(), cmd_endlocal(), cmd_goto(), cmd_setlocal(), cmd_time(), CommandExit(), ExecuteFor(), ExecuteIf(), LoadRegistrySettings(), ParseFor(), ParseIf(), SetRootPath(), and wmain().
DWORD dwFileSize |
Definition at line 40 of file more.c.
Referenced by create_stream(), DoTypeFile(), get_best_icon_file_entry(), get_best_icon_file_offset(), LoadCodePageData(), LoadTextFileToEdit(), MemStreamFromFile(), NLS_ReadFile(), PagePrompt(), PROFILE_Load(), and wmain().
DWORD dwSumReadBytes |
Definition at line 41 of file more.c.
Referenced by PagePrompt(), and wmain().
DWORD dwSumReadChars |
Definition at line 41 of file more.c.
Referenced by PagePrompt(), and wmain().
HANDLE hStdIn |
Definition at line 49 of file more.c.
Referenced by ConsolePager(), doChild(), InputChar(), and wmain().
HANDLE hStdOut |
Definition at line 49 of file more.c.
Referenced by ConsolePager(), doChild(), and wmain().
Definition at line 75 of file more.c.
Referenced by PagePrompt(), and wmain().
Definition at line 73 of file more.c.
Referenced by MorePagerLine(), and wmain().
|
static |
Definition at line 70 of file more.c.
Referenced by MorePagerLine(), PagePrompt(), ParseArgument(), and wmain().
|
static |
Definition at line 74 of file more.c.
Referenced by PagePrompt(), and wmain().
|
static |
Definition at line 72 of file more.c.
Referenced by MorePagerLine(), PagePrompt(), ParseArgument(), and wmain().
|
static |
Definition at line 71 of file more.c.
Referenced by ParseArgument(), and wmain().