Index: trunk/src/strflags.c =================================================================== --- trunk/src/strflags.c (revision 2862) +++ trunk/src/strflags.c (revision 2863) @@ -78,6 +78,9 @@ }; #undef N +const int pcb_object_flagbits_len = ENTRIES(pcb_object_flagbits); + + /* * This helper function maintains a small list of buffers which are * used by flags_to_string(). Each buffer is allocated from the heap, Index: trunk/src/strflags.h =================================================================== --- trunk/src/strflags.h (revision 2862) +++ trunk/src/strflags.h (revision 2863) @@ -47,6 +47,7 @@ /* All flags natively known by the core */ extern FlagBitsType pcb_object_flagbits[]; +extern const int pcb_object_flagbits_len; /* The purpose of this interface is to make the file format able to handle more than 32 flags, and to hide the internal details of