lib/widget/input_complete.c: minor refactoring and optimization.
[midnight-commander.git] / src / editor / etags.h
blobbe71b3a27a7f4b76abe2bbae6ab7c579394591ad
1 #ifndef MC__EDIT_ETAGS_H
2 #define MC__EDIT_ETAGS_H 1
4 #include <sys/types.h> /* size_t */
5 #include "lib/global.h" /* include <glib.h> */
7 /*** typedefs(not structures) and defined constants **********************************************/
9 #define MAX_WIDTH_DEF_DIALOG 60 /* max width def dialog */
10 #define MAX_DEFINITIONS 60 /* count found entries show */
11 #define SHORT_DEF_LEN 30
12 #define LONG_DEF_LEN 40
13 #define LINE_DEF_LEN 16
15 /*** enums ***************************************************************************************/
17 /*** structures declarations (and typedefs of structures)*****************************************/
19 typedef struct etags_hash_struct
21 size_t filename_len;
22 char *fullpath;
23 char *filename;
24 char *short_define;
25 long line;
26 } etags_hash_t;
28 /*** global variables defined in .c file *********************************************************/
30 /*** declarations of public functions ************************************************************/
33 int etags_set_definition_hash (const char *tagfile, const char *start_path,
34 const char *match_func, etags_hash_t * def_hash);
36 /*** inline functions ****************************************************************************/
37 #endif /* MC__EDIT_ETAGS_H */