mirror of https://github.com/ksherlock/mpw.git
Compare commits
3 Commits
022d4cffe9
...
bdb1f4b2b9
Author | SHA1 | Date |
---|---|---|
Ryan Schmidt | bdb1f4b2b9 | |
Ryan Schmidt | b8d17f4481 | |
Ryan Schmidt | a76287876c |
|
@ -11,8 +11,12 @@ set(CMAKE_C_EXTENSIONS FALSE)
|
|||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||||
# Clang or AppleClang
|
||||
set(CMAKE_CXX_FLAGS "-Wall")
|
||||
set(CMAKE_C_FLAGS "-Wall")
|
||||
set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
||||
if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
|
||||
# Clang or AppleClang
|
||||
set(CMAKE_C_FLAGS "-Wall ${CMAKE_C_FLAGS}")
|
||||
endif()
|
||||
|
||||
|
||||
|
|
|
@ -957,10 +957,19 @@ int main(int argc, char **argv)
|
|||
|
||||
#ifdef LOADER_LOAD
|
||||
uint16_t err = Loader::Native::LoadFile(command);
|
||||
if (err) exit(EX_CONFIG);
|
||||
if (err) {
|
||||
const char *cp = ErrorName(err);
|
||||
fprintf(stderr, "Unable to load command %s: ", command.c_str());
|
||||
if (cp) printf("%s\n", cp);
|
||||
else printf("%hd\n", err);
|
||||
exit(EX_SOFTWARE);
|
||||
}
|
||||
#else
|
||||
uint32_t address = load(command.c_str());
|
||||
if (!address) exit(EX_CONFIG);
|
||||
if (!address) {
|
||||
fprintf(stderr, "Unable to load command %s\n", command.c_str());
|
||||
exit(EX_SOFTWARE);
|
||||
}
|
||||
#endif
|
||||
GlobalInit();
|
||||
|
||||
|
|
|
@ -83,8 +83,8 @@ namespace OS {
|
|||
{
|
||||
char buffer[PATH_MAX + 1];
|
||||
|
||||
// FSSpecs are valid for non-existant files
|
||||
// but not non-existant directories.
|
||||
// FSSpecs are valid for non-existent files
|
||||
// but not non-existent directories.
|
||||
// realpath does not behave in such a manner.
|
||||
|
||||
// expand the path. Also handles relative paths.
|
||||
|
|
Loading…
Reference in New Issue