|
1 | | -/* nob - v1.15.0 - Public Domain - https://github.com/tsoding/nob.h |
| 1 | +/* nob - v1.15.1 - Public Domain - https://github.com/tsoding/nob.h |
2 | 2 |
|
3 | 3 | This library is the next generation of the [NoBuild](https://github.com/tsoding/nobuild) idea. |
4 | 4 |
|
@@ -1065,7 +1065,7 @@ bool nob_proc_wait(Nob_Proc proc) |
1065 | 1065 | } |
1066 | 1066 |
|
1067 | 1067 | if (WIFSIGNALED(wstatus)) { |
1068 | | - nob_log(NOB_ERROR, "command process was terminated by %s", strsignal(WTERMSIG(wstatus))); |
| 1068 | + nob_log(NOB_ERROR, "command process was terminated by signal %s", WTERMSIG(wstatus)); |
1069 | 1069 | return false; |
1070 | 1070 | } |
1071 | 1071 | } |
@@ -1227,12 +1227,10 @@ Nob_File_Type nob_get_file_type(const char *path) |
1227 | 1227 | return -1; |
1228 | 1228 | } |
1229 | 1229 |
|
1230 | | - switch (statbuf.st_mode & S_IFMT) { |
1231 | | - case S_IFDIR: return NOB_FILE_DIRECTORY; |
1232 | | - case S_IFREG: return NOB_FILE_REGULAR; |
1233 | | - case S_IFLNK: return NOB_FILE_SYMLINK; |
1234 | | - default: return NOB_FILE_OTHER; |
1235 | | - } |
| 1230 | + if (S_ISREG(statbuf.st_mode)) return NOB_FILE_REGULAR; |
| 1231 | + if (S_ISDIR(statbuf.st_mode)) return NOB_FILE_DIRECTORY; |
| 1232 | + if (S_ISLNK(statbuf.st_mode)) return NOB_FILE_SYMLINK; |
| 1233 | + return NOB_FILE_OTHER; |
1236 | 1234 | #endif // _WIN32 |
1237 | 1235 | } |
1238 | 1236 |
|
@@ -1878,6 +1876,9 @@ int closedir(DIR *dirp) |
1878 | 1876 | /* |
1879 | 1877 | Revision history: |
1880 | 1878 |
|
| 1879 | + 1.15.1 (2025-03-16) Make nob.h compilable in gcc/clang with -std=c99 on POSIX. This includes: |
| 1880 | + not using strsignal() |
| 1881 | + using S_IS* stat macros instead of S_IF* flags |
1881 | 1882 | 1.15.0 (2025-03-03) Add nob_sv_chop_left() |
1882 | 1883 | 1.14.1 (2025-03-02) Add NOB_EXPERIMENTAL_DELETE_OLD flag that enables deletion of nob.old in Go Rebuild Urself™ Technology |
1883 | 1884 | 1.14.0 (2025-02-17) Add nob_da_last() |
|
0 commit comments