cdlcompilertoolkit/src/CdlTkSyntaxCheck.cpp
branchRCL_3
changeset 20 8b4f687b7a95
parent 1 b700e12870ca
equal deleted inserted replaced
19:01fc9b7302d1 20:8b4f687b7a95
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009, 2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    85 	{
    85 	{
    86 	ofstream out;
    86 	ofstream out;
    87 	CdlTkUtil::OpenOutput(out, aName);
    87 	CdlTkUtil::OpenOutput(out, aName);
    88 
    88 
    89 	out << "#line 1 \"" << CdlTkUtil::StripPath(iCdl.FileName()) << "\"" << endl;
    89 	out << "#line 1 \"" << CdlTkUtil::StripPath(iCdl.FileName()) << "\"" << endl;
    90 	out << "#include <cdlengine.h>" << endl;
    90 	out << "#include <CdlEngine.h>" << endl;
    91 	const CCdlTkCpp& cpp = iCdl.Cpp();
    91 	const CCdlTkCpp& cpp = iCdl.Cpp();
    92 	for (CCdlTkCpp::const_iterator pCpp = cpp.begin(); pCpp != cpp.end(); ++pCpp)
    92 	for (CCdlTkCpp::const_iterator pCpp = cpp.begin(); pCpp != cpp.end(); ++pCpp)
    93 		{
    93 		{
    94 		out << *pCpp << endl;
    94 		out << *pCpp << endl;
    95 		}
    95 		}