[geany/geany] ea51c4: Use Scintilla's buffer directly for parsing tags

Matthew Brush mbrush at xxxxx
Thu Nov 3 06:32:50 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/geany/geany

  Commit: ea51c487d3f1eb0baaed021249b39f775ed6992c
      https://github.com/geany/geany/commit/ea51c487d3f1eb0baaed021249b39f775ed6992c
  Author: Matthew Brush <mbrush at codebrainz.ca>
  Date:   2011-11-02 (Wed, 02 Nov 2011)

  Changed paths:
    M src/document.c

  Log Message:
  -----------
  Use Scintilla's buffer directly for parsing tags


  Commit: ff663c16785a4b49a420e1b9a5977d95f140a242
      https://github.com/geany/geany/commit/ff663c16785a4b49a420e1b9a5977d95f140a242
  Author: Matthew Brush <mbrush at codebrainz.ca>
  Date:   2011-11-02 (Wed, 02 Nov 2011)

  Changed paths:
    M src/document.c

  Log Message:
  -----------
  Remove init_doc_struct() function from documents.c

This function was only used from document_create() and most of this code is
not needed since the memset() and g_new0() calls set the memory to all 0's,
which in this case should suffice to (re)set all the members to 0/NULL/FALSE.

Refactor so all the resetting to defaults code is done in remove_page()
only and then only do the required non-FALSE/NULL initialization in
document_create().

Move the remove_page() prototype to the top of the file and various other
minor changes in remove_page().


Compare: https://github.com/geany/geany/compare/6ceb5ac...ff663c1



More information about the Commits mailing list