Home | History | Annotate | Download | only in scripts

Lines Matching refs:line

13 # the variable 'out', which should be set on the command line.
27 print "out=output.file must be given on the command line"
64 # A definition line, apparently correctly formatted; extract the
70 # if the quotes aren't closed and must read another line. In this
72 # are introduced #line directives.
74 line=$0
78 if (sub(/^[^"]*PNG_DFN *"/,"",line) != 1) {
79 print "line", lineno ": processing failed:"
110 if (line ~ /@"/) {
111 if (line ~ /@".*"@/) {
114 if (!sub(/@" *"@/, "", line)) {
118 if (!sub(/@" */, "", line) || !sub(/ *"@/, "", line)) {
119 print "line", lineno, ": internal error:", orig
125 # There is no matching "@. Assume a split line
128 # If the line starts with '#' it is a preprocesor line directive
131 line = line " " nextline
135 # This is end-of-input - probably a missing "@ on the first line:
136 print "line", lineno ": unbalanced @\" ... \"@ pair"
147 # be done, stop now; if not assume a split line again
148 if (sub(/"[^"]*$/, "", line))
151 # Read another line
155 line = line " " nextline
160 print "line", lineno ": unterminated PNG_DFN string"
169 gsub(/@'/,"\"", line)
173 sub(/ *$/, "", line)
177 sub(/ $/, "", line)
180 if (split(line, parts) < sort) {
181 print "line", lineno ": missing sort field:", line
184 array[parts[sort]] = line
188 print line >out
193 print "line", NR, "incorrectly formatted PNG_DFN line:"