OLD | NEW |
1 /* $Id: genperf.c 2235 2009-11-03 05:15:37Z peter $ | 1 /* |
2 * | 2 * |
3 * Generate Minimal Perfect Hash (genperf) | 3 * Generate Minimal Perfect Hash (genperf) |
4 * | 4 * |
5 * Copyright (C) 2006-2007 Peter Johnson | 5 * Copyright (C) 2006-2007 Peter Johnson |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
11 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 fclose(out); | 531 fclose(out); |
532 | 532 |
533 if (errors > 0) { | 533 if (errors > 0) { |
534 remove(argv[2]); | 534 remove(argv[2]); |
535 return EXIT_FAILURE; | 535 return EXIT_FAILURE; |
536 } | 536 } |
537 | 537 |
538 return EXIT_SUCCESS; | 538 return EXIT_SUCCESS; |
539 } | 539 } |
540 | 540 |
OLD | NEW |