[Vm-dev] SQUEAK_SPY environment variable

stes@PANDORA.BE stes at telenet.be
Fri Aug 28 17:31:27 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Does anybody know what the -spy option or the variable SQUEAK_SPY is doing ?

platforms/unix/vm-display-X11/sqUnixX11.c:int withSpy=		0;
platforms/unix/vm-display-X11/sqUnixX11.c:  if (getenv("SQUEAK_SPY"))		withSpy= 1;
platforms/unix/vm/sqUnixMain.c:       int    withSpy=		0;
platforms/unix/vm/sqUnixMain.c:  else if (!strcmp(argv[0], VMOPTION("spy")))       { withSpy = 1; return 1; }

Also I wonder why both .c files (sqUnixX11.c and sqUnixMain.c) both define
the same global variable (they both define withSpy).

I'd expect one of them to define it, and the other declare it extern.
But I don't immediately see where 'withSpy' is used.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfST8iAAoJEAwpOKXMq1MaU6cH/RmKzH2tRKLan4gdI8NDaVow
XGOT09pmKjZNqiRxd8DAGXQ+4X/SopbLv6n7qRKFVCyscH9KRQPiZ5SwV36cKAYo
Pwiekgn7G0g1choGne4Xav8HJTBsbZ6Q5zEiB8razD7ScYFwLVkP6ghY2QtAAfkY
wa88aOsDyZjIpLOgEO/PXIyioZ4Qi5mr333FmjAHLON+P4Z4oRRXuRNuWFThf70y
2334DMxTwCXgFUY/zfBSR1YGvUPu1no558AYZPjI137xZ4fk93mMSBDAu4koFMeI
XQkSRrf7fw9wZGemg6Lpe43S9OAO/HNFJJokgjuZOTIPuNUzjMamCD9UDf6BZX0=
=3zbk
-----END PGP SIGNATURE-----



More information about the Vm-dev mailing list