Lines Matching refs:excp

510     except_T	*excp;  in throw_exception()  local
529 excp = ALLOC_ONE(except_T); in throw_exception()
530 if (excp == NULL) in throw_exception()
536 excp->messages = (msglist_T *)value; in throw_exception()
538 excp->value = get_exception_string(value, type, cmdname, &should_free); in throw_exception()
539 if (excp->value == NULL && should_free) in throw_exception()
542 excp->type = type; in throw_exception()
547 excp->throw_name = entry->sfile; in throw_exception()
549 excp->throw_lnum = entry->slnum; in throw_exception()
553 excp->throw_name = estack_sfile(ESTACK_NONE); in throw_exception()
554 if (excp->throw_name == NULL) in throw_exception()
555 excp->throw_name = vim_strsave((char_u *)""); in throw_exception()
556 if (excp->throw_name == NULL) in throw_exception()
559 vim_free(excp->value); in throw_exception()
562 excp->throw_lnum = SOURCING_LNUM; in throw_exception()
577 smsg(_("Exception thrown: %s"), excp->value); in throw_exception()
589 current_exception = excp; in throw_exception()
593 vim_free(excp); in throw_exception()
606 discard_exception(except_T *excp, int was_finished) in discard_exception() argument
610 if (current_exception == excp) in discard_exception()
612 if (excp == NULL) in discard_exception()
633 excp->value); in discard_exception()
645 if (excp->type != ET_INTERRUPT) in discard_exception()
646 vim_free(excp->value); in discard_exception()
647 if (excp->type == ET_ERROR) in discard_exception()
648 free_msglist(excp->messages); in discard_exception()
649 vim_free(excp->throw_name); in discard_exception()
650 vim_free(excp); in discard_exception()
669 catch_exception(except_T *excp) in catch_exception() argument
671 excp->caught = caught_stack; in catch_exception()
672 caught_stack = excp; in catch_exception()
673 set_vim_var_string(VV_EXCEPTION, (char_u *)excp->value, -1); in catch_exception()
674 if (*excp->throw_name != NUL) in catch_exception()
676 if (excp->throw_lnum != 0) in catch_exception()
678 excp->throw_name, (long)excp->throw_lnum); in catch_exception()
680 vim_snprintf((char *)IObuff, IOSIZE, "%s", excp->throw_name); in catch_exception()
699 smsg(_("Exception caught: %s"), excp->value); in catch_exception()
716 finish_exception(except_T *excp) in finish_exception() argument
718 if (excp != caught_stack) in finish_exception()
747 discard_exception(excp, TRUE); in finish_exception()