> -----Original Message----- > From: Tom Tromey [mailto:tromey@redhat.com] > Sent: Friday, June 22, 2012 10:08 PM [...] > Jan> Make it then 'enum print_source_lines_flags flags'. > > Markus> Flags is intended as bit vector. The enum just gives names to > Markus> the individual bits. > > In C it is ok to use the enum type the way that Jan suggests; and it > makes debugging a bit simpler since gdb will print the symbolic value. > gdb doesn't do this consistently (it doesn't do anything consistently > :-); but it is nice to do in new code. It's consistent in that, at least;-) I pointed out in a reply to Jan already that this won't compile as C++. I changed it to an enum. Regards, Markus.