~ubuntu-branches/debian/experimental/geany/experimental

« back to all changes in this revision

Viewing changes to tagmanager/parse.c

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (3.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
extern void makeSimpleScopedTag (const vString* const name,
57
57
                                 kindOption* const kinds, const int kind,
58
58
                                 const char* scope, const char *scope2,
59
 
                                 const char *access)
 
59
                                 const char *laccess)
60
60
{
61
61
    if (name != NULL  &&  vStringLength (name) > 0)
62
62
    {
67
67
        e.kind     = kinds [kind].letter;
68
68
        e.extensionFields.scope[0] = scope;
69
69
        e.extensionFields.scope[1] = scope2;
70
 
        e.extensionFields.access = access;
 
70
        e.extensionFields.access = laccess;
71
71
 
72
72
        makeTagEntry (&e);
73
73
    }
86
86
 
87
87
extern const char *getLanguageName (const langType language)
88
88
{
89
 
    //Assert (0 <= language  &&  language < (int) LanguageCount);
 
89
    /*Assert (0 <= language  &&  language < (int) LanguageCount);*/
90
90
    if (language < 0) return NULL;
91
91
        return LanguageTable [language]->name;
92
92
}
156
156
static langType getInterpreterLanguage (const char *const fileName)
157
157
{
158
158
    langType result = LANG_IGNORE;
159
 
    FILE* const fp = fopen (fileName, "r");
 
159
    FILE* const fp = g_fopen (fileName, "r");
160
160
    if (fp != NULL)
161
161
    {
162
162
        vString* const vLine = vStringNew ();
541
541
            for (i = 0  ;  i < lang->kindCount  ;  ++i)
542
542
                printLangugageKindOption (lang->kinds + i);
543
543
#ifdef HAVE_REGEX
544
 
        printRegexKindOptions (language);
 
544
        /*printRegexKindOptions (language);*/ /* unused */
545
545
#endif
546
546
    }
547
547
}