geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

entry_private.c
Go to the documentation of this file.
1/*
2* Copyright (c) 2017, Red Hat, Inc.
3* Copyright (c) 2017, Masatake YAMATO
4*
5* This source code is released for free distribution under the terms of the
6* GNU General Public License version 2 or (at your option) any later version.
7*
8* main part private interface to entry.c
9*/
10
11#include "general.h"
12#include "entry_p.h"
13#include "parse_p.h"
14
15extern const kindDefinition* getTagKind(const tagEntryInfo *const tag)
16{
17 return getLanguageKind(tag->langType, tag->kindIndex);
18}
19
20extern char getTagKindLetter(const tagEntryInfo *const tag)
21{
23 return kdef->letter;
24}
25
26extern const char* getTagKindName(const tagEntryInfo *const tag)
27{
29 return kdef->name;
30}
31
32extern const roleDefinition* getTagRole(const tagEntryInfo *const tag,
33 int roleIndex)
34{
35 if (roleIndex == ROLE_DEFINITION_INDEX)
36 return NULL;
37 return getLanguageRole(tag->langType, tag->kindIndex, roleIndex);
38}
#define ROLE_DEFINITION_INDEX
Definition: entry.h:90
const kindDefinition * getTagKind(const tagEntryInfo *const tag)
Definition: entry_private.c:15
const char * getTagKindName(const tagEntryInfo *const tag)
Definition: entry_private.c:26
const roleDefinition * getTagRole(const tagEntryInfo *const tag, int roleIndex)
Definition: entry_private.c:32
char getTagKindLetter(const tagEntryInfo *const tag)
Definition: entry_private.c:20
kindDefinition * getLanguageKind(const langType language, int kindIndex)
Definition: parse.c:317
roleDefinition * getLanguageRole(const langType language, int kindIndex, int roleIndex)
Definition: parse.c:362
#define NULL
Definition: rbtree.h:150
char letter
Definition: kind.h:73
char * name
Definition: kind.h:74
int kindIndex
Definition: entry.h:64
langType langType
Definition: entry.h:61