Macros | Functions
ex_eval.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/charset.h"
#include "nvim/debugger.h"
#include "nvim/eval.h"
#include "nvim/eval/userfunc.h"
#include "nvim/ex_cmds2.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_eval.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/regexp.h"
#include "nvim/strings.h"
#include "nvim/vim.h"

Macros

#define THROW_ON_ERROR   true
 
#define THROW_ON_ERROR_TRUE
 
#define THROW_ON_INTERRUPT   true
 
#define THROW_ON_INTERRUPT_TRUE
 
#define CHECK_SKIP
 
#define discard_pending_return(p)   tv_free((typval_T *)(p))
 
#define RP_MAKE   0
 
#define RP_RESUME   1
 
#define RP_DISCARD   2
 

Functions

int aborting (void)
 
void update_force_abort (void)
 
int should_abort (int retcode)
 
int aborted_in_try (void)
 
bool cause_errthrow (const char_u *mesg, bool severe, bool *ignore) FUNC_ATTR_NONNULL_ALL
 
void free_global_msglist (void)
 
void do_errthrow (cstack_T *cstack, char_u *cmdname)
 
int do_intthrow (cstack_T *cstack)
 
char * get_exception_string (void *value, except_type_T type, char_u *cmdname, int *should_free)
 
void discard_current_exception (void)
 
void report_make_pending (int pending, void *value)
 
void report_resume_pending (int pending, void *value)
 
void report_discard_pending (int pending, void *value)
 
void ex_eval (exarg_T *eap)
 
void ex_if (exarg_T *eap)
 
void ex_endif (exarg_T *eap)
 
void ex_else (exarg_T *eap)
 
void ex_while (exarg_T *eap)
 
void ex_continue (exarg_T *eap)
 
void ex_break (exarg_T *eap)
 
void ex_endwhile (exarg_T *eap)
 
void ex_throw (exarg_T *eap)
 
void do_throw (cstack_T *cstack)
 
void ex_try (exarg_T *eap)
 
void ex_catch (exarg_T *eap)
 
void ex_finally (exarg_T *eap)
 
void ex_endtry (exarg_T *eap)
 
void enter_cleanup (cleanup_T *csp)
 
void leave_cleanup (cleanup_T *csp)
 
int cleanup_conditionals (cstack_T *cstack, int searched_cond, int inclusive)
 
void rewind_conditionals (cstack_T *cstack, int idx, int cond_type, int *cond_level)
 
void ex_endfunction (exarg_T *eap)
 
int has_loop_cmd (char_u *p)
 

Detailed Description

Functions for Ex command line for the +eval feature.

Macro Definition Documentation

◆ CHECK_SKIP

#define CHECK_SKIP
Value:
|| got_int \
|| (cstack->cs_idx > 0 \
&& !(cstack->cs_flags[cstack->cs_idx - 1] & CSF_ACTIVE)))

◆ discard_pending_return

#define discard_pending_return (   p)    tv_free((typval_T *)(p))

◆ RP_DISCARD

#define RP_DISCARD   2

◆ RP_MAKE

#define RP_MAKE   0

◆ RP_RESUME

#define RP_RESUME   1

◆ THROW_ON_ERROR

#define THROW_ON_ERROR   true

◆ THROW_ON_ERROR_TRUE

#define THROW_ON_ERROR_TRUE

◆ THROW_ON_INTERRUPT

#define THROW_ON_INTERRUPT   true

◆ THROW_ON_INTERRUPT_TRUE

#define THROW_ON_INTERRUPT_TRUE

Function Documentation

◆ aborted_in_try()

int aborted_in_try ( void  )

◆ aborting()

int aborting ( void  )

◆ cause_errthrow()

bool cause_errthrow ( const char_u mesg,
bool  severe,
bool ignore 
)

◆ cleanup_conditionals()

int cleanup_conditionals ( cstack_T cstack,
int  searched_cond,
int  inclusive 
)

◆ discard_current_exception()

void discard_current_exception ( void  )

◆ do_errthrow()

void do_errthrow ( cstack_T cstack,
char_u cmdname 
)

◆ do_intthrow()

int do_intthrow ( cstack_T cstack)

◆ do_throw()

void do_throw ( cstack_T cstack)

◆ enter_cleanup()

void enter_cleanup ( cleanup_T csp)

◆ ex_break()

void ex_break ( exarg_T eap)

◆ ex_catch()

void ex_catch ( exarg_T eap)

◆ ex_continue()

void ex_continue ( exarg_T eap)

◆ ex_else()

void ex_else ( exarg_T eap)

◆ ex_endfunction()

void ex_endfunction ( exarg_T eap)

◆ ex_endif()

void ex_endif ( exarg_T eap)

◆ ex_endtry()

void ex_endtry ( exarg_T eap)

◆ ex_endwhile()

void ex_endwhile ( exarg_T eap)

◆ ex_eval()

void ex_eval ( exarg_T eap)

◆ ex_finally()

void ex_finally ( exarg_T eap)

◆ ex_if()

void ex_if ( exarg_T eap)

◆ ex_throw()

void ex_throw ( exarg_T eap)

◆ ex_try()

void ex_try ( exarg_T eap)

◆ ex_while()

void ex_while ( exarg_T eap)

◆ free_global_msglist()

void free_global_msglist ( void  )

◆ get_exception_string()

char* get_exception_string ( void value,
except_type_T  type,
char_u cmdname,
int *  should_free 
)

◆ has_loop_cmd()

int has_loop_cmd ( char_u p)

◆ leave_cleanup()

void leave_cleanup ( cleanup_T csp)

◆ report_discard_pending()

void report_discard_pending ( int  pending,
void value 
)

◆ report_make_pending()

void report_make_pending ( int  pending,
void value 
)

◆ report_resume_pending()

void report_resume_pending ( int  pending,
void value 
)

◆ rewind_conditionals()

void rewind_conditionals ( cstack_T cstack,
int  idx,
int  cond_type,
int *  cond_level 
)

◆ should_abort()

int should_abort ( int  retcode)

◆ update_force_abort()

void update_force_abort ( void  )
current_exception
EXTERN except_T * current_exception
Definition: globals.h:271
did_emsg
did_emsg
Definition: userfunc.c:1100
CSF_ACTIVE
#define CSF_ACTIVE
Definition: ex_eval.h:10