提交 9c48f9e0 编写于 作者: B Bernard Xiong

[Tools] Fix the CPP file type in Keil.

上级 454591dc
......@@ -34,12 +34,12 @@ from utils import xml_indent
fs_encoding = sys.getfilesystemencoding()
def _get_filetype(fn):
if fn.rfind('.cpp') != -1 or fn.rfind('.cxx') != -1:
return 8
if fn.rfind('.c') != -1 or fn.rfind('.C') != -1:
return 1
if fn.rfind('.cpp') != -1 or fn.rfined('.cxx') != -1:
return 8
# assemble file type
if fn.rfind('.s') != -1 or fn.rfind('.S') != -1:
return 2
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册