pike.git / lib / modules / Calendar.pmod / tzdata / checklinks.awk

version» Context lines:

pike.git/lib/modules/Calendar.pmod/tzdata/checklinks.awk:2:      # Contributed by Paul Eggert. This file is in the public domain.      BEGIN {    # Special marker indicating that the name is defined as a Zone.    # It is a newline so that it cannot match a valid name.    # It is not null so that its slot does not appear unset.    Zone = "\n"   }    - /^Zone/ { + /^Z/ {    if (defined[$2]) {    if (defined[$2] == Zone) {    printf "%s: Zone has duplicate definition\n", $2    } else {    printf "%s: Link with same name as Zone\n", $2    }    status = 1    }    defined[$2] = Zone   }    - /^Link/ { + /^L/ {    if (defined[$3]) {    if (defined[$3] == Zone) {    printf "%s: Link with same name as Zone\n", $3    } else if (defined[$3] == $2) {    printf "%s: Link has duplicate definition\n", $3    } else {    printf "%s: Link to both %s and %s\n", $3, defined[$3], $2    }    status = 1    }