Re: [PATCH v4 06/20] kernel-shark: Add basic methods for Data streams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 19 Nov 2020 18:01:30 +0200
"Yordan Karadzhov (VMware)" <y.karadz@xxxxxxxxx> wrote:

> Hi Steven,
> 
> I have no strong preference about having or not having this extra space.
> For me, having the space makes the C-like casting look more similar to a 
> new declaration on contrary to the C++-like casting that will be 
> something like this
> 
> 	unsigned long i(340);
> 	char c = char(i);
> 
> and looks more like a constructor call.
> Of course C++ will not let you cast number to pointer this way.

As long as you are consistent, but I'm just letting you know the
appropriate style for the Linux kernel, which is no space:

	type x = (type)y;

But again, this is really up to you, but just be aware if you submit to the
kernel, the above is the expected style.

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux