mirror of
https://github.com/reactos/CMake.git
synced 2024-12-11 05:14:00 +00:00
7bbaa4283d
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
72 lines
1.7 KiB
C++
72 lines
1.7 KiB
C++
/*============================================================================
|
|
CMake - Cross Platform Makefile Generator
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
See the License for more information.
|
|
============================================================================*/
|
|
#ifndef cmExprParserHelper_h
|
|
#define cmExprParserHelper_h
|
|
|
|
#include "cmStandardIncludes.h"
|
|
|
|
#define YYSTYPE cmExprParserHelper::ParserType
|
|
#define YYSTYPE_IS_DECLARED
|
|
#define YY_EXTRA_TYPE cmExprParserHelper*
|
|
#define YY_DECL int cmExpr_yylex(YYSTYPE* yylvalp, yyscan_t yyscanner)
|
|
|
|
/** \class cmExprParserHelper
|
|
* \brief Helper class for parsing java source files
|
|
*
|
|
* Finds dependencies for java file and list of outputs
|
|
*/
|
|
|
|
class cmMakefile;
|
|
|
|
class cmExprParserHelper
|
|
{
|
|
public:
|
|
typedef struct {
|
|
int Number;
|
|
} ParserType;
|
|
|
|
cmExprParserHelper();
|
|
~cmExprParserHelper();
|
|
|
|
int ParseString(const char* str, int verb);
|
|
|
|
int LexInput(char* buf, int maxlen);
|
|
void Error(const char* str);
|
|
|
|
void SetResult(int value);
|
|
|
|
int GetResult() { return this->Result; }
|
|
|
|
const char* GetError() { return this->ErrorString.c_str(); }
|
|
|
|
private:
|
|
cmStdString::size_type InputBufferPos;
|
|
cmStdString InputBuffer;
|
|
std::vector<char> OutputBuffer;
|
|
int CurrentLine;
|
|
int Verbose;
|
|
|
|
void Print(const char* place, const char* str);
|
|
|
|
void CleanupParser();
|
|
|
|
int Result;
|
|
const char* FileName;
|
|
long FileLine;
|
|
std::string ErrorString;
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|