#include <TCollection_AsciiString.hxx>
#include <EDL_FunctionSignature.hxx>
#include <EDL_ProcedureSignature.hxx>
-
+#include <Standard_PCharacter.hxx>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <EDL.tab.h>
+
#ifdef WNT
# include <windows.h>
#endif
if (fic) {
edlstring edlstr;
- edlstr.str = aFile;
+ edlstr.str = (char *)aFile;
edlstr.length = strlen(aFile);
EDL_SetCurrentFile(edlstr);
EDLin = fic;
EDL_Error EDL_Interpretor::AddFile(const Standard_CString aVariable, const Standard_CString filename)
{
TCollection_AsciiString anAscName(aVariable);
- char *realFilename = filename;
+ char *realFilename = (char *)filename;
// we can open a file with a name defined by a string or a variable
//
TCollection_AsciiString aFileName(filename);
if (mySymbolTable.IsBound(aFileName)) {
- realFilename = mySymbolTable.Find(aFileName).GetValue();
+ realFilename = (char *)mySymbolTable.Find(aFileName).GetValue();
}
else {
EDL::PrintError(EDL_VARNOTFOUND,filename);
myTemplateTable.ChangeFind(anAscName).Eval(myVariableList);
Handle(TColStd_HSequenceOfAsciiString) aNewResult = myTemplateTable.Find(anAscName).GetEval();
- Standard_CString aValue;
+ Standard_PCharacter aValue;
Standard_Integer nbByte = 0,
i;
for (i = 1; i <= aNewResult->Length(); i++) {
nbByte = nbByte + aNewResult->Value(i).Length();
}
- aValue = (Standard_CString) Standard::Allocate(nbByte + 1);
+ aValue = (Standard_PCharacter) Standard::Allocate(nbByte + 1);
aValue[0] = '\0';
Standard_Integer idx=0;
for (i = 1; i <= aNewResult->Length(); i++) {
}
else {
EDL_Library aLib(aLibrary);
- char *aStatus = aLib.GetStatus();
+ char *aStatus = (char *)aLib.GetStatus();
if (aStatus != NULL) {
EDL::PrintError(EDL_LIBNOTOPEN,aStatus);
void edl_unset_pvar(const edlstring varname)
{
if (!edl_must_execute()) return;
- char *aString = GlobalInter->GetVariable(varname.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->RemoveVariable(aString);
}
// we need to erase the quote
//
- char *aString = GlobalInter->GetVariable(value.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(value.str).GetValue();
GlobalInter->AddVariable(varname.str,aString);
}
// we need to erase the quote
//
- char *aVarPointer = GlobalInter->GetVariable(value.str).GetValue();
- char *aString = GlobalInter->GetVariable(aVarPointer).GetValue();
+ char *aVarPointer = (char *)GlobalInter->GetVariable(value.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(aVarPointer).GetValue();
GlobalInter->AddVariable(varname.str,aString);
}
void edl_set_pvar(const edlstring varname, const edlstring value)
{
if (!edl_must_execute()) return;
- char *aString = GlobalInter->GetVariable(varname.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->AddVariable(aString,value.str);
}
// we need to erase the quote
//
- char *aString = GlobalInter->GetVariable(value.str).GetValue();
- char *aString2 = GlobalInter->GetVariable(varname.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(value.str).GetValue();
+ char *aString2 =(char *) GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->AddVariable(aString2,aString);
}
// we need to erase the quote
//
- char *aVarPointer = GlobalInter->GetVariable(value.str).GetValue();
- char *aString = GlobalInter->GetVariable(aVarPointer).GetValue();
- char *aString2 = GlobalInter->GetVariable(varname.str).GetValue();
+ char *aVarPointer = (char *)GlobalInter->GetVariable(value.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(aVarPointer).GetValue();
+ char *aString2 = (char *)GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->AddVariable(aString2,aString);
}
return;
}
- char *aString1 = GlobalInter->GetVariable(varname.str).GetValue(),
+ char *aString1 = (char *)GlobalInter->GetVariable(varname.str).GetValue(),
*aString2 = value.str;
Standard_Integer aResult = strcmp(aString1,aString2);
}
const TCollection_AsciiString& asciistr = GlobalInter->GetPrintList();
edlstring astr;
- astr.str = asciistr.ToCString();
+ astr.str = (char *)asciistr.ToCString();
astr.length = asciistr.Length();
edl_set_var(varname,astr);
if (varname.str) Standard::Free((void*&)varname.str);
// we need to erase the quote
//
- char* aString = GlobalInter->GetVariable(varname.str).GetValue();
+ char* aString = (char *)GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->GetPrintList().AssignCat(aString);
if (varname.str) Standard::Free((void*&)varname.str);
// we need to erase the quote
//
- char *aString = GlobalInter->GetVariable(varname.str).GetValue();
+ char *aString = (char *)GlobalInter->GetVariable(varname.str).GetValue();
GlobalInter->GetPrintList().AssignCat(aString);
}