Lines Matching full:flag
9 # KDB principal flag definitions copied from kdb.h
30 # Input tables -- list of tuples of the form (name, flag, invert)
85 # Combined input-to-flag lookup table, to be filled in by
95 # Inverted table to look up ftuples by flag value, to be filled in by
104 def __init__(self, name, flag, invert): argument
106 self.flag = flag
110 return "Ftuple" + str((self.name, self.flag, self.invert))
113 return _flagnames[self.flag]
149 # Populate combined input-to-flag lookup table. This will
158 kadmin_itable[x.flag] = x
160 strconv_itable[x.flag] = x
162 sym_itable[x.flag] = x
165 # Convert the bit number of a flag to a string. Remove the
166 # 'KRB5_KDB_' prefix. Give an 8-digit hexadecimal number if the flag
175 # Return a list of flag names from a flag word.
197 flag, invert = x.flag, x.invert
202 flag, invert = int(s, 16), False
206 return (0, ~flag) if invert else (flag, ~0)
213 # orderings when the same flag bit appears in both the positive and
225 # Print C table of input flag specifiers for lib/kadm5/str_conv.c.
228 a = sorted(pflags.items(), key=lambda k, v: (v.flag, -v.invert, k))
238 # Print C table of output flag names for lib/kadm5/str_conv.c.
242 flag = 1 << i
243 if flag > max(_flagnames.keys()):
246 s = ' "%s",' % _flagnames[flag]
249 print('%-32s/* 0x%08x */' % (s, flag))