1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

Remove useless NULL string '' in compound strings. Look very closely.

This commit is contained in:
Devin Teske 2014-03-14 02:56:49 +00:00
parent 7bec1a4c78
commit bc3f5ec90b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263139
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ f_keymap_get_all()
marks[keym] = mark
name = keym
gsub(/[^[:alnum:]_]/, "_", name)
gsub(/'\''/, "'\''\\'\'''\''", desc);
gsub(/'\''/, "'\''\\'\'\''", desc);
printf "f_keymap_checkfile %s && " \
"f_keymap_register %s '\'%s\'' %s %u\n",
keym, name, desc, keym, mark

View File

@ -104,7 +104,7 @@ f_make_menus_awk='
function add_zone_n_to_country_menu(tlc, n)
{
zone_title = ENVIRON["country_" tlc "_descr_" n]
gsub(/'\''/, "'\''\\'\'''\''", zone_title)
gsub(/'\''/, "'\''\\'\'\''", zone_title)
country_menu_list[tlc] = country_menu_list[tlc] \
( length(country_menu_list[tlc]) > 0 ? "\n" : "" ) \
n " '\''" zone_title "'\''"
@ -121,7 +121,7 @@ BEGIN {
{
tlc = countries[cp]
title = ENVIRON["country_" tlc "_name"]
gsub(/'\''/, "'\''\\'\'''\''", title)
gsub(/'\''/, "'\''\\'\'\''", title)
nzones = ENVIRON["country_" tlc "_nzones"]
if (!nzones)
{