Merge pull request #245 from xuhdev/remove-useless-win64-check
Remove some unnecessary win64 checks.
This commit is contained in:
commit
025fa81d98
@ -128,7 +128,7 @@ function! syntastic#c#SearchHeaders()
|
|||||||
" search included headers
|
" search included headers
|
||||||
for hfile in files
|
for hfile in files
|
||||||
if hfile != ''
|
if hfile != ''
|
||||||
let filename = expand('%:p:h') . ((has('win32') || has('win64')) ?
|
let filename = expand('%:p:h') . (has('win32') ?
|
||||||
\ '\' : '/') . hfile
|
\ '\' : '/') . hfile
|
||||||
try
|
try
|
||||||
let lines = readfile(filename, '', 100)
|
let lines = readfile(filename, '', 100)
|
||||||
|
@ -17,7 +17,7 @@ if exists("g:loaded_syntastic_plugin")
|
|||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_plugin = 1
|
let g:loaded_syntastic_plugin = 1
|
||||||
|
|
||||||
let s:running_windows = has("win16") || has("win32") || has("win64")
|
let s:running_windows = has("win16") || has("win32")
|
||||||
|
|
||||||
if !s:running_windows
|
if !s:running_windows
|
||||||
let s:uname = system('uname')
|
let s:uname = system('uname')
|
||||||
|
@ -20,7 +20,7 @@ if !executable("ruby") || !executable("cat")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_eruby_GetLocList()
|
function! SyntaxCheckers_eruby_GetLocList()
|
||||||
if has('win32') || has('win64')
|
if has('win32')
|
||||||
let makeprg='sed "s/<\%=/<\%/g" '. shellescape(expand("%")) . ' \| ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| ruby -c'
|
let makeprg='sed "s/<\%=/<\%/g" '. shellescape(expand("%")) . ' \| ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| ruby -c'
|
||||||
else
|
else
|
||||||
let makeprg='sed "s/<\%=/<\%/g" '. shellescape(expand("%")) . ' \| RUBYOPT= ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| RUBYOPT= ruby -c'
|
let makeprg='sed "s/<\%=/<\%/g" '. shellescape(expand("%")) . ' \| RUBYOPT= ruby -e "require \"erb\"; puts ERB.new(ARGF.read, nil, \"-\").src" \| RUBYOPT= ruby -c'
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"============================================================================
|
"============================================================================
|
||||||
function! SyntaxCheckers_ruby_GetLocList()
|
function! SyntaxCheckers_ruby_GetLocList()
|
||||||
" we cannot set RUBYOPT on windows like that
|
" we cannot set RUBYOPT on windows like that
|
||||||
if has('win32') || has('win64')
|
if has('win32')
|
||||||
let makeprg = 'ruby -W1 -T1 -c '.shellescape(expand('%'))
|
let makeprg = 'ruby -W1 -T1 -c '.shellescape(expand('%'))
|
||||||
else
|
else
|
||||||
let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%'))
|
let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%'))
|
||||||
|
Loading…
Reference in New Issue
Block a user