/* * call-seq: * reader.standalone -> code * * Determine the standalone status of the document being read. * * Return 1 if the document was declared to be standalone, 0 if it was * declared to be not standalone, or -1 if the document did not specify its * standalone status or in case of error. */ static VALUE rxml_reader_standalone(VALUE self) { xmlTextReaderPtr xreader = rxml_text_reader_get(self); return INT2FIX(xmlTextReaderStandalone(xreader)); }
/* * call-seq: * reader.standalone -> code * * Determine the standalone status of the document being read. * * Return 1 if the document was declared to be standalone, 0 if it was * declared to be not standalone, or -1 if the document did not specify its * standalone status or in case of error. */ static VALUE rxml_reader_standalone(VALUE self) { return INT2FIX(xmlTextReaderStandalone(rxml_text_reader_get(self))); }
/* reader:is_standalone() */ static int xmlreader_is_standalone(lua_State *L) { xmlreader xr = check_xmlreader(L, 1); int ret = xmlTextReaderStandalone(xr); BOOL_OR_ERROR(L, ret); }