author | Johannes Sixt <johannes.sixt@telecom.at> | |
Sat, 1 Mar 2008 20:11:14 +0000 (21:11 +0100) | ||
committer | Johannes Sixt <johannes.sixt@telecom.at> | |
Mon, 23 Jun 2008 11:22:35 +0000 (13:22 +0200) | ||
commit | 4cd148d83f852363363e921c4925e67601654ff6 | |
tree | bf28422eba86581aafd9348baf9b5fafd6282751 | tree | snapshot |
parent | 80ba074f4163dc8ee4232d64e73a8521edcadc1d | commit | diff |
setup.c: Prepare for Windows directory separators.
This turns two switch/case statements into an if-else-if cascade because
we later do not want to have
case '/':
#ifdef __MINGW32__
case '\\':
#endif
but use a predicate is_dir_sep(foo) in order to check for the directory
separator.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
This turns two switch/case statements into an if-else-if cascade because
we later do not want to have
case '/':
#ifdef __MINGW32__
case '\\':
#endif
but use a predicate is_dir_sep(foo) in order to check for the directory
separator.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
setup.c | diff | blob | history |