about summary refs log tree commit diff
path: root/compat/getprogname_windows.c
blob: eb04ec0551b5b8d07abe7ca06412d29c39929367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>

#include <windows.h>

const char *
getprogname(void)
{
	static char progname[MAX_PATH + 1];
	DWORD length = GetModuleFileName(NULL, progname, sizeof (progname) - 1);
	if (length < 0)
		return "?";
	return progname;
}
'>Source ~/.profile.local if it existsJune McEnroe 2022-03-18Publish "Addendum 2021"June McEnroe 2022-03-16Remove wcwidth portJune McEnroe DYLD_FORCE_FLAT_NAMESPACE no longer exists in macOS 12 so this approach doesn't work anymore. Moved to <https://git.causal.agency/jorts/tree/wcwidth> and compiled into <https://git.causal.agency/jorts/tree/ncurses>. 2022-03-16Remove -j4 from ./PlanJune McEnroe Plan learned to set this automatically! 2022-03-15Rewrite Linux install.sh for DebianJune McEnroe 2022-03-15Remove dashJune McEnroe