Data Structures | Macros | Typedefs | Enumerations
ex_cmds_defs.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "nvim/normal.h"
#include "nvim/pos.h"
#include "nvim/regexp_defs.h"

Go to the source code of this file.

Data Structures

struct  cmdname
 Structure for command definition. More...
 
struct  eslist_elem
 
struct  cstack_T
 
struct  exarg
 Arguments used for Ex commands. More...
 
struct  expand
 
struct  cmdmod_T
 

Macros

#define EX_RANGE   0x001
 
#define EX_BANG   0x002
 
#define EX_EXTRA   0x004
 
#define EX_XFILE   0x008
 
#define EX_NOSPC   0x010
 
#define EX_DFLALL   0x020
 
#define EX_WHOLEFOLD   0x040
 
#define EX_NEEDARG   0x080
 
#define EX_TRLBAR   0x100
 
#define EX_REGSTR   0x200
 
#define EX_COUNT   0x400
 
#define EX_NOTRLCOM   0x800
 
#define EX_ZEROR   0x1000
 
#define EX_CTRLV   0x2000
 
#define EX_CMDARG   0x4000
 
#define EX_BUFNAME   0x8000
 
#define EX_BUFUNL   0x10000
 
#define EX_ARGOPT   0x20000
 
#define EX_SBOXOK   0x40000
 
#define EX_CMDWIN   0x80000
 
#define EX_MODIFY   0x100000
 
#define EX_FLAGS   0x200000
 
#define EX_FILES   (EX_XFILE | EX_EXTRA)
 
#define EX_FILE1   (EX_FILES | EX_NOSPC)
 
#define EX_WORD1   (EX_EXTRA | EX_NOSPC)
 
#define BAD_REPLACE   '?'
 
#define BAD_KEEP   -1
 
#define BAD_DROP   -2
 
#define cs_rettv   cs_pend.csp_rv
 
#define cs_exception   cs_pend.csp_ex
 
#define FORCE_BIN   1
 
#define FORCE_NOBIN   2
 
#define EXFLAG_LIST   0x01
 
#define EXFLAG_NR   0x02
 
#define EXFLAG_PRINT   0x04
 
#define XP_BS_NONE   0
 
#define XP_BS_ONE   1
 
#define XP_BS_THREE   2
 

Typedefs

typedef struct exarg exarg_T
 
typedef void(* ex_func_T) (exarg_T *eap)
 
typedef char_u *(* LineGetter) (int, void *, int, bool)
 
typedef struct cmdname CommandDefinition
 Structure for command definition. More...
 
typedef struct eslist_elem eslist_T
 

Enumerations

enum  cmd_addr_T {
  ADDR_LINES, ADDR_WINDOWS, ADDR_ARGUMENTS, ADDR_LOADED_BUFFERS,
  ADDR_BUFFERS, ADDR_TABS, ADDR_TABS_RELATIVE, ADDR_QUICKFIX_VALID,
  ADDR_QUICKFIX, ADDR_UNSIGNED, ADDR_OTHER, ADDR_NONE
}
 
enum  { CSTACK_LEN = 50 }
 
enum  { CSL_HAD_LOOP = 1, CSL_HAD_ENDLOOP = 2, CSL_HAD_CONT = 4, CSL_HAD_FINA = 8 }
 

Macro Definition Documentation

◆ BAD_DROP

#define BAD_DROP   -2

◆ BAD_KEEP

#define BAD_KEEP   -1

◆ BAD_REPLACE

#define BAD_REPLACE   '?'

◆ cs_exception

#define cs_exception   cs_pend.csp_ex

◆ cs_rettv

#define cs_rettv   cs_pend.csp_rv

◆ EX_ARGOPT

#define EX_ARGOPT   0x20000

◆ EX_BANG

#define EX_BANG   0x002

◆ EX_BUFNAME

#define EX_BUFNAME   0x8000

◆ EX_BUFUNL

#define EX_BUFUNL   0x10000

◆ EX_CMDARG

#define EX_CMDARG   0x4000

◆ EX_CMDWIN

#define EX_CMDWIN   0x80000

◆ EX_COUNT

#define EX_COUNT   0x400

◆ EX_CTRLV

#define EX_CTRLV   0x2000

◆ EX_DFLALL

#define EX_DFLALL   0x020

◆ EX_EXTRA

#define EX_EXTRA   0x004

◆ EX_FILE1

#define EX_FILE1   (EX_FILES | EX_NOSPC)

◆ EX_FILES

#define EX_FILES   (EX_XFILE | EX_EXTRA)

◆ EX_FLAGS

#define EX_FLAGS   0x200000

◆ EX_MODIFY

#define EX_MODIFY   0x100000

◆ EX_NEEDARG

#define EX_NEEDARG   0x080

◆ EX_NOSPC

#define EX_NOSPC   0x010

◆ EX_NOTRLCOM

#define EX_NOTRLCOM   0x800

◆ EX_RANGE

#define EX_RANGE   0x001

◆ EX_REGSTR

#define EX_REGSTR   0x200

◆ EX_SBOXOK

#define EX_SBOXOK   0x40000

◆ EX_TRLBAR

#define EX_TRLBAR   0x100

◆ EX_WHOLEFOLD

#define EX_WHOLEFOLD   0x040

◆ EX_WORD1

#define EX_WORD1   (EX_EXTRA | EX_NOSPC)

◆ EX_XFILE

#define EX_XFILE   0x008

◆ EX_ZEROR

#define EX_ZEROR   0x1000

◆ EXFLAG_LIST

#define EXFLAG_LIST   0x01

◆ EXFLAG_NR

#define EXFLAG_NR   0x02

◆ EXFLAG_PRINT

#define EXFLAG_PRINT   0x04

◆ FORCE_BIN

#define FORCE_BIN   1

◆ FORCE_NOBIN

#define FORCE_NOBIN   2

◆ XP_BS_NONE

#define XP_BS_NONE   0

◆ XP_BS_ONE

#define XP_BS_ONE   1

◆ XP_BS_THREE

#define XP_BS_THREE   2

Typedef Documentation

◆ CommandDefinition

typedef struct cmdname CommandDefinition

Structure for command definition.

◆ eslist_T

typedef struct eslist_elem eslist_T

◆ ex_func_T

typedef void(* ex_func_T) (exarg_T *eap)

◆ exarg_T

typedef struct exarg exarg_T

◆ LineGetter

typedef char_u*(* LineGetter) (int, void *, int, bool)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CSTACK_LEN 

◆ anonymous enum

anonymous enum
Enumerator
CSL_HAD_LOOP 
CSL_HAD_ENDLOOP 
CSL_HAD_CONT 
CSL_HAD_FINA 

◆ cmd_addr_T

enum cmd_addr_T
Enumerator
ADDR_LINES 
ADDR_WINDOWS 
ADDR_ARGUMENTS 
ADDR_LOADED_BUFFERS 
ADDR_BUFFERS 
ADDR_TABS 
ADDR_TABS_RELATIVE 
ADDR_QUICKFIX_VALID 
ADDR_QUICKFIX 
ADDR_UNSIGNED 
ADDR_OTHER 
ADDR_NONE