| OLD | NEW |
| 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_ERROR_H_ | 7 #ifndef XFA_FXFA_FM2JS_XFA_ERROR_H_ |
| 8 #define XFA_FXFA_FM2JS_XFA_ERROR_H_ | 8 #define XFA_FXFA_FM2JS_XFA_ERROR_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
| 12 | 12 |
| 13 enum XFA_FM_ERRMSG { | 13 enum XFA_FM_ERRMSG { |
| 14 FMERR_UNSUPPORTED_CHAR, | 14 FMERR_UNSUPPORTED_CHAR, |
| 15 FMERR_BAD_SUFFIX_NUMBER, | 15 FMERR_BAD_SUFFIX_NUMBER, |
| 16 FMERR_INVALIDATE_CHAR, | 16 FMERR_INVALIDATE_CHAR, |
| 17 FMERR_EXPECTED_IDENTIFIER, | 17 FMERR_EXPECTED_IDENTIFIER, |
| 18 FMERR_EXPECTED_TOKEN, | 18 FMERR_EXPECTED_TOKEN, |
| 19 FMERR_EXPECTED_IFEND, | 19 FMERR_EXPECTED_IFEND, |
| 20 FMERR_UNEXPECTED_EXPRESSION, | 20 FMERR_UNEXPECTED_EXPRESSION, |
| 21 FMERR_EXPTECTED_OPERATOR, | 21 FMERR_EXPTECTED_OPERATOR, |
| 22 FMERR_EXPECTED_NON_EMPTY_EXPRESSION, | 22 FMERR_EXPECTED_NON_EMPTY_EXPRESSION, |
| 23 FMERR_MAXIMUM | 23 FMERR_MAXIMUM |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 class CXFA_FMErrorInfo { | 26 class CXFA_FMErrorInfo { |
| 27 public: | 27 public: |
| 28 CXFA_FMErrorInfo() : linenum(0) {} | 28 CXFA_FMErrorInfo() : linenum(0) {} |
| 29 ~CXFA_FMErrorInfo() {} | 29 ~CXFA_FMErrorInfo() {} |
| 30 FX_DWORD linenum; | 30 uint32_t linenum; |
| 31 CFX_WideString message; | 31 CFX_WideString message; |
| 32 }; | 32 }; |
| 33 const FX_WCHAR* XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg); | 33 const FX_WCHAR* XFA_FM_ErrorMsg(XFA_FM_ERRMSG msg); |
| 34 | 34 |
| 35 #endif // XFA_FXFA_FM2JS_XFA_ERROR_H_ | 35 #endif // XFA_FXFA_FM2JS_XFA_ERROR_H_ |
| OLD | NEW |