33#include "Python.h"
44#include "Python-ast.h"
55
6+ static int marshal_write_mod (PyObject * * , int * , mod_ty );
7+ static int marshal_write_stmt (PyObject * * , int * , stmt_ty );
8+ static int marshal_write_expr (PyObject * * , int * , expr_ty );
9+ static int marshal_write_expr_context (PyObject * * , int * , expr_context_ty );
10+ static int marshal_write_slice (PyObject * * , int * , slice_ty );
11+ static int marshal_write_boolop (PyObject * * , int * , boolop_ty );
12+ static int marshal_write_operator (PyObject * * , int * , operator_ty );
13+ static int marshal_write_unaryop (PyObject * * , int * , unaryop_ty );
14+ static int marshal_write_cmpop (PyObject * * , int * , cmpop_ty );
15+ static int marshal_write_comprehension (PyObject * * , int * , comprehension_ty );
16+ static int marshal_write_excepthandler (PyObject * * , int * , excepthandler_ty );
17+ static int marshal_write_arguments (PyObject * * , int * , arguments_ty );
18+ static int marshal_write_keyword (PyObject * * , int * , keyword_ty );
19+ static int marshal_write_alias (PyObject * * , int * , alias_ty );
620mod_ty
721Module (asdl_seq * body )
822{
@@ -1519,7 +1533,7 @@ free_alias(alias_ty o)
15191533 free (o );
15201534}
15211535
1522- int
1536+ static int
15231537marshal_write_mod (PyObject * * buf , int * off , mod_ty o )
15241538{
15251539 int i ;
@@ -1557,7 +1571,7 @@ marshal_write_mod(PyObject **buf, int *off, mod_ty o)
15571571 return 1 ;
15581572}
15591573
1560- int
1574+ static int
15611575marshal_write_stmt (PyObject * * buf , int * off , stmt_ty o )
15621576{
15631577 int i ;
@@ -1818,7 +1832,7 @@ marshal_write_stmt(PyObject **buf, int *off, stmt_ty o)
18181832 return 1 ;
18191833}
18201834
1821- int
1835+ static int
18221836marshal_write_expr (PyObject * * buf , int * off , expr_ty o )
18231837{
18241838 int i ;
@@ -1989,7 +2003,7 @@ marshal_write_expr(PyObject **buf, int *off, expr_ty o)
19892003 return 1 ;
19902004}
19912005
1992- int
2006+ static int
19932007marshal_write_expr_context (PyObject * * buf , int * off , expr_context_ty o )
19942008{
19952009 switch (o ) {
@@ -2015,7 +2029,7 @@ marshal_write_expr_context(PyObject **buf, int *off, expr_context_ty o)
20152029 return 1 ;
20162030}
20172031
2018- int
2032+ static int
20192033marshal_write_slice (PyObject * * buf , int * off , slice_ty o )
20202034{
20212035 int i ;
@@ -2063,7 +2077,7 @@ marshal_write_slice(PyObject **buf, int *off, slice_ty o)
20632077 return 1 ;
20642078}
20652079
2066- int
2080+ static int
20672081marshal_write_boolop (PyObject * * buf , int * off , boolop_ty o )
20682082{
20692083 switch (o ) {
@@ -2077,7 +2091,7 @@ marshal_write_boolop(PyObject **buf, int *off, boolop_ty o)
20772091 return 1 ;
20782092}
20792093
2080- int
2094+ static int
20812095marshal_write_operator (PyObject * * buf , int * off , operator_ty o )
20822096{
20832097 switch (o ) {
@@ -2121,7 +2135,7 @@ marshal_write_operator(PyObject **buf, int *off, operator_ty o)
21212135 return 1 ;
21222136}
21232137
2124- int
2138+ static int
21252139marshal_write_unaryop (PyObject * * buf , int * off , unaryop_ty o )
21262140{
21272141 switch (o ) {
@@ -2141,7 +2155,7 @@ marshal_write_unaryop(PyObject **buf, int *off, unaryop_ty o)
21412155 return 1 ;
21422156}
21432157
2144- int
2158+ static int
21452159marshal_write_cmpop (PyObject * * buf , int * off , cmpop_ty o )
21462160{
21472161 switch (o ) {
@@ -2179,7 +2193,7 @@ marshal_write_cmpop(PyObject **buf, int *off, cmpop_ty o)
21792193 return 1 ;
21802194}
21812195
2182- int
2196+ static int
21832197marshal_write_comprehension (PyObject * * buf , int * off , comprehension_ty o )
21842198{
21852199 int i ;
@@ -2193,7 +2207,7 @@ marshal_write_comprehension(PyObject **buf, int *off, comprehension_ty o)
21932207 return 1 ;
21942208}
21952209
2196- int
2210+ static int
21972211marshal_write_excepthandler (PyObject * * buf , int * off , excepthandler_ty o )
21982212{
21992213 int i ;
@@ -2219,7 +2233,7 @@ marshal_write_excepthandler(PyObject **buf, int *off, excepthandler_ty o)
22192233 return 1 ;
22202234}
22212235
2222- int
2236+ static int
22232237marshal_write_arguments (PyObject * * buf , int * off , arguments_ty o )
22242238{
22252239 int i ;
@@ -2250,15 +2264,15 @@ marshal_write_arguments(PyObject **buf, int *off, arguments_ty o)
22502264 return 1 ;
22512265}
22522266
2253- int
2267+ static int
22542268marshal_write_keyword (PyObject * * buf , int * off , keyword_ty o )
22552269{
22562270 marshal_write_identifier (buf , off , o -> arg );
22572271 marshal_write_expr (buf , off , o -> value );
22582272 return 1 ;
22592273}
22602274
2261- int
2275+ static int
22622276marshal_write_alias (PyObject * * buf , int * off , alias_ty o )
22632277{
22642278 marshal_write_identifier (buf , off , o -> name );
0 commit comments