Ninja
Public Member Functions | Private Attributes | List of all members
LineReader Struct Reference

Public Member Functions

 LineReader (FILE *file)
 
bool ReadLine (char **line_start, char **line_end)
 

Private Attributes

char buf_ [256<< 10]
 
char * buf_end_
 
FILE * file_
 
char * line_end_
 
char * line_start_
 

Detailed Description

Definition at line 210 of file build_log.cc.

Constructor & Destructor Documentation

◆ LineReader()

LineReader::LineReader ( FILE *  file)
inlineexplicit

Definition at line 211 of file build_log.cc.

References buf_.

Member Function Documentation

◆ ReadLine()

bool LineReader::ReadLine ( char **  line_start,
char **  line_end 
)
inline

Definition at line 220 of file build_log.cc.

References buf_, buf_end_, file_, line_end_, and line_start_.

Referenced by BuildLog::Load().

Member Data Documentation

◆ buf_

char LineReader::buf_[256<< 10]
private

Definition at line 253 of file build_log.cc.

Referenced by LineReader(), and ReadLine().

◆ buf_end_

char* LineReader::buf_end_
private

Definition at line 254 of file build_log.cc.

Referenced by ReadLine().

◆ file_

FILE* LineReader::file_
private

Definition at line 252 of file build_log.cc.

Referenced by ReadLine().

◆ line_end_

char* LineReader::line_end_
private

Definition at line 258 of file build_log.cc.

Referenced by ReadLine().

◆ line_start_

char* LineReader::line_start_
private

Definition at line 256 of file build_log.cc.

Referenced by ReadLine().


The documentation for this struct was generated from the following file: