forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsedContext.h
More file actions
31 lines (25 loc) · 835 Bytes
/
sedContext.h
File metadata and controls
31 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Filename: sedContext.h
// Created by: drose (24Oct00)
//
////////////////////////////////////////////////////////////////////
#ifndef SEDCONTEXT_H
#define SEDCONTEXT_H
#include "ppremake.h"
///////////////////////////////////////////////////////////////////
// Class : SedContext
// Description : This contains the current context of the sed process
// as it is running: the pattern space, the hold space,
// and the current line numbers, etc. It is updated as
// each line is read in and as each command is executed.
////////////////////////////////////////////////////////////////////
class SedContext {
public:
SedContext(ostream &out);
int _line_number;
bool _is_last_line;
string _pattern_space;
string _hold_space;
bool _deleted;
ostream &_out;
};
#endif