-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1961 from masatake/cleanup-inclusions
Defining interface for parsers (part 5 of N)
- Loading branch information
Showing
44 changed files
with
418 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* Copyright (c) 1998-2003, Darren Hiebert | ||
* | ||
* This source code is released for free distribution under the terms of the | ||
* GNU General Public License version 2 or (at your option) any later version. | ||
* | ||
*/ | ||
#ifndef CTAGS_MAIN_KIND_PRIVATE_H | ||
#define CTAGS_MAIN_KIND_PRIVATE_H | ||
|
||
/* | ||
* INCLUDE FILES | ||
*/ | ||
|
||
#include "general.h" | ||
#include "vstring.h" | ||
|
||
|
||
/* | ||
* DATA DECLARATIONS | ||
*/ | ||
|
||
struct kindControlBlock; | ||
typedef void (* freeKindDefFunc) (kindDefinition *); | ||
typedef void (* freeRoleDefFunc) (roleDefinition *); | ||
|
||
|
||
/* | ||
* FUNCTION PROTOTYPES | ||
*/ | ||
extern void enableKind (kindDefinition *kind, bool enable); | ||
extern const char *renderRole (const roleDefinition* const def, vString* b); | ||
|
||
extern struct kindControlBlock* allocKindControlBlock (parserDefinition *parser); | ||
extern void freeKindControlBlock (struct kindControlBlock* kcb); | ||
|
||
extern int defineKind (struct kindControlBlock* kcb, kindDefinition *def, | ||
freeKindDefFunc freeKindDef); | ||
extern int defineRole (struct kindControlBlock* kcb, int kindIndex, | ||
roleDefinition *def, freeRoleDefFunc freeRoleDef); | ||
extern bool isRoleEnabled (struct kindControlBlock* kcb, int kindIndex, int roleIndex); | ||
|
||
extern unsigned int countKinds (struct kindControlBlock* kcb); | ||
extern unsigned int countRoles (struct kindControlBlock* kcb, int kindIndex); | ||
extern kindDefinition *getKind (struct kindControlBlock* kcb, int kindIndex); | ||
extern kindDefinition *getKindForLetter (struct kindControlBlock* kcb, int letter); | ||
extern kindDefinition *getKindForName (struct kindControlBlock* kcb, const char* name); | ||
extern roleDefinition* getRole(struct kindControlBlock* kcb, int kindIndex, int roleIndex); | ||
extern roleDefinition* getRoleForName(struct kindControlBlock* kcb, int kindIndex, const char* name); | ||
extern void linkKindDependency (struct kindControlBlock *masterKCB, | ||
struct kindControlBlock *slaveKCB); | ||
|
||
/* for the obsolete --list-kinds option */ | ||
extern void printKind (const kindDefinition* const kind, bool indent); | ||
|
||
/* for --list-kinds-full option. LANGUAGE must be initialized. */ | ||
extern struct colprintTable * kindColprintTableNew (void); | ||
extern void kindColprintAddLanguageLines (struct colprintTable *table, | ||
struct kindControlBlock* kcb); | ||
extern void kindColprintTablePrint (struct colprintTable *table, bool noparser, | ||
bool withListHeader, bool machinable, FILE *fp); | ||
|
||
extern struct colprintTable * roleColprintTableNew (void); | ||
extern void roleColprintAddRoles (struct colprintTable *table, | ||
struct kindControlBlock* kcb, | ||
const char *kindspecs); | ||
extern void roleColprintTablePrint (struct colprintTable *table, bool noparser, | ||
bool withListHeader, bool machinable, FILE *fp); | ||
|
||
#ifdef DEBUG | ||
extern bool doesParserUseKind (struct kindControlBlock* kcb, char letter); | ||
#endif | ||
|
||
#endif /* CTAGS_MAIN_KIND_PRIVATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
* INCLUDE FILES | ||
*/ | ||
#include "general.h" | ||
#include "kind_p.h" | ||
#include "lregex.h" | ||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2016, Masatake YAMATO | ||
* Copyright (c) 2016, Red Hat, Inc. | ||
* | ||
* This source code is released for free distribution under the terms of the | ||
* GNU General Public License version 2 or (at your option) any later version. | ||
* | ||
* Xpath based parer API for the main part | ||
*/ | ||
#ifndef CTAGS_LXPATH_PARSE_PRIVATE_H | ||
#define CTAGS_LXPATH_PARSE_PRIVATE_H | ||
|
||
/* | ||
* INCLUDE FILES | ||
*/ | ||
|
||
#include "general.h" /* must always come first */ | ||
#include "types.h" | ||
|
||
|
||
/* | ||
* FUNCTION PROTOTYPES | ||
*/ | ||
|
||
extern void addTagXpath (const langType language, tagXpathTable *xpathTable); | ||
|
||
#endif /* CTAGS_LXPATH_PARSE_PRIVATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.