added method for unparsing an expression in Fortran or C
This commit is contained in:
@@ -263,6 +263,7 @@ extern void updateTypeAndSymbolInStmts();
|
||||
extern void updateTypesAndSymbolsInBodyOfRoutine();
|
||||
extern PTR_SYMB duplicateSymbolOfRoutine();
|
||||
extern char* UnparseBif_Char();
|
||||
char *UnparseLLnode_Char();
|
||||
extern void UnparseProgram_ThroughAllocBuffer();
|
||||
|
||||
|
||||
|
||||
@@ -266,6 +266,7 @@ extern "C" {
|
||||
void updateTypeAndSymbolInStmts(...);
|
||||
void updateTypesAndSymbolsInBodyOfRoutine(...);
|
||||
char* UnparseBif_Char(...);
|
||||
char *UnparseLLND_Char(...);
|
||||
char *UnparseLLND_Char(...);
|
||||
char *UnparseLLnode_Char(...);
|
||||
void UnparseProgram_ThroughAllocBuffer(...);
|
||||
}
|
||||
|
||||
@@ -382,6 +382,7 @@ public:
|
||||
inline SgExpression ©();
|
||||
inline SgExpression *copyPtr();
|
||||
char *unparse();
|
||||
inline char *unparse(int lang); //0 - Fortran, 1 - C
|
||||
std::string sunparse();
|
||||
inline void unparsestdout();
|
||||
inline SgExpression *IsSymbolInExpression(SgSymbol &symbol);
|
||||
@@ -3819,6 +3820,11 @@ inline char* SgExpression::unparse()
|
||||
{
|
||||
return UnparseLLND_Char(thellnd);
|
||||
}
|
||||
// podd 08.04.24
|
||||
inline char* SgExpression::unparse(int lang) //0 - Fortran, 1 - C
|
||||
{
|
||||
return UnparseLLnode_Char(thellnd,lang);
|
||||
}
|
||||
|
||||
inline void SgExpression::unparsestdout()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user