lkml.org 
[lkml]   [2023]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 12/15] tty: convert THROTTLE constants into enum
From
On 19. 09. 23, 12:10, Ilpo Järvinen wrote:
> On Tue, 19 Sep 2023, Jiri Slaby (SUSE) wrote:
>
>> And make an explicit constant for zero too. This allows for easier type
>> checking of the parameter.
>>
>> Note: tty_struct::flow_change is kept as int because include/tty.h
>> (tty_struct) doesn't see tty/tty.h (this enum).
>
> And it cannot moved there because of what?

It's possible, but would make the constants "public". I hoped for
forward enum declaration, but since enum is no longer a simple int, the
compilation then fails with incomplete type of tty_struct.

thanks,
--
js
suse labs

\
 
 \ /
  Last update: 2023-09-19 13:35    [W:0.041 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site