On Tue, 10 Jun 2008 13:10:30 +0100 Nick Treleaven nick.treleaven@btinternet.com wrote:
- The document functions could take/return a GeanyDocument pointer
instead of a document index, which would avoid the use of: documents[idx]-> being repeated all over the code base when doc-> is much neater.
I forgot to say, it would also mean much neater checks for an invalid document, just doc != NULL instead of DOC_IDX_VALID(idx) in most cases after using p_document->get_current().
Regards, Nick