view runtime/tools/mve.awk @ 22212:36af5cb8413c v8.2.1655

patch 8.2.1655: cannot build with Strawberry Perl 5.32.0 Commit: https://github.com/vim/vim/commit/895a7a472d2eb4413e63cdad3213cb1ef1633458 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 10 21:36:11 2020 +0200 patch 8.2.1655: cannot build with Strawberry Perl 5.32.0 Problem: Cannot build with Strawberry Perl 5.32.0. Solution: Use Perl_sv_2pvbyte_flags. (closes https://github.com/vim/vim/issues/6921)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Sep 2020 21:45:03 +0200
parents 3fc0f57ecb91
children
line wrap: on
line source

#!/usr/bin/nawk -f
#
# Change "nawk" to "awk" or "gawk" if you get errors.
#
# Make Vim Errors
# Processes errors from cc for use by Vim's quick fix tools
# specifically it translates the ---------^ notation to a
# column number
#
BEGIN { FS="[:,]" }

/^cfe/ { file=$3
	 msg=$5
	 split($4,s," ")
	 line=s[2]
}

# You may have to substitute a tab character for the \t here:
/^[\t-]*\^/ {
	p=match($0, ".*\\^" )
	col=RLENGTH-2
	printf("%s, line %d, col %d : %s\n", file,line,col,msg)
}