summaryrefslogtreecommitdiff
path: root/hacks/check_includes
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-05 15:45:05 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-05 15:45:05 +0000
commitb5b97ce4ddb978369c5a07f2a5f1cb3347156721 (patch)
treea43728c7896277d34c1735d85b69ce1bb087fefb /hacks/check_includes
parent8596e31595c9aba128078ba4a3950543ea291f98 (diff)
More header file rearrangement.
Diffstat (limited to 'hacks/check_includes')
-rwxr-xr-xhacks/check_includes6
1 files changed, 2 insertions, 4 deletions
diff --git a/hacks/check_includes b/hacks/check_includes
index bd0ea636f..8a4f90114 100755
--- a/hacks/check_includes
+++ b/hacks/check_includes
@@ -8,7 +8,7 @@ for a in sys.argv[1:]:
if line.startswith('#include'):
includes.append(line.strip()[9:])
- std = ['<cstdio>', '<unistd.h>', '<stdexcept>', '<iostream>', '<algorithm>', '<fstream>', '<cstdlib>', '<iomanip>', '<stdint.h>', '<cmath>', '<cassert>', '<cstring>', '<mntent.h>', '<windows.h>', '<shlwapi.h>', '<sys/sysctl.h>', '<mach-o/dyld.h>', '<IOKit/pwr_mgt/IOPMLib.h>', '<sys/types.h>', '<ifaddrs.h>', '<netinet/in.h>', '<arpa/inet.h>']
+ std = ['<cstdio>', '<unistd.h>', '<stdexcept>', '<iostream>', '<algorithm>', '<fstream>', '<cstdlib>', '<iomanip>', '<stdint.h>', '<cmath>', '<cassert>', '<cstring>', '<mntent.h>', '<windows.h>', '<shlwapi.h>', '<sys/sysctl.h>', '<mach-o/dyld.h>', '<IOKit/pwr_mgt/IOPMLib.h>', '<sys/types.h>', '<ifaddrs.h>', '<netinet/in.h>', '<arpa/inet.h>', '<cerrno>']
current_group = 0
for i in includes:
@@ -28,11 +28,9 @@ for a in sys.argv[1:]:
else:
group = 0
- print '%s: %d' % (i, group)
-
if group < current_group:
print '%s: first wrong order is %s' % (a, i)
- sys.exit(1)
+ break
current_group = group