Skip to content

Commit

Permalink
[Tools] Fix the CPP file type in Keil.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardXiong committed Apr 9, 2016
1 parent 454591d commit 9c48f9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/keil.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
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
Expand Down

0 comments on commit 9c48f9e

Please sign in to comment.