projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always include "config.h" at the start of all C source files.
[free-sw/xcb/libxcb]
/
src
/
c_client.py
diff --git
a/src/c_client.py
b/src/c_client.py
index
d006d30
..
27a01b1
100644
(file)
--- a/
src/c_client.py
+++ b/
src/c_client.py
@@
-5,6
+5,7
@@
from functools import reduce
import getopt
import os
import sys
import getopt
import os
import sys
+import errno
import time
import re
import time
import re
@@
-175,6
+176,9
@@
def c_open(self):
_h('')
_h('#include "xcb.h"')
_h('')
_h('#include "xcb.h"')
+ _c('#ifdef HAVE_CONFIG_H')
+ _c('#include "config.h"')
+ _c('#endif')
_c('#include <stdlib.h>')
_c('#include <string.h>')
_c('#include <assert.h>')
_c('#include <stdlib.h>')
_c('#include <string.h>')
_c('#include <assert.h>')
@@
-2902,8
+2906,11
@@
Refer to the README file in xcb/proto for more info.
raise
# Ensure the man subdirectory exists
raise
# Ensure the man subdirectory exists
-
if not os.path.exists('man')
:
+
try
:
os.mkdir('man')
os.mkdir('man')
+except OSError, e:
+ if e.errno != errno.EEXIST:
+ raise
today = time.strftime('%Y-%m-%d', time.gmtime(os.path.getmtime(args[0])))
today = time.strftime('%Y-%m-%d', time.gmtime(os.path.getmtime(args[0])))