Mercurial > vim
comparison src/syntax.c @ 22991:cb7df44afe7e v8.2.2042
patch 8.2.2042: build failure with +profile but without +reltime
Commit: https://github.com/vim/vim/commit/813196784ad2a3a8cd65be5e975769d9768a728e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 25 11:47:39 2020 +0100
patch 8.2.2042: build failure with +profile but without +reltime
Problem: Build failure with +profile but without +reltime.
Solution: Adjust #ifdef. (Christian Brabandt, closes https://github.com/vim/vim/issues/7361)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Nov 2020 12:00:04 +0100 |
parents | de6c242ec236 |
children | 6616bf17dc94 |
comparison
equal
deleted
inserted
replaced
22990:d46d4c6dde13 | 22991:cb7df44afe7e |
---|---|
6705 static void | 6705 static void |
6706 syntime_report(void) | 6706 syntime_report(void) |
6707 { | 6707 { |
6708 int idx; | 6708 int idx; |
6709 synpat_T *spp; | 6709 synpat_T *spp; |
6710 # ifdef FEAT_FLOAT | 6710 # if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) |
6711 proftime_T tm; | 6711 proftime_T tm; |
6712 # endif | 6712 # endif |
6713 int len; | 6713 int len; |
6714 proftime_T total_total; | 6714 proftime_T total_total; |
6715 int total_count = 0; | 6715 int total_count = 0; |
6735 profile_add(&total_total, &spp->sp_time.total); | 6735 profile_add(&total_total, &spp->sp_time.total); |
6736 p->count = spp->sp_time.count; | 6736 p->count = spp->sp_time.count; |
6737 p->match = spp->sp_time.match; | 6737 p->match = spp->sp_time.match; |
6738 total_count += spp->sp_time.count; | 6738 total_count += spp->sp_time.count; |
6739 p->slowest = spp->sp_time.slowest; | 6739 p->slowest = spp->sp_time.slowest; |
6740 # ifdef FEAT_FLOAT | 6740 # if defined(FEAT_RELTIME) && defined(FEAT_FLOAT) |
6741 profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); | 6741 profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm); |
6742 p->average = tm; | 6742 p->average = tm; |
6743 # endif | 6743 # endif |
6744 p->id = spp->sp_syn.id; | 6744 p->id = spp->sp_syn.id; |
6745 p->pattern = spp->sp_pattern; | 6745 p->pattern = spp->sp_pattern; |