swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no autoDrop


From: Marcus G. Daniels
Subject: Re: no autoDrop
Date: 08 May 1998 10:52:08 -0700

>>>>> "PH" == Parviez HosseiniC <address@hidden> writes:

PH> at the top of your code. C doesn't understand YES or NO unless you
PH> define them. Currently, my guess is that you are sending

PH> [killSchedule setAutoDrop:];

PH> without a argument, which C ends up interpreting as 0.

Huh?

address@hidden $ cat t.m
main ()
{
  int val = YES;

  printf ("%d\n", val);
}
address@hidden $ gcc t.m
t.m: In function `main':
t.m:3: `YES' undeclared (first use in this function)
t.m:3: (Each undeclared identifier is reported only once
t.m:3: for each function it appears in.) 

But adding objc/objc.h, where YES and NO are defined as 1 and 0 we get:

address@hidden $ cat t.m
#include <objc/objc.h>

main ()
{
  int val = YES;

  printf ("%d\n", val);
}
address@hidden $ gcc t.m
address@hidden $ ./a.out
1

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]