From a4c8592394bc89e5a239167fe37bc8e5e16461e2 Mon Sep 17 00:00:00 2001 From: Andy Chu Date: Mon, 17 Feb 2020 12:08:54 -0800 Subject: [PATCH] [build/cpython-defs] Update method list. --- build/cpython_defs.py | 4 ++-- build/oil-defs/native/fastlex.c/methods.def | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/cpython_defs.py b/build/cpython_defs.py index 88425705d3..fa4de2e8e0 100755 --- a/build/cpython_defs.py +++ b/build/cpython_defs.py @@ -11,7 +11,7 @@ from core.util import log # TODO: Could move these to a place where they don't depend on Oil -from frontend.lex import C, R +from frontend.lexer_def import C, R C_DEF = [ @@ -316,7 +316,7 @@ def __call__(self, rel_path, def_name, method_name): # We don't need top-level next(). The method should be good enough. # iter is a field name if (basename == 'bltinmodule.c' and - method_name in ('compile', 'format', 'next', 'vars', 'iter')): + method_name in ('compile', 'format', 'next', 'vars', 'iter', 'eval')): return False if basename == 'bltinmodule.c': # Get "bootstrapping error" without this. diff --git a/build/oil-defs/native/fastlex.c/methods.def b/build/oil-defs/native/fastlex.c/methods.def index d1dc9162b4..f1f1996499 100644 --- a/build/oil-defs/native/fastlex.c/methods.def +++ b/build/oil-defs/native/fastlex.c/methods.def @@ -7,6 +7,7 @@ static PyMethodDef methods[] = { {"MatchPS1Token", fastlex_MatchPS1Token, METH_VARARGS}, {"MatchHistoryToken", fastlex_MatchHistoryToken, METH_VARARGS}, {"MatchBraceRangeToken", fastlex_MatchBraceRangeToken, METH_VARARGS}, + {"MatchOption", fastlex_MatchOption, METH_VARARGS}, {"IsValidVarName", fastlex_IsValidVarName, METH_VARARGS}, {"IsPlainWord", fastlex_IsPlainWord, METH_VARARGS}, {"ShouldHijack", fastlex_ShouldHijack, METH_VARARGS},