# HG changeset patch # User Paper # Date 1718095131 14400 # Node ID 6596be6917a1c8e7e69c480dc75a1d07beee3a77 # Parent 04b412228ca72e7731f035d06e53175d107d8ba0 dep/animone: prepare for v1.0 release; it should be ready by now diff -r 04b412228ca7 -r 6596be6917a1 configure.ac --- a/configure.ac Tue Jun 11 04:24:59 2024 -0400 +++ b/configure.ac Tue Jun 11 04:38:51 2024 -0400 @@ -1,4 +1,4 @@ -AC_INIT([animone], [0.1.0-alpha.1]) +AC_INIT([animone], [1.0.0]) AC_CANONICAL_HOST diff -r 04b412228ca7 -r 6596be6917a1 src/fd/bsd.cc --- a/src/fd/bsd.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/fd/bsd.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,9 @@ +/* + * fd/win32.cc: support for most BSDs + * + * should support (Free/Open/Net)BSD. possibly more, + * but this code is untested outside of FreeBSD. + */ #include "animone/fd/bsd.h" #include "animone.h" #include "animone/fd.h" diff -r 04b412228ca7 -r 6596be6917a1 src/fd/proc.cc --- a/src/fd/proc.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/fd/proc.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,8 @@ +/* + * fd/win32.cc: support for linux's /proc filesystem + * + * plan 9 caused this monstrocity... + */ #include "animone/fd/proc.h" #include "animone.h" #include "animone/util.h" diff -r 04b412228ca7 -r 6596be6917a1 src/fd/win32.cc --- a/src/fd/win32.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/fd/win32.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,16 @@ +/* + * fd/win32.cc: support for windows + * + * this file is noticably more complex than *nix, and that's because + * there is no "simple" way to get the paths of a file. In fact, this thing requires + * you to use *internal functions* that can't even be linked to, hence why we have to + * use GetProcAddress and such. what a mess. + * + * Speaking of which, because this file uses internal functions of the OS, it is not + * even guaranteed to work far into the future. however, just like with macOS, these + * things have stayed the same since Vista so if Microsoft *really* wants compatibility + * then they're pretty much forced to keeping this the same anyway. + */ #include "animone/fd/win32.h" #include "animone.h" #include "animone/util/win32.h" @@ -18,16 +31,6 @@ #include #include -/* This file is noticably more complex than Unix and Linux, and that's because - * there is no "simple" way to get the paths of a file. In fact, this thing requires - * you to use *internal functions* that can't even be linked to, hence why we have to - * use GetProcAddress and such. What a mess. - * - * Speaking of which, because this file uses internal functions of the OS, it is not - * guaranteed to work far into the future. However, it has worked since NT 6.0 (Vista) - * at least, so it's unlikely to be changed much ever. - */ - /* SystemExtendedHandleInformation is only available in NT 5.1+ (XP and higher) and provides information for * 32-bit PIDs, unlike SystemHandleInformation */ diff -r 04b412228ca7 -r 6596be6917a1 src/fd/xnu.cc --- a/src/fd/xnu.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/fd/xnu.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,6 +1,12 @@ +/* + * fd/xnu.cc: support for macOS's kernel + * + * this used to have all sorts of hacks for getting the process name, + * but ultimately I just decided that it's better to just parse the + * PID path from xnu, which should work perfectly fine. + */ #include "animone/fd/xnu.h" #include "animone.h" -#include "animone/util/osx.h" #include #include diff -r 04b412228ca7 -r 6596be6917a1 src/util/win32.cc --- a/src/util/win32.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/util/win32.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,6 @@ +/* + * util/win32.cc: utility functions only useful on windows + */ #include "animone/util/win32.h" #include /* SHGetKnownFolderPath */ diff -r 04b412228ca7 -r 6596be6917a1 src/win/x11.cc --- a/src/win/x11.cc Tue Jun 11 04:24:59 2024 -0400 +++ b/src/win/x11.cc Tue Jun 11 04:38:51 2024 -0400 @@ -1,3 +1,9 @@ +/* + * win/x11.c: support for X11 using XCB + * + * some things might be wrong here due to + * having to use recursive logic, but whatever + */ #include "animone/win/x11.h" #include "animone.h" #include "animone/fd.h" /* GetProcessName() */ @@ -17,8 +23,6 @@ #include -/* This uses XCB (and it uses it *right*), so it should be plenty fast */ - static size_t str_nlen(const char* s, size_t len) { size_t i = 0; for (; i < len && s[i]; i++)