diff options
author | smf- <smf-@users.noreply.github.com> | 2012-08-16 20:49:08 +0000 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2012-08-16 20:49:08 +0000 |
commit | 9d36bc6a6083e1a89cf222a3b6aac08cbbe4506b (patch) | |
tree | 95b143a5269640d111373bfa08a2431c9607aad0 /src/build | |
parent | 056fff50ad4977620c6ecec05273c2b5ce5aed79 (diff) |
add ___empty after sorting, the count is correct now and the check for no drivers can also work.
Diffstat (limited to 'src/build')
-rw-r--r-- | src/build/makelist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build/makelist.c b/src/build/makelist.c index 21b0d284e7e..4b7f7d00310 100644 --- a/src/build/makelist.c +++ b/src/build/makelist.c @@ -235,9 +235,6 @@ int main(int argc, char *argv[]) if (parse_file(srcfile)) return 1; - // add a reference to the ___empty driver - drivlist[drivcount++] = "___empty"; - // output a count if (drivcount == 0) { @@ -249,6 +246,9 @@ int main(int argc, char *argv[]) // sort the list qsort(drivlist, drivcount, sizeof(*drivlist), sort_callback); + // add a reference to the ___empty driver + drivlist[drivcount++] = "___empty"; + // start with a header printf("#include \"emu.h\"\n\n"); printf("#include \"drivenum.h\"\n\n"); |