4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-20 20:17:29 +08:00

[Tools] Fix the CPP file type in Keil.

This commit is contained in:
Bernard Xiong 2016-04-09 23:10:28 +08:00
parent 454591dcfc
commit 9c48f9e09c

View File

@ -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