From 7cde43ea0abf2022a0c800c7af1d5f1ec2033bea Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 14 Nov 2009 15:49:21 -0800 Subject: Renamed upb_msg_fielddef -> upb_fielddef, upb_enum -> upb_enumdef. --- lang_ext/python/pb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lang_ext/python') diff --git a/lang_ext/python/pb.c b/lang_ext/python/pb.c index 634b397..2c63184 100644 --- a/lang_ext/python/pb.c +++ b/lang_ext/python/pb.c @@ -60,7 +60,7 @@ typedef struct { typedef struct { PyObject_HEAD; PyUpb_PbMsg *msg; - struct upb_msg_fielddef *f; + struct upb_fielddef *f; PyUpb_PbBoundFieldOpCode code; } PyUpb_PbBoundFieldOp; @@ -299,7 +299,7 @@ PyObject* fieldop_call(PyObject *callable, PyObject *args, PyObject *kw) PyUpb_PbMsg *pymsg = op->msg; struct upb_mm_ref *msgref = &(pymsg->ref); struct upb_msg *msg = pymsg->ref.p.msg; - struct upb_msg_fielddef *f = op->f; + struct upb_fielddef *f = op->f; union upb_value_ptr p = upb_msg_getptr(msg, f); switch(op->code) { case OP_HAS: @@ -654,7 +654,7 @@ static bool ends_with(struct upb_string *str, struct upb_string *suffix, } } -PyObject *PyUpb_NewPbBoundFieldOp(PyUpb_PbMsg *msgobj, struct upb_msg_fielddef *f, +PyObject *PyUpb_NewPbBoundFieldOp(PyUpb_PbMsg *msgobj, struct upb_fielddef *f, PyUpb_PbBoundFieldOpCode code) { /* Type check that this operation on a field of this type makes sense. */ @@ -750,7 +750,7 @@ PyObject* msg_getattro(PyObject *obj, PyObject *attr_name) opcode = OP_GET; field_name = str; } - struct upb_msg_fielddef *f = upb_msg_fieldbyname(def, &field_name); + struct upb_fielddef *f = upb_msg_fieldbyname(def, &field_name); if(f) { PyObject *op = PyUpb_NewPbBoundFieldOp(msgobj, f, opcode); if(op) return op; -- cgit v1.2.3