• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

Révisiona3e8778d20b455e6af39ec6e91a11a16a38cb033 (tree)
l'heure2012-12-26 12:36:44
AuteurShinya TAKEBAYASHI <omoikanenomikoto@gmai...>
CommiterShinya TAKEBAYASHI

Message de Log

Separated gcc buildtest to libs/util

Change Summary

Modification

--- a/hl.py
+++ b/hl.py
@@ -7,21 +7,6 @@ version_number = "$Id$"
77
88 include_path = []
99
10-def generate_code():
11- code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
12- open('tmp.c', 'w').write(code)
13-
14-
15-def ulink():
16- os.remove('tmp.c')
17- os.remove('a.out')
18-
19-
20-def rungcc():
21- L = ['gcc', '-v', 'tmp.c', '-o', 'a.out']
22- os.spawnlp(os.P_WAIT, 'gcc', L)
23-
24-
2510 def findheader2(target, rootdir):
2611 path = None
2712 for root, dirs, files in os.walk(rootdir):
--- /dev/null
+++ b/libs/util.py
@@ -0,0 +1,18 @@
1+import os
2+
3+
4+def generate_code():
5+ code = '#include <stdio.h> \n int main(int argc, char **argv){return 0;}\n'
6+ open('tmp.c', 'w').write(code)
7+
8+
9+def ulink():
10+ os.remove('tmp.c')
11+ os.remove('a.out')
12+
13+
14+def rungcc():
15+ L = ['gcc', '-v', 'tmp.c', '-o', 'a.out']
16+ os.spawnlp(os.P_WAIT, 'gcc', L)
17+
18+