* [9fans] python won't link with type safe linker, i.e. -T
@ 2007-01-17 16:00 ron minnich
2007-01-17 17:20 ` Skip Tavakkolian
0 siblings, 1 reply; 2+ messages in thread
From: ron minnich @ 2007-01-17 16:00 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
they do things like this:
foo.h:
struct x {
#ifdef ZARDOZ
int i;
#endif
int j;
};
provider.c:
int somefunc(struct x *x){
x->j = 1;
}
a.c:
#include foo.h
struct x x;
somefunc(&x);
b.c
#define ZARDOZ
#include a.c
Yes, include a.c. I kid you not. So the type signature of the function
somefunc is different in a and b. This will all "work", with -T turned
off, but it's too clever for me.
We go for simpler things here in NM, such as a school down south
that, having had a principal dismissed on drug charges, and gang
fights, and sundry other problems, decided to hire an image
consultant, to provide the school with a logo, a standard presentation
style for their powerpont talks, rules for usage of the logo, and a
set of other tools to help improve the school's brand recognition.
Oops, I digressed. But NM is interesting, is it not? Our own Lottery
Authority hired a lobbyist, to ensure that our legislature not enact
rules requiring that Lottery money go to schools instead of Lottery
Authority staff. Lobbyist paid for by our Lottery Authority, a part of
the same government that controls its budget, so is this re-entrancy
in government? ... Oops, I digressed.
Working through it now .... twisty ... little ... maze. .......
ron
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] python won't link with type safe linker, i.e. -T
2007-01-17 16:00 [9fans] python won't link with type safe linker, i.e. -T ron minnich
@ 2007-01-17 17:20 ` Skip Tavakkolian
0 siblings, 0 replies; 2+ messages in thread
From: Skip Tavakkolian @ 2007-01-17 17:20 UTC (permalink / raw)
To: 9fans
> they do things like this:
>
> foo.h:
> struct x {
> #ifdef ZARDOZ
> int i;
> #endif
> int j;
> };
>
> provider.c:
> int somefunc(struct x *x){
> x->j = 1;
> }
> a.c:
> #include foo.h
>
> struct x x;
> somefunc(&x);
>
> b.c
> #define ZARDOZ
> #include a.c
>
>
> Yes, include a.c. I kid you not. So the type signature of the function
> somefunc is different in a and b. This will all "work", with -T turned
> off, but it's too clever for me.
>
if "they" were trying to reuse code - the only reason i can come up
with - "they" could have been more obvious, like:
/sys/src/games/4s.c
/sys/src/games/5s.c
> We go for simpler things here in NM, such as a school down south
> that, having had a principal dismissed on drug charges, and gang
> fights, and sundry other problems, decided to hire an image
> consultant, to provide the school with a logo, a standard presentation
> style for their powerpont talks, rules for usage of the logo, and a
> set of other tools to help improve the school's brand recognition.
> Oops, I digressed. But NM is interesting, is it not? Our own Lottery
> Authority hired a lobbyist, to ensure that our legislature not enact
> rules requiring that Lottery money go to schools instead of Lottery
> Authority staff. Lobbyist paid for by our Lottery Authority, a part of
> the same government that controls its budget, so is this re-entrancy
> in government? ... Oops, I digressed.
>
> Working through it now .... twisty ... little ... maze. .......
might just be the "Crawford" field effect, especially if they correlate with W sightings.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-17 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-17 16:00 [9fans] python won't link with type safe linker, i.e. -T ron minnich
2007-01-17 17:20 ` Skip Tavakkolian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).