int plugin_list_size = sizeof(plugin_list) / sizeof(molfile_plugin_t**);
if (plugno==NULL || plugin_no<0){
PyErr_Format(PyExc_IOError,"[%d] Error: molfile plugin handle no should be given, be positive value and should not exceed the list length'%d'. You set '%d'",pluginNOINIT,plugin_list_size,plugin_no);
PyErr_Format(PyExc_IOError, "Error: molfile plugin handle no should be given, be positive value and should not exceed the list length'%d'. You set '%d'", plugin_list_size, plugin_no);
return 0;
}
plugin = plugin_list[plugin_no];
if(plugin==NULL || !plugin->open_file_read){
PyErr_Format(PyExc_IOError,"[%d] Error: molfile plugin '%d' is not initialized.",pluginNOINIT,plugin_no);
PyErr_Format(PyExc_IOError, "Error: molfile plugin '%d' is not initialized.", plugin_no);
return 0;
}
if (plugin->read_structure) has_readstructure = 1;
PyErr_Format(PyExc_IOError,"[%d] Error: molfile plugin handle no should be given, be positive value and should not exceed the list length'%d'. You set '%d'",pluginNOINIT,plugin_list_size,plugin_no);
return0;
}
plugin=plugin_list[plugin_no];
if(plugin==NULL||!plugin->open_file_read){
PyErr_Format(PyExc_IOError,"[%d] Error: molfile plugin '%d' is not initialized.",pluginNOINIT,plugin_no);