[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
1 changed files with 3 additions and 3 deletions

View File

@ -34,12 +34,12 @@ from utils import xml_indent
fs_encoding = sys.getfilesystemencoding() fs_encoding = sys.getfilesystemencoding()
def _get_filetype(fn): 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: if fn.rfind('.c') != -1 or fn.rfind('.C') != -1:
return 1 return 1
if fn.rfind('.cpp') != -1 or fn.rfined('.cxx') != -1:
return 8
# assemble file type # assemble file type
if fn.rfind('.s') != -1 or fn.rfind('.S') != -1: if fn.rfind('.s') != -1 or fn.rfind('.S') != -1:
return 2 return 2