~ubuntu-branches/ubuntu/utopic/geany/utopic

« back to all changes in this revision

Viewing changes to tagmanager/parse.c

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2011-12-10 07:43:26 UTC
  • mfrom: (3.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20111210074326-s8yqbew5i20h33tf
Tags: 0.21-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  - debian/patches/20_use_evince_viewer.patch:
     + use evince as viewer for pdf and dvi files
  - debian/patches/20_use_x_terminal_emulator.patch:
     + use x-terminal-emulator as terminal
  - debian/control
     + Add breaks on geany-plugins-common << 0.20
* Also fixes bugs:
  - Filter for MATLAB/Octave files filters everythign (LP: 885505)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "general.h"    /* must always come first */
16
16
 
17
17
#include <string.h>
 
18
#include <mio/mio.h>
18
19
 
19
20
 
20
21
#include "entry.h"
613
614
                                       const langType language)
614
615
{
615
616
    const unsigned long numTags = TagFile.numTags.added;
616
 
    fpos_t tagFilePosition;
 
617
    MIOPos tagFilePosition;
617
618
    unsigned int passCount = 0;
618
619
    boolean tagFileResized = FALSE;
619
620
 
620
 
    fgetpos (TagFile.fp, &tagFilePosition);
 
621
    mio_getpos (TagFile.mio, &tagFilePosition);
621
622
    while (createTagsForFile (fileName, language, ++passCount))
622
623
    {
623
624
        /*  Restore prior state of tag file.
624
625
         */
625
 
        fsetpos (TagFile.fp, &tagFilePosition);
 
626
        mio_setpos (TagFile.mio, &tagFilePosition);
626
627
        TagFile.numTags.added = numTags;
627
628
        tagFileResized = TRUE;
628
629
    }