Originally posted by Charlie68
View Post
Announcement
Collapse
No announcement yet.
Vote On A Distribution For Linux Benchmarking
Collapse
X
-
-
This poll makes me impression and explain why, this site is a very technical, very popular with users 'technical', which explains the success of Arch-Linux, but I am rather surprised Ubuntu so high as it is directed to a different target .
I apologize for my English.
Leave a comment:
-
Originally posted by boast View Postwhy is that? How is having a jump in C++ terrible compared to when doing it in ASM?Last edited by Akka; 02 August 2013, 04:37 AM.
Leave a comment:
-
Originally posted by jayrulez View PostDid you miss the sarcasm tag?
That's actually from Wayland or rather Weston... But I knew some idiot would claim it is ugly just because I said it is from Mir. It is the handle_setmaster function in this file: http://cgit.freedesktop.org/wayland/...eston-launch.c
I just changed some names around to remove any hint that it is from Weston.
Leave a comment:
-
Originally posted by nll_aSo if it's Canonical's code it's horrible, if it's someone else's code it's cool. Got it.
Leave a comment:
-
Originally posted by Akka View PostI think it is generally considered acceptable use of goto to use it in error management in c code? At least it is very common. I get the impression the use both in weston and wayland is this.
1.) char[] <-- will summon beelzebub to your house
2.) goto <-- will kill my dog
3.) union -- uint/char[] <-- will rupture space time continuum
and goto asm dump are ugly and sometimes insecure, im picky and pragmatic what can i say
Leave a comment:
-
Originally posted by jayrulez View PostI checked Wayland repo also and it seems that it uses goto more than Weston does.
http://cgit.freedesktop.org/wayland/...c/connection.c 15 instances
http://cgit.freedesktop.org/wayland/...yland-client.c 7 instances
http://cgit.freedesktop.org/wayland/...c/wayland-os.c 2 instances
http://cgit.freedesktop.org/wayland/...yland-server.c 5 instances
http://cgit.freedesktop.org/wayland/.../wayland-shm.c 3 instances
I don't think you needed to report a big for this as it is not really an issue with using goto as long as you use it properly.Last edited by Akka; 01 August 2013, 11:45 AM.
Leave a comment:
-
Originally posted by jayrulez View PostI checked Wayland repo also and it seems that it uses goto more than Weston does.
http://cgit.freedesktop.org/wayland/...c/connection.c 15 instances
http://cgit.freedesktop.org/wayland/...yland-client.c 7 instances
http://cgit.freedesktop.org/wayland/...c/wayland-os.c 2 instances
http://cgit.freedesktop.org/wayland/...yland-server.c 5 instances
http://cgit.freedesktop.org/wayland/.../wayland-shm.c 3 instances
I don't think you needed to report a big for this as it is not really an issue with using goto as long as you use it properly.
Leave a comment:
-
Originally posted by jrch2k8 View Postyes i did was 1 am my gmt when i replied but that in plain ISO C XX is tolerable and since weston is a toy i can understand is less rigid about this kind of stuff but when you put C++ i snapped seeing a goto
well the good news i checked most wayland code and is neat and goto free, so i suppose this was the kinda "is a toy code i don't care" i will report it as a bug either way in case someone wants to use weston for production later
http://cgit.freedesktop.org/wayland/...c/connection.c 15 instances
http://cgit.freedesktop.org/wayland/...yland-client.c 7 instances
http://cgit.freedesktop.org/wayland/...c/wayland-os.c 2 instances
http://cgit.freedesktop.org/wayland/...yland-server.c 5 instances
http://cgit.freedesktop.org/wayland/.../wayland-shm.c 3 instances
I don't think you needed to report a big for this as it is not really an issue with using goto as long as you use it properly.
Leave a comment:
Leave a comment: