/* * call-seq: * code * * Get the error code */ static VALUE code(VALUE self) { xmlErrorPtr error; Data_Get_Struct(self, xmlError, error); return INT2NUM(error->code); }