Hi,
Steve Litt wrote:
<<
> Bitwise Operators:
>
> Pg 63:
> /* getbits: get n bits from position p */
>
> unigned int getbits(unsigned int x, int p, int n)
> {
>return (x >> (p + 1 - n)) & ~(~0 << n);
> }
Stuff like this is the reason I soon abandoned K&R as a learning tool,
and used it only t
On Sat, 25 Jun 2016 01:21:33 +0200
Irrwahn wrote:
> For the
> interested, David Tribble's "Go To Statement Considered
> Harmful: A Retrospective"[4] makes for a good read.
>
>
> [1] NB: "break" and "continue" are just "goto" in disguise.
>
> [2] For example in the notorious case of releasing
I think,
In this discussion about 'goto' we are forgetting one important fact
about it. This is, the fact that 'goto' is simply a jump and a
corresponding lable. This makes 'goto' jumps possible at any point in
code which is absolutely not necessary. Evolving from simple 'goto'
and lable statement
On Sat, Jun 25, 2016 at 09:27:40AM +0200, Edward Bartolo wrote:
[cut]
>
> execution continues from here
>
> This can still be done by something like this:
> do {
> if (test1) break;
> if (test2) break;
> if (test3) break;
> ...
> if (testN) break;
>
> more code here
> } while (0);
The outcome of this thread was that session management is possible
without policykit, at the expense of few little hacks.
Unfortunately, without policykit, the users are not allowed to
mount removable media like usb memory sticks. Few years ago the
permissions were handled in udev rul
Irrwahn:
...
> [4] http://david.tribble.com/text/goto.html
As an mental exercise, look at part II in the above, and make programs
for if/while etc. with labels and goto's.
E.g. a general loop is
loop_init();
loop_start:
loop_pre();
if (condition()) goto loop_start;
else goto loop_end;
John Morris:
...
> Or you are doing the sort of things most C code written these days
> does. My last C program was taking to an RFID writer over a serial
> port to implement ISO 28560 standard library article tags. Bit
> fiddling is useful when the storage available on a typical RFID tag is
> le
om: Edward Bartolo
Hi,
On 25/06/2016, KatolaZ wrote:
> On Sat, Jun 25, 2016 at 09:27:40AM +0200, Edward Bartolo wrote:
>
> [cut]
>
>>
>> execution continues from here
>>
>> This can still be done by something like this:
>> do {
>> if (test1) break;
>> if (test2) break;
>> if (test3) break;
Hi,
With a switch statement execution continues immediately after the
switch. My example also involved a chunk of code that followed the
series of if statements that was also skipped by the goto jump. A
switch statement cannot jump a successive number of lines but my
little example can. In fact, I
Am Sat, 25 Jun 2016 12:00:02 +
schrieb Didier Kryn :
Salut Didier!
> Unfortunately, without policykit, the users are not allowed
> to mount removable media like usb memory sticks. Few years ago the
> permissions were handled in udev rules, but nowadays udev rules have
> shrinked to one
The creeping continues.
How difficult is it to repackage samba-libs without libsystemd0?
Arthur.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Hi,
<<
A
switch statement cannot jump a successive number of lines but my
little example can.
>>
Rereading my previous email, I think this is a mistake on my part. A
switch's default clause can be used to execute such a number of lines.
The only thing that a switch cannot do is use a non-constant
On Sat, 25 Jun 2016 18:20:19 +0930
Arthur Marsh wrote:
> The creeping continues.
>
> How difficult is it to repackage samba-libs without libsystemd0?
>
> Arthur.
My only Windows computer gets fired up less than two hours per month,
so I have no need for Samba. I've long ago forgotten most of
On 25/06/16 15:25, Steve Litt wrote:
On Sat, 25 Jun 2016 18:20:19 +0930
Arthur Marsh wrote:
The creeping continues.
How difficult is it to repackage samba-libs without libsystemd0?
Arthur.
My only Windows computer gets fired up less than two hours per month,
so I have no need for Samba. I'
Rainer Weikusat wrote:
> I can neither count on being 'in control of hardware' nor on 'people
> editing configuration files'.
Then apologies, it appears I misunderstood your position.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.o
On Sat, 25 Jun 2016 15:27:54 +0100
Rowland Penny wrote:
> It is probably easier than that, the Samba 'configure' code has a
> '--without-systemd' switch.
>
> Just need to alter debian/rules etc
>
> Rowland
* *
\ o /
\|/
| C O O L
On 25/06/16 17:34, Steve Litt wrote:
On Sat, 25 Jun 2016 15:27:54 +0100
Rowland Penny wrote:
It is probably easier than that, the Samba 'configure' code has a
'--without-systemd' switch.
Just need to alter debian/rules etc
Rowland
* *
\ o /
\|/
|
Steve Litt wrote:
> On Sat, 25 Jun 2016 15:27:54 +0100
> Rowland Penny wrote:
>
>
> > It is probably easier than that, the Samba 'configure' code has a
> > '--without-systemd' switch.
> >
> > Just need to alter debian/rules etc
> >
> > Rowland
>
>* *
> \ o /
> \|
Hi all!
I've a question about how to work with the list: Is there a way to
search an archive of lists and/or single messages for certain topics.
Background: Some time ago i asked about overheating and i got some very
helpful replies - but unfortunately i lost the file where i saved
them :-(
Than
W dniu 25.06.2016 o 19:19, emnin...@riseup.net pisze:
Hi all!
I've a question about how to work with the list: Is there a way to
search an archive of lists and/or single messages for certain topics.
Background: Some time ago i asked about overheating and i got some very
helpful replies - but un
Le 25/06/2016 18:34, Steve Litt a écrit :
On Sat, 25 Jun 2016 15:27:54 +0100
Rowland Penny wrote:
>It is probably easier than that, the Samba 'configure' code has a
>'--without-systemd' switch.
>
>Just need to alter debian/rules etc
>
>Rowland
* *
\ o /
\|/
21 matches
Mail list logo