-
Notifications
You must be signed in to change notification settings - Fork 631
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 #1934 from masatake/cleanup-inclusions-2
Defining interface for parsers (part 3 of N)
- Loading branch information
Showing
51 changed files
with
360 additions
and
222 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
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
File renamed without changes.
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
#include "general.h" | ||
#include "options_p.h" | ||
#include "routines.h" | ||
|
||
|
||
struct interactiveModeArgs | ||
|
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,26 @@ | ||
/* | ||
* Copyright (c) 1998-2002, 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. | ||
* | ||
* main part private interface to keyword.c | ||
*/ | ||
#ifndef CTAGS_MAIN_KEYWORD_PRIVATE_H | ||
#define CTAGS_MAIN_KEYWORD_PRIVATE_H | ||
|
||
/* | ||
* INCLUDE FILES | ||
*/ | ||
#include "general.h" /* must always come first */ | ||
#include <stdio.h> | ||
|
||
extern void freeKeywordTable (void); | ||
|
||
extern void dumpKeywordTable (FILE *fp); | ||
|
||
#ifdef DEBUG | ||
extern void printKeywordTable (void); | ||
#endif | ||
|
||
#endif /* CTAGS_MAIN_KEYWORD_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* Copyright (c) 2000-2003, Darren Hiebert | ||
* Copyright (c) 2017, Red Hat, Inc. | ||
* Copyright (c) 2017, Masatake YAMATO | ||
* | ||
* 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. | ||
* | ||
* This module contains functions for applying regular expression matching. | ||
* | ||
* The code for utilizing the Gnu regex package with regards to processing the | ||
* regex option and checking for regex matches was adapted from routines in | ||
* Gnu etags. | ||
*/ | ||
#ifndef CTAGS_MAIN_LREGEX_PRIVATE_H | ||
#define CTAGS_MAIN_LREGEX_PRIVATE_H | ||
|
||
/* | ||
* INCLUDE FILES | ||
*/ | ||
#include "general.h" | ||
#include "lregex.h" | ||
|
||
/* | ||
* DATA DECLARATIONS | ||
*/ | ||
enum regexParserType { | ||
REG_PARSER_SINGLE_LINE, | ||
REG_PARSER_MULTI_LINE, | ||
REG_PARSER_MULTI_TABLE, | ||
}; | ||
|
||
struct lregexControlBlock; | ||
|
||
/* | ||
* FUNCTION PROTOTYPES | ||
*/ | ||
extern struct lregexControlBlock* allocLregexControlBlock (parserDefinition *parser); | ||
extern void freeLregexControlBlock (struct lregexControlBlock* lcb); | ||
|
||
extern void processTagRegexOption (struct lregexControlBlock *lcb, | ||
enum regexParserType, | ||
const char* const parameter); | ||
extern void addTagRegex (struct lregexControlBlock *lcb, const char* const regex, | ||
const char* const name, const char* const kinds, const char* const flags, | ||
bool *disabled); | ||
extern void addTagMultiLineRegex (struct lregexControlBlock *lcb, const char* const regex, | ||
const char* const name, const char* const kinds, const char* const flags, | ||
bool *disabled); | ||
extern void addTagMultiTableRegex(struct lregexControlBlock *lcb, | ||
const char* const table_name, | ||
const char* const regex, | ||
const char* const name, const char* const kinds, const char* const flags, | ||
bool *disabled); | ||
|
||
extern bool matchRegex (struct lregexControlBlock *lcb, const vString* const line); | ||
extern bool hasScopeActionInRegex (struct lregexControlBlock *lcb); | ||
extern void addCallbackRegex (struct lregexControlBlock *lcb, | ||
const char* const regex, | ||
const char* const flags, | ||
const regexCallback callback, | ||
bool *disabled, | ||
void * userData); | ||
extern bool regexNeedsMultilineBuffer (struct lregexControlBlock *lcb); | ||
extern bool matchMultilineRegex (struct lregexControlBlock *lcb, const vString* const allLines); | ||
extern bool matchMultitableRegex (struct lregexControlBlock *lcb, const vString* const allLines); | ||
|
||
extern void notifyRegexInputStart (struct lregexControlBlock *lcb); | ||
extern void notifyRegexInputEnd (struct lregexControlBlock *lcb); | ||
|
||
extern void addRegexTable (struct lregexControlBlock *lcb, const char *name); | ||
extern void extendRegexTable (struct lregexControlBlock *lcb, const char *src, const char *dist); | ||
|
||
extern void printMultitableStatistics (struct lregexControlBlock *lcb, FILE *vfp); | ||
|
||
#endif /* CTAGS_MAIN_LREGEX_PRIVATEH */ |
Oops, something went wrong.