Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: xfa/fxfa/fm2js/xfa_lexer.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fmparse.cpp ('k') | xfa/fxfa/fm2js/xfa_lexer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXFA_FM2JS_XFA_LEXER_H_ 7 #ifndef XFA_FXFA_FM2JS_XFA_LEXER_H_
8 #define XFA_FXFA_FM2JS_XFA_LEXER_H_ 8 #define XFA_FXFA_FM2JS_XFA_LEXER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void Comment(const FX_WCHAR* p, const FX_WCHAR*& pEnd); 115 void Comment(const FX_WCHAR* p, const FX_WCHAR*& pEnd);
116 XFA_FM_TOKEN IsKeyword(const CFX_WideStringC& p); 116 XFA_FM_TOKEN IsKeyword(const CFX_WideStringC& p);
117 void SetCurrentLine(uint32_t line) { m_uCurrentLine = line; } 117 void SetCurrentLine(uint32_t line) { m_uCurrentLine = line; }
118 void SetToken(CXFA_FMToken* pToken) { 118 void SetToken(CXFA_FMToken* pToken) {
119 if (m_pToken.get() != pToken) 119 if (m_pToken.get() != pToken)
120 m_pToken.reset(pToken); 120 m_pToken.reset(pToken);
121 } 121 }
122 const FX_WCHAR* SavePos() { return m_ptr; } 122 const FX_WCHAR* SavePos() { return m_ptr; }
123 void RestorePos(const FX_WCHAR* pPos) { m_ptr = pPos; } 123 void RestorePos(const FX_WCHAR* pPos) { m_ptr = pPos; }
124 void Error(const FX_WCHAR* msg, ...); 124 void Error(const FX_WCHAR* msg, ...);
125 FX_BOOL HasError() const; 125 bool HasError() const;
126 126
127 protected: 127 protected:
128 CXFA_FMToken* Scan(); 128 CXFA_FMToken* Scan();
129 129
130 const FX_WCHAR* m_ptr; 130 const FX_WCHAR* m_ptr;
131 uint32_t m_uCurrentLine; 131 uint32_t m_uCurrentLine;
132 std::unique_ptr<CXFA_FMToken> m_pToken; 132 std::unique_ptr<CXFA_FMToken> m_pToken;
133 CXFA_FMErrorInfo* m_pErrorInfo; 133 CXFA_FMErrorInfo* m_pErrorInfo;
134 }; 134 };
135 135
136 #endif // XFA_FXFA_FM2JS_XFA_LEXER_H_ 136 #endif // XFA_FXFA_FM2JS_XFA_LEXER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/fm2js/xfa_fmparse.cpp ('k') | xfa/fxfa/fm2js/xfa_lexer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698