improved Sage, fixed dedlock

This commit is contained in:
ALEXks
2023-12-06 11:55:35 +03:00
parent f08f46a536
commit 09c7885849
8 changed files with 13592 additions and 13585 deletions

View File

@@ -243,9 +243,9 @@ public:
inline void replaceSymbBySymb(SgSymbol &symb, SgSymbol &newsymb);
inline void replaceSymbBySymbSameName(SgSymbol &symb, SgSymbol &newsymb);
inline void replaceTypeInStmt(SgType &old, SgType &newtype);
char* unparse(int lang = 2); // FORTRAN_LANG
char* unparse(int lang = 0); // FORTRAN_LANG
inline void unparsestdout();
std::string sunparse(int lang = 2); // FORTRAN_LANG
std::string sunparse(int lang = 0); // FORTRAN_LANG
inline char *comments(); //preceding comment lines.
void addComment(const char *com);
void addComment(char *com);
@@ -3684,7 +3684,7 @@ inline char* SgStatement::unparse(int lang)
#ifdef __SPF
checkConsistence();
#endif
return UnparseBif_Char(thebif, lang); //2 - fortran language
return UnparseBif_Char(thebif, lang); //0 - fortran language
}
inline void SgStatement::unparsestdout()

View File

@@ -13,6 +13,7 @@ mkC++extern $SAGEROOT/lib/newsrc/low_level.c > ! $SAGEROOT/lib/include/extcxx_lo
#include <stdlib.h>
#include <stdarg.h> /* ANSI variable argument header */
#include <ctype.h>
#include "compatible.h" /* Make different system compatible... (PHB) */
#ifdef SYS5
@@ -1028,7 +1029,7 @@ void UnparseBif(bif)
/* podd 28.01.07 */ /*change podd 16.12.11*/
char *UnparseBif_Char(bif,lang)
PTR_BFND bif;
int lang; /* 0 - undefined, 1 - C language, 2 - Fortran language */
int lang; /* ForSrc=0 - Fortran language, CSrc=1 - C language */
{
char *s;
/* PTR_BLOB b, bl;
@@ -8932,7 +8933,7 @@ void updateSymbInInterfaceBlock(PTR_BFND block)
}
}
updateSymbolsOfList(PTR_LLND slist, PTR_BFND struct_stmt)
void updateSymbolsOfList(PTR_LLND slist, PTR_BFND struct_stmt)
{
PTR_LLND ll;
PTR_SYMB symb, newsymb;

View File

@@ -12,6 +12,8 @@
#include <stdio.h>
#include <stdlib.h> /* podd 15.03.99*/
#include <ctype.h>
#include "compatible.h" /* Make different system compatible... (PHB) */
#ifdef SYS5
#include <string.h>

View File

@@ -404,6 +404,7 @@ void startioctl();
void endioctl();
void redefine_func_arg_type();
int isResultVar();
int yylex();
/* used by FORTRAN M */
PTR_BFND make_processdo();

File diff suppressed because it is too large Load Diff

View File

@@ -756,6 +756,7 @@ void startioctl();
void endioctl();
void redefine_func_arg_type();
int isResultVar();
int yylex();
/* used by FORTRAN M */
PTR_BFND make_processdo();

View File

@@ -2919,6 +2919,7 @@ private:
#ifdef _MSC_VER
ret = pipe(pipes, 1024 * 1024 * 20, O_BINARY); // 20 MB
#else
fcntl(pipes, F_SETPIPE_SZ, 1024 * 1024 * 20);
ret = pipe(pipes) == -1;
#endif
fd_blocked = (errno == EINTR || errno == EBUSY);

View File

@@ -1,3 +1,3 @@
#pragma once
#define VERSION_SPF "2254"
#define VERSION_SPF "2255"