mirror of
https://github.com/johndoe6345789/typthon.git
synced 2026-04-24 13:45:05 +00:00
Fix incorrect replacements in Py_ to Ty_ renaming
Fixed several macros and constants that should not have been renamed: - _Py_CAST, _Py_NULL, _Py_RVALUE (internal utility macros) - Py_UNUSED (unused parameter macro) - Py_EQ, Py_NE, Py_LT, Py_LE, Py_GT, Py_GE (comparison constants) - Py_RETURN_* macros (NONE, TRUE, FALSE, NOTIMPLEMENTED, RICHCOMPARE) - Py_READONLY, Py_ULL, Py_CONTEXT_SWITCHED - TyGC_Head in generated clinic files Build is still in progress with some remaining issues to resolve. Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -277,7 +277,7 @@ termios_tcsetattr_impl(TyObject *module, int fd, int when, TyObject *term)
|
||||
if (r == -1)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -308,7 +308,7 @@ termios_tcsendbreak_impl(TyObject *module, int fd, int duration)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -335,7 +335,7 @@ termios_tcdrain_impl(TyObject *module, int fd)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -367,7 +367,7 @@ termios_tcflush_impl(TyObject *module, int fd, int queue)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -399,7 +399,7 @@ termios_tcflow_impl(TyObject *module, int fd, int action)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
/*[clinic input]
|
||||
@@ -540,7 +540,7 @@ termios_tcsetwinsize_impl(TyObject *module, int fd, TyObject *winsz)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
#elif defined(TIOCGSIZE) && defined(TIOCSSIZE)
|
||||
struct ttysize s;
|
||||
int r;
|
||||
@@ -569,7 +569,7 @@ termios_tcsetwinsize_impl(TyObject *module, int fd, TyObject *winsz)
|
||||
return TyErr_SetFromErrno(state->TermiosError);
|
||||
}
|
||||
|
||||
Ty_RETURN_NONE;
|
||||
Py_RETURN_NONE;
|
||||
#else
|
||||
TyErr_SetString(TyExc_NotImplementedError,
|
||||
"requires termios.TIOCGWINSZ, termios.TIOCSWINSZ and/or termios.TIOCGSIZE, termios.TIOCSSIZE");
|
||||
|
||||
Reference in New Issue
Block a user