comparison src/ex_cmds2.c @ 2053:94f44da44d2e v7.2.339

updated for version 7.2.339 Problem: Part of --startuptime patch is missing. Solution: Add check for time_fd.
author Bram Moolenaar <bram@zimbu.org>
date Tue, 19 Jan 2010 16:31:47 +0100
parents 057029bf3470
children f815aad6c055
comparison
equal deleted inserted replaced
2052:057029bf3470 2053:94f44da44d2e
3034 } 3034 }
3035 } 3035 }
3036 #endif 3036 #endif
3037 3037
3038 #ifdef STARTUPTIME 3038 #ifdef STARTUPTIME
3039 time_push(&tv_rel, &tv_start); 3039 if (time_fd != NULL)
3040 time_push(&tv_rel, &tv_start);
3040 #endif 3041 #endif
3041 3042
3042 #ifdef FEAT_EVAL 3043 #ifdef FEAT_EVAL
3043 # ifdef FEAT_PROFILE 3044 # ifdef FEAT_PROFILE
3044 if (do_profiling == PROF_YES) 3045 if (do_profiling == PROF_YES)
3160 if (sourcing_name != NULL) 3161 if (sourcing_name != NULL)
3161 smsg((char_u *)_("continuing in %s"), sourcing_name); 3162 smsg((char_u *)_("continuing in %s"), sourcing_name);
3162 verbose_leave(); 3163 verbose_leave();
3163 } 3164 }
3164 #ifdef STARTUPTIME 3165 #ifdef STARTUPTIME
3165 vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname); 3166 if (time_fd != NULL)
3166 time_msg((char *)IObuff, &tv_start); 3167 {
3167 time_pop(&tv_rel); 3168 vim_snprintf((char *)IObuff, IOSIZE, "sourcing %s", fname);
3169 time_msg((char *)IObuff, &tv_start);
3170 time_pop(&tv_rel);
3171 }
3168 #endif 3172 #endif
3169 3173
3170 #ifdef FEAT_EVAL 3174 #ifdef FEAT_EVAL
3171 /* 3175 /*
3172 * After a "finish" in debug mode, need to break at first command of next 3176 * After a "finish" in debug mode, need to break at first command of next