Re: what is : ?
- From: Wolfgang Sourdeau <wolfgang ultim net>
- To: gtk-app-devel-list gnome org
- Subject: Re: what is : ?
- Date: Sat, 21 Oct 2000 05:29:31 -0400
La plume légère, à Tue, Oct 17, 2000 at 05:18:51PM +0900, heure d'inpiration,
"ÀÌÀç±Ç" écrivait en ces mots:
guint active : 1;
guint draw_indicator : 1;
GdkWindow *event_window;
};
in here,
I wonder how to use : .
I have never seen this operator before.
a ':' in a struct permits to specify that the element specified on the left
will take a specified amount of bits, instead of taking sizeof (type).
I guess it permits to reduce memory usage by a few bytes... But I don't think
it's really useful anymore.
Wolfgang
--
A chicken is an egg's way of producing more eggs.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]