pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/pkgtools/check-portability/files
Module Name: pkgsrc
Committed By: rillig
Date: Sat Mar 14 09:47:09 UTC 2020
Modified Files:
pkgsrc/pkgtools/check-portability/files: check-portability.c
Log Message:
pkgtools/check-portability: fix function names
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \
pkgsrc/pkgtools/check-portability/files/check-portability.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/pkgtools/check-portability/files/check-portability.c
diff -u pkgsrc/pkgtools/check-portability/files/check-portability.c:1.10 pkgsrc/pkgtools/check-portability/files/check-portability.c:1.11
--- pkgsrc/pkgtools/check-portability/files/check-portability.c:1.10 Sat Mar 14 09:18:49 2020
+++ pkgsrc/pkgtools/check-portability/files/check-portability.c Sat Mar 14 09:47:09 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: check-portability.c,v 1.10 2020/03/14 09:18:49 rillig Exp $ */
+/* $NetBSD: check-portability.c,v 1.11 2020/03/14 09:47:09 rillig Exp $ */
/*
Copyright (c) 2020 Roland Illig
@@ -288,7 +288,7 @@ explain_how_to_fix(void)
}
static size_t
-index_opening_bracket(cstr s)
+index_opening_brackets(cstr s)
{
size_t index = cstr_index(s, CSTR("[["));
if (index == npos)
@@ -301,7 +301,7 @@ index_opening_bracket(cstr s)
}
static size_t
-index_closing_bracket(cstr s)
+index_closing_brackets(cstr s)
{
size_t index = cstr_index(s, CSTR("]]"));
if (index == npos)
@@ -329,12 +329,12 @@ checkline_sh_double_brackets(cstr filena
if (is_shell_comment(line))
return;
- size_t opening_index = index_opening_bracket(line);
+ size_t opening_index = index_opening_brackets(line);
if (opening_index == npos)
return;
cstr suffix = cstr_substr(line, opening_index, line.len);
- size_t closing_index = index_closing_bracket(suffix);
+ size_t closing_index = index_closing_brackets(suffix);
if (closing_index == npos)
return;
Home |
Main Index |
Thread Index |
Old Index