pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/check-portability/files pkgtools/check-portab...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c695463eaf35
branches:  trunk
changeset: 424726:c695463eaf35
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Mar 14 09:47:09 2020 +0000

description:
pkgtools/check-portability: fix function names

diffstat:

 pkgtools/check-portability/files/check-portability.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r 3fe66e326067 -r c695463eaf35 pkgtools/check-portability/files/check-portability.c
--- a/pkgtools/check-portability/files/check-portability.c      Sat Mar 14 09:19:03 2020 +0000
+++ b/pkgtools/check-portability/files/check-portability.c      Sat Mar 14 09:47:09 2020 +0000
@@ -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 @@
 }
 
 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 @@
 }
 
 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 @@
        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