Skip to content

Commit

Permalink
[build/cpython-defs] Update method definitions
Browse files Browse the repository at this point in the history
Our spec tests are running against the OVM tarball now.
  • Loading branch information
Andy C committed Jan 12, 2024
1 parent e07042a commit 3cac387
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1 deletion.
Expand Up @@ -6,6 +6,8 @@ static PyMethodDef I_methods[] = {
{"isatty", (PyCFunction)IO_isatty, METH_NOARGS},
{"read", (PyCFunction)IO_read, METH_VARARGS},
{"readline", (PyCFunction)IO_readline, METH_VARARGS},
{"reset", (PyCFunction)IO_reset, METH_NOARGS},
{"truncate", (PyCFunction)IO_truncate, METH_VARARGS},
{"close", (PyCFunction)I_close, METH_NOARGS},
{0},
};
Expand Up @@ -6,6 +6,8 @@ static PyMethodDef O_methods[] = {
{"isatty", (PyCFunction)IO_isatty, METH_NOARGS},
{"read", (PyCFunction)IO_read, METH_VARARGS},
{"readline", (PyCFunction)IO_readline, METH_VARARGS},
{"reset", (PyCFunction)IO_reset, METH_NOARGS},
{"truncate", (PyCFunction)IO_truncate, METH_VARARGS},
{"close", (PyCFunction)O_close, METH_NOARGS},
{"write", (PyCFunction)O_write, METH_VARARGS},
{0},
Expand Down
Expand Up @@ -4,6 +4,7 @@ static PyMethodDef file_methods[] = {
{"readline", (PyCFunction)file_readline, METH_VARARGS},
{"read", (PyCFunction)file_read, METH_VARARGS},
{"write", (PyCFunction)file_write, METH_VARARGS},
{"truncate", (PyCFunction)file_truncate, METH_VARARGS},
{"flush", (PyCFunction)file_flush, METH_NOARGS},
{"close", (PyCFunction)file_close, METH_NOARGS},
{"isatty", (PyCFunction)file_isatty, METH_NOARGS},
Expand Down
Expand Up @@ -12,8 +12,8 @@ static PyMethodDef builtin_methods[] = {
{"id", builtin_id, METH_O},
{"isinstance", builtin_isinstance, METH_VARARGS},
{"len", builtin_len, METH_O},
{"map", builtin_map, METH_VARARGS},
{"max", (PyCFunction)builtin_max, METH_VARARGS | METH_KEYWORDS},
{"min", (PyCFunction)builtin_min, METH_VARARGS | METH_KEYWORDS},
{"open", (PyCFunction)builtin_open, METH_VARARGS | METH_KEYWORDS},
{"ord", builtin_ord, METH_O},
{"print", (PyCFunction)builtin_print, METH_VARARGS | METH_KEYWORDS},
Expand Down
6 changes: 6 additions & 0 deletions build/oil-defs/pyext/fastfunc.c/methods.def
@@ -0,0 +1,6 @@
// pyext/fastfunc.c

static PyMethodDef methods[] = {
{"J8EncodeString", func_J8EncodeString, METH_VARARGS},
{0},
};
1 change: 1 addition & 0 deletions build/oil-defs/pyext/fastlex.c/methods.def
Expand Up @@ -9,6 +9,7 @@ static PyMethodDef methods[] = {
{"MatchBraceRangeToken", fastlex_MatchBraceRangeToken, METH_VARARGS},
{"MatchJ8Token", fastlex_MatchJ8Token, METH_VARARGS},
{"MatchJ8StrToken", fastlex_MatchJ8StrToken, METH_VARARGS},
{"MatchJsonStrToken", fastlex_MatchJsonStrToken, METH_VARARGS},
{"IsValidVarName", fastlex_IsValidVarName, METH_VARARGS},
{"ShouldHijack", fastlex_ShouldHijack, METH_VARARGS},
{"LooksLikeInteger", fastlex_LooksLikeInteger, METH_VARARGS},
Expand Down

0 comments on commit 3cac387

Please sign in to comment.