end of the function PC_ExpandDefineIntoSource ============================================================================ Parameter: - Returns: - Changes Globals: - ============================================================================
| 959 | // Changes Globals: - |
| 960 | //============================================================================ |
| 961 | void PC_ConvertPath(char *path) |
| 962 | { |
| 963 | char *ptr; |
| 964 | |
| 965 | //remove double path seperators |
| 966 | for (ptr = path; *ptr;) |
| 967 | { |
| 968 | if ((*ptr == '\\' || *ptr == '/') && |
| 969 | (*(ptr+1) == '\\' || *(ptr+1) == '/')) |
| 970 | { |
| 971 | memmove(ptr, ptr+1, strlen(ptr)); |
| 972 | } //end if |
| 973 | else |
| 974 | { |
| 975 | ptr++; |
| 976 | } //end else |
| 977 | } //end while |
| 978 | //set OS dependent path seperators |
| 979 | for (ptr = path; *ptr;) |
| 980 | { |
| 981 | if (*ptr == '/' || *ptr == '\\') *ptr = PATHSEPERATOR_CHAR; |
| 982 | ptr++; |
| 983 | } //end while |
| 984 | } //end of the function PC_ConvertPath |
| 985 | //============================================================================ |
| 986 | // |
| 987 | // Parameter: - |
no outgoing calls
no test coverage detected