Data Structures | Macros | Enumerations | Functions | Variables
funcs.c File Reference
#include <float.h>
#include <math.h>
#include "nvim/api/private/helpers.h"
#include "nvim/api/vim.h"
#include "nvim/ascii.h"
#include "nvim/assert.h"
#include "nvim/buffer.h"
#include "nvim/change.h"
#include "nvim/channel.h"
#include "nvim/charset.h"
#include "nvim/context.h"
#include "nvim/cursor.h"
#include "nvim/diff.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
#include "nvim/eval/decode.h"
#include "nvim/eval/encode.h"
#include "nvim/eval/executor.h"
#include "nvim/eval/funcs.h"
#include "nvim/eval/userfunc.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_getln.h"
#include "nvim/file_search.h"
#include "nvim/fileio.h"
#include "nvim/fold.h"
#include "nvim/if_cscope.h"
#include "nvim/indent.h"
#include "nvim/indent_c.h"
#include "nvim/lua/executor.h"
#include "nvim/mark.h"
#include "nvim/memline.h"
#include "nvim/misc1.h"
#include "nvim/mouse.h"
#include "nvim/move.h"
#include "nvim/msgpack_rpc/channel.h"
#include "nvim/msgpack_rpc/server.h"
#include "nvim/ops.h"
#include "nvim/option.h"
#include "nvim/os/dl.h"
#include "nvim/os/input.h"
#include "nvim/os/shell.h"
#include "nvim/path.h"
#include "nvim/popupmnu.h"
#include "nvim/quickfix.h"
#include "nvim/regexp.h"
#include "nvim/screen.h"
#include "nvim/search.h"
#include "nvim/sha256.h"
#include "nvim/sign.h"
#include "nvim/spell.h"
#include "nvim/state.h"
#include "nvim/syntax.h"
#include "nvim/tag.h"
#include "nvim/ui.h"
#include "nvim/undo.h"
#include "nvim/version.h"
#include "nvim/vim.h"

Data Structures

struct  GetListLineCookie
 
struct  sortinfo_T
 struct storing information about current sort More...
 

Macros

#define SP_NOMOVE   0x01
 don't move cursor More...
 
#define SP_REPEAT   0x02
 repeat to find outer pair More...
 
#define SP_RETCOUNT   0x04
 return matchcount More...
 
#define SP_SETPCMARK   0x08
 set previous context mark More...
 
#define SP_START   0x10
 accept match at start position More...
 
#define SP_SUBPAT   0x20
 return nr of matching sub-pattern More...
 
#define SP_END   0x40
 leave cursor at end of match More...
 
#define SP_COLUMN   0x80
 start at cursor column More...
 
#define ITEM_COMPARE_FAIL   999
 

Enumerations

enum  SomeMatchType {
  kSomeMatch, kSomeMatchEnd, kSomeMatchList, kSomeMatchStr,
  kSomeMatchStrPos
}
 Describe data to return from find_some_match() More...
 

Functions

char_uget_function_name (expand_T *xp, int idx)
 
char_uget_expr_name (expand_T *xp, int idx)
 
const VimLFuncDeffind_internal_func (const char *const name) FUNC_ATTR_WARN_UNUSED_RESULT FUNC_ATTR_PURE FUNC_ATTR_NONNULL_ALL
 
buf_Ttv_get_buf (typval_T *tv, int curtab_only)
 
buf_Tget_buf_arg (typval_T *arg)
 
long do_searchpair (char_u *spat, char_u *mpat, char_u *epat, int dir, const typval_T *skip, int flags, pos_T *match_pos, linenr_T lnum_stop, long time_limit)
 
 if (list_arg->v_type!=VAR_LIST)
 
else if (recursive!=0)
 
 if (action_arg->v_type==VAR_UNKNOWN)
 
else if (action_arg->v_type!=VAR_STRING)
 
 if ((*act== 'a'||*act== 'r'||*act== ' '||*act== 'f')&&act[1]==NUL)
 
 if (title_arg->v_type==VAR_UNKNOWN)
 
 if (set_errorlist(wp, l, action,(char_u *) title, d)==OK)
 
void f_string (typval_T *argvars, typval_T *rettv, FunPtr fptr)
 

Variables

static void const char * title = NULL
 
int action = ' '
 
rettv vval v_number = -1
 
dict_Td = NULL
 
typval_Tlist_arg = &args[0]
 
typval_Taction_arg = &args[1]
 
const char *const act = tv_get_string_chk(action_arg)
 
 else
 
 return
 
typval_Ttitle_arg = &args[2]
 
skip_args __pad0__
 
list_T *const l = list_arg->vval.v_list
 

Macro Definition Documentation

#define ITEM_COMPARE_FAIL   999
#define SP_COLUMN   0x80

start at cursor column

#define SP_END   0x40

leave cursor at end of match

#define SP_NOMOVE   0x01

don't move cursor

#define SP_REPEAT   0x02

repeat to find outer pair

#define SP_RETCOUNT   0x04

return matchcount

#define SP_SETPCMARK   0x08

set previous context mark

#define SP_START   0x10

accept match at start position

#define SP_SUBPAT   0x20

return nr of matching sub-pattern

Enumeration Type Documentation

Describe data to return from find_some_match()

Enumerator
kSomeMatch 

Data for match().

kSomeMatchEnd 

Data for matchend().

kSomeMatchList 

Data for matchlist().

kSomeMatchStr 

Data for matchstr().

kSomeMatchStrPos 

Data for matchstrpos().

Function Documentation

long do_searchpair ( char_u spat,
char_u mpat,
char_u epat,
int  dir,
const typval_T skip,
int  flags,
pos_T match_pos,
linenr_T  lnum_stop,
long  time_limit 
)
void f_string ( typval_T argvars,
typval_T rettv,
FunPtr  fptr 
)
const VimLFuncDef* find_internal_func ( const char *const  name)

Find internal function in hash functions

Parameters
[in]nameName of the function.

Returns pointer to the function definition or NULL if not found.

buf_T* get_buf_arg ( typval_T arg)

Get the buffer from "arg" and give an error and return NULL if it is not valid.

char_u* get_expr_name ( expand_T xp,
int  idx 
)

Function given to ExpandGeneric() to obtain the list of internal or user defined variable or function names.

char_u* get_function_name ( expand_T xp,
int  idx 
)

Function given to ExpandGeneric() to obtain the list of internal or user defined function names.

if ( list_arg->v_type!  = VAR_LIST)
else if ( recursive!  = 0)
if ( action_arg->  v_type = VAR_UNKNOWN)
else if ( action_arg->v_type!  = VAR_STRING)
if ( *== ''||*== ''||*== ' '||*== ''f &&  act[1] = NUL)
else if ( title_arg->  v_type = VAR_UNKNOWN)
if ( set_errorlist(wp, l, action,(char_u *) title, d = OK)
buf_T* tv_get_buf ( typval_T tv,
int  curtab_only 
)

Variable Documentation

skip_args __pad0__
const char* const act = tv_get_string_chk(action_arg)
int action = ' '
typval_T* action_arg = &args[1]
dict_T* d = NULL
else
Initial value:
{
EMSG2(_(e_invact), act)
#define _(x)
Definition: gettext.h:20
#define EMSG2(s, p)
Like EMSG, but for messages with one "%s" inside.
Definition: message.h:43
const char *const act
Definition: funcs.c:8110
typval_T* list_arg = &args[0]
return
void const char* title = NULL
typval_T* title_arg = &args[2]
rettv vval v_number = -1