Re: [PATCH 3/3] tty: Mark goldfish_tty_line_count as const

From: Roman Kiryanov
Date: Tue Jul 24 2018 - 16:00:28 EST


> Then why not just make it a #define?

With "const" the diff is smaller.

> No need to waste the memory of a variable, right?

I believe the compiler will produce the same binary for const and for
#define if optimization is enabled.