Macros | Enumerations | Functions
if_cscope.c File Reference
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <inttypes.h>
#include <fcntl.h>
#include "nvim/buffer.h"
#include "nvim/ascii.h"
#include "nvim/if_cscope.h"
#include "nvim/charset.h"
#include "nvim/fileio.h"
#include "nvim/message.h"
#include "nvim/memory.h"
#include "nvim/os/time.h"
#include "nvim/path.h"
#include "nvim/quickfix.h"
#include "nvim/strings.h"
#include "nvim/tag.h"
#include "nvim/os/os.h"
#include "nvim/os/input.h"
#include "nvim/event/stream.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "nvim/if_cscope_defs.h"

Macros

#define CSREAD_BUFSIZE   2048
 

Enumerations

enum  { EXP_CSCOPE_SUBCMD, EXP_SCSCOPE_SUBCMD, EXP_CSCOPE_FIND, EXP_CSCOPE_KILL }
 

Functions

char_uget_cscope_name (expand_T *xp, int idx)
 
void set_context_in_cscope_cmd (expand_T *xp, const char *arg, cmdidx_T cmdidx)
 
void ex_cscope (exarg_T *eap)
 Implementation of ":cscope" and ":lcscope". More...
 
void ex_scscope (exarg_T *eap)
 Implementation of ":scscope". Same as ex_cscope(), but splits window, too. More...
 
void ex_cstag (exarg_T *eap)
 Implementation of ":cstag". More...
 
int cs_fgets (char_u *buf, int size)
 
void cs_free_tags (void)
 Called only from do_tag(), when popping the tag stack. More...
 
void cs_print_tags (void)
 Called from do_tag(). More...
 
int cs_connection (int num, char_u *dbpath, char_u *ppath)
 
void cs_end (void)
 Only called when VIM exits to quit any cscope sessions. More...
 

Macro Definition Documentation

#define CSREAD_BUFSIZE   2048

Enumeration Type Documentation

anonymous enum
Enumerator
EXP_CSCOPE_SUBCMD 
EXP_SCSCOPE_SUBCMD 
EXP_CSCOPE_FIND 
EXP_CSCOPE_KILL 

Function Documentation

int cs_connection ( int  num,
char_u dbpath,
char_u ppath 
)
void cs_end ( void  )

Only called when VIM exits to quit any cscope sessions.

int cs_fgets ( char_u buf,
int  size 
)

This simulates a vim_fgets(), but for cscope, returns the next line from the cscope output. should only be called from find_tags()

Returns
TRUE if eof, FALSE otherwise
void cs_free_tags ( void  )

Called only from do_tag(), when popping the tag stack.

void cs_print_tags ( void  )

Called from do_tag().

void ex_cscope ( exarg_T eap)

Implementation of ":cscope" and ":lcscope".

void ex_cstag ( exarg_T eap)

Implementation of ":cstag".

void ex_scscope ( exarg_T eap)

Implementation of ":scscope". Same as ex_cscope(), but splits window, too.

char_u* get_cscope_name ( expand_T xp,
int  idx 
)
void set_context_in_cscope_cmd ( expand_T xp,
const char *  arg,
cmdidx_T  cmdidx 
)