Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/util.go,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/pkgtools/pkglint/files/Attic/util.go,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.11 retrieving revision 1.12 diff -u -p -r1.11 -r1.12 --- pkgsrc/pkgtools/pkglint/files/Attic/util.go 2016/12/04 15:28:36 1.11 +++ pkgsrc/pkgtools/pkglint/files/Attic/util.go 2017/01/01 15:15:47 1.12 @@ -28,6 +28,13 @@ func ifelseStr(cond bool, a, b string) s return b } +func imax(a, b int) int { + if a > b { + return a + } + return b +} + func mustMatch(s string, re RegexPattern) []string { if m := match(s, re); m != nil { return m @@ -420,7 +427,7 @@ func (r Ref) String() string { return fmt.Sprintf("%v", ref) } -// Emulates make(1)ãàÑÔ :S substitution operator. +// Emulates make(1)'s :S substitution operator. func mkopSubst(s string, left bool, from string, right bool, to string, flags string) string { if G.opts.Debug { defer tracecall(s, left, from, right, to, flags)()