This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
On Aug 28, 8:14pm, Andrew Cagney wrote: > > Yeah. Or maybe just check sizeof (int)? > > > > #if sizeof (int) <= 2 > > # define RANDOM_DATA_SIZE (1024) > > #else > > ... > > #endif > > I'm 98% certain you can't do that using ISO-C. You're right. (How is the preprocessor to know what sizeof (int) means?) Well, what about Jeff's idea then? Kevin
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |