[BACK]Return to vardefs.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / files

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/files/Attic/vardefs.go between version 1.39 and 1.40

version 1.39, 2018/04/28 23:32:52 version 1.40, 2018/05/01 23:30:11
Line 17  import (
Line 17  import (
 // InitVartypes initializes the long list of predefined pkgsrc variables.  // InitVartypes initializes the long list of predefined pkgsrc variables.
 // After this is done, ${PKGNAME}, ${MAKE_ENV} and all the other variables  // After this is done, ${PKGNAME}, ${MAKE_ENV} and all the other variables
 // can be used in Makefiles without triggering warnings about typos.  // can be used in Makefiles without triggering warnings about typos.
 func (src *PkgsrcImpl) InitVartypes() {  func (src *Pkgsrc) InitVartypes() {
   
         acl := func(varname string, kindOfList KindOfList, checker *BasicType, aclentries string) {          acl := func(varname string, kindOfList KindOfList, checker *BasicType, aclentries string) {
                 m := mustMatch(varname, `^([A-Z_.][A-Z0-9_]*)(|\*|\.\*)$`)                  m := mustMatch(varname, `^([A-Z_.][A-Z0-9_]*)(|\*|\.\*)$`)

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

CVSweb <webmaster@jp.NetBSD.org>