Data Structures | Macros | Typedefs | Functions | Variables
tag.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/tag.h"
#include "nvim/buffer.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
#include "nvim/ex_cmds.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/if_cscope.h"
#include "nvim/mark.h"
#include "nvim/mbyte.h"
#include "nvim/message.h"
#include "nvim/misc1.h"
#include "nvim/file_search.h"
#include "nvim/garray.h"
#include "nvim/memory.h"
#include "nvim/move.h"
#include "nvim/option.h"
#include "nvim/os_unix.h"
#include "nvim/path.h"
#include "nvim/quickfix.h"
#include "nvim/regexp.h"
#include "nvim/screen.h"
#include "nvim/search.h"
#include "nvim/strings.h"
#include "nvim/ui.h"
#include "nvim/window.h"
#include "nvim/os/os.h"
#include "nvim/os/time.h"
#include "nvim/os/input.h"

Data Structures

struct  tag_pointers
 
struct  pat_T
 

Macros

#define MT_ST_CUR   0
 
#define MT_GL_CUR   1
 
#define MT_GL_OTH   2
 
#define MT_ST_OTH   3
 
#define MT_IC_OFF   4
 
#define MT_RE_OFF   8
 
#define MT_MASK   7
 
#define MT_COUNT   16
 
#define NOTAGFILE   99 /* return value for jumpto_tag */
 
#define TAG_SEP   0x02
 
#define ML_EXTRA   3
 

Typedefs

typedef struct tag_pointers tagptrs_T
 

Functions

int do_tag (char_u *tag, int type, int count, int forceit, int verbose)
 
void tag_freematch (void)
 
void do_tags (exarg_T *eap)
 
int find_tags (char_u *pat, int *num_matches, char_u ***matchesp, int flags, int mincount, char_u *buf_ffname)
 
int get_tagfname (tagname_T *tnp, int first, char_u *buf)
 
void tagname_free (tagname_T *tnp)
 
int expand_tags (int tagnames, char_u *pat, int *num_file, char_u ***file)
 
 if (tv_dict_find(dict, field_name,-1)!=NULL)
 
 if (start!=NULL)
 
 xfree (buf)
 
int get_tags (list_T *list, char_u *pat, char_u *buf_fname)
 
void get_tagstack (win_T *wp, dict_T *retdict)
 
int set_tagstack (win_T *wp, dict_T *d, int action)
 

Variables

static int int retval
 
char_ubuf = xmalloc(MAXPATHL)
 

Macro Definition Documentation

#define ML_EXTRA   3
#define MT_COUNT   16
#define MT_GL_CUR   1
#define MT_GL_OTH   2
#define MT_IC_OFF   4
#define MT_MASK   7
#define MT_RE_OFF   8
#define MT_ST_CUR   0
#define MT_ST_OTH   3
#define NOTAGFILE   99 /* return value for jumpto_tag */
#define TAG_SEP   0x02

Typedef Documentation

typedef struct tag_pointers tagptrs_T

Function Documentation

int do_tag ( char_u tag,
int  type,
int  count,
int  forceit,
int  verbose 
)
void do_tags ( exarg_T eap)
int expand_tags ( int  tagnames,
char_u pat,
int *  num_file,
char_u ***  file 
)
int find_tags ( char_u pat,
int *  num_matches,
char_u ***  matchesp,
int  flags,
int  mincount,
char_u buf_ffname 
)
int get_tagfname ( tagname_T tnp,
int  first,
char_u buf 
)
int get_tags ( list_T list,
char_u pat,
char_u buf_fname 
)

Add the tags matching the specified pattern "pat" to the list "list" as a dictionary. Use "buf_fname" for priority, unless NULL.

void get_tagstack ( win_T wp,
dict_T retdict 
)
if ( tv_dict_find(dict, field_name,-1)!  = NULL)
if ( start!  = NULL)
int set_tagstack ( win_T wp,
dict_T d,
int  action 
)
void tag_freematch ( void  )
void tagname_free ( tagname_T tnp)
xfree ( buf  )

Variable Documentation

buf[len] = xmalloc(MAXPATHL)
return retval
Initial value:
{
int len = 0
int len
Definition: helpers.c:1461