Le 18/07/2013 17:32, Jussi Lahtinen a écrit : >> Uhmm... in ufficiale Jack documention I read: >> >> ***** >> typedef enum JackStatus jack_status_t >> Status word returned from several JACK operations, formed by OR-ing >> together the relevant JackStatus bits. >> ***** >> >> and more: >> >> ******** >> enum JackStatus >> >> jack_status_t bits >> ******** >> >> ...that: BITS What'ld it could be ? >> > > > I think Benoit is right about Integer. > http://en.wikipedia.org/wiki/Word_%28computer_architecture%29 > > In MS way (the wrong way) it was; word (16bit), dword (32bit) and qword > (64bit). > > > Bits refers to the fact that status constants are presented by single bit. > > Example (these are byte constants): > Constant A = 1, and in binary 00000001 > Constant B = 2, and in binary 00000010 > Constant C = 4, and in binary 00000100 > Constant D = 8, and in binary 00001000 > > etc. > > So, one byte size variable can present eight statuses at same time. > Example, if variable x has status A and C, it has value 5 = 00000101, etc. > > > Jussi
Yep. To use external functions, you must know how C code is translated by the compiler. And an 'enum' is translated to an 'int', which is an Integer in Gambas. -- Benoît Minisini ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
