test/testfile.c

Fri, 29 Sep 2023 20:30:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Fri, 29 Sep 2023 20:30:22 +0200
changeset 71
a2ea57a16348
parent 66
be2084398c37
permissions
-rw-r--r--

fix dist files not being in subdir

57
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * Many Files have license headers.
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 */
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 // And add other stuff below.
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6
66
be2084398c37 new feature: count non-whitespace characters
Mike Becker <universe@uap-core.de>
parents: 57
diff changeset
7 int main(int argc, char** argv) { // comments behind code don't matter
57
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 int zero /* in block comments we are genius enough to
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * detect, if there is still some code in the line
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 */ = 0;
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 /* otherwise the whole comment is
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * not counted*/
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 // this holds also for this empty line
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 return zero;
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 }
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20
68018eac46c3 adds simple tiny test suite and updates license headers
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 /* rare case, but must also work: last line is a comment */

mercurial