Data Structures | Macros | Typedefs | Enumerations
userfunc.h File Reference
#include "nvim/eval/typval.h"
#include "nvim/ex_cmds_defs.h"

Go to the source code of this file.

Data Structures

struct  funcdict_T
 < Structure used by trans_function_name() More...
 
struct  funccal_entry
 
struct  funcexe_T
 Structure passed between functions dealing with function call execution. More...
 

Macros

#define FUNCEXE_INIT
 
#define FUNCARG(fp, j)   ((char_u **)(fp->uf_args.ga_data))[j]
 
#define FUNCLINE(fp, j)   ((char_u **)(fp->uf_lines.ga_data))[j]
 

Typedefs

typedef struct funccal_entry funccal_entry_T
 
typedef int(* ArgvFunc) (int current_argcount, typval_T *argv, int argskip, int called_func_argcount)
 Used in funcexe_T. Returns the new argcount. More...
 

Enumerations

enum  FnameTransError {
  ERROR_UNKNOWN = 0, ERROR_TOOMANY, ERROR_TOOFEW, ERROR_SCRIPT,
  ERROR_DICT, ERROR_NONE, ERROR_OTHER, ERROR_BOTH,
  ERROR_DELETED, ERROR_NOTMETHOD
}
 errors for when calling a function More...
 

Macro Definition Documentation

◆ FUNCARG

#define FUNCARG (   fp,
 
)    ((char_u **)(fp->uf_args.ga_data))[j]

◆ FUNCEXE_INIT

#define FUNCEXE_INIT
Value:
(funcexe_T) { \
.argv_func = NULL, \
.firstline = 0, \
.lastline = 0, \
.doesrange = NULL, \
.evaluate = false, \
.partial = NULL, \
.selfdict = NULL, \
.basetv = NULL, \
}

◆ FUNCLINE

#define FUNCLINE (   fp,
 
)    ((char_u **)(fp->uf_lines.ga_data))[j]

Typedef Documentation

◆ ArgvFunc

typedef int(* ArgvFunc) (int current_argcount, typval_T *argv, int argskip, int called_func_argcount)

Used in funcexe_T. Returns the new argcount.

◆ funccal_entry_T

Enumeration Type Documentation

◆ FnameTransError

errors for when calling a function

Enumerator
ERROR_UNKNOWN 
ERROR_TOOMANY 
ERROR_TOOFEW 
ERROR_SCRIPT 
ERROR_DICT 
ERROR_NONE 
ERROR_OTHER 
ERROR_BOTH 
ERROR_DELETED 
ERROR_NOTMETHOD 
funcexe_T
Structure passed between functions dealing with function call execution.
Definition: userfunc.h:39
NULL
return NULL
Definition: eval.c:10355