Skip to content

Commit 83653de

Browse files
committed
removed defunct Python support code (we never implemented the python subset)
1 parent 1769401 commit 83653de

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

frontends/common.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,14 +944,11 @@ void initSpinLexer(int flags);
944944
#define LANG_CFAMILY_CPP 0x21
945945
#define IsCLang(lang) ((lang)>=LANG_CFAMILY_C && (lang)<=LANG_CFAMILY_CPP)
946946

947-
#define LANG_PYTHON_CIRCUS 0x30
948-
#define IsPythonLang(lang) ((lang)==LANG_PYTHON_CIRCUS)
949-
950947
#define LANG_DEFAULT LANG_SPIN_SPIN1
951948
#define LANG_ANY (0xffff)
952949

953950
// language features
954-
#define LangBoolIsOne(lang) (IsCLang(lang)||IsPythonLang(lang))
951+
#define LangBoolIsOne(lang) (IsCLang(lang))
955952
#define LangCaseSensitive(lang) (IsCLang(lang))
956953
#define LangCaseInSensitive(lang) (!LangCaseSensitive(lang))
957954
#define LangStructAutoTypedef(lang) (0 && (lang) == LANG_CFAMILY_CPP)

frontends/types.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Spin to C/C++ translator
3-
* Copyright 2011-2024 Total Spectrum Software Inc.
3+
* Copyright 2011-2025 Total Spectrum Software Inc.
44
*
55
* +--------------------------------------------------------------------
66
* ¦ TERMS OF USE: MIT License
@@ -1416,7 +1416,7 @@ AST *CoerceAssignTypes(AST *line, int kind, AST **astptr, AST *desttype, AST *sr
14161416
}
14171417
}
14181418
// similarly for classes in some languages
1419-
if (IsClassType(srctype) && (IsPointerType(desttype) || !desttype) && ( IsBasicLang(lang) || IsPythonLang(lang) ))
1419+
if (IsClassType(srctype) && (IsPointerType(desttype) || !desttype) && ( IsBasicLang(lang) ))
14201420
{
14211421
srctype = ClassToPointerType(srctype);
14221422
if (!astptr) {

functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ AdjustParameterTypes(AST *paramlist, int lang)
828828
if (param->kind == AST_DECLARE_VAR) {
829829
type = param->left;
830830
if ( (IsArrayType(type) && (IsCLang(lang) || IsBasicLang(lang)))
831-
|| (IsClassType(type) && (IsBasicLang(lang) || IsPythonLang(lang)) )
831+
|| (IsClassType(type) && (IsBasicLang(lang)) )
832832
)
833833
{
834834
type = BaseType(type);

0 commit comments

Comments
 (0)