• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_INTERNAL_GLOBAL_STRINGS_H
2 #define Py_INTERNAL_GLOBAL_STRINGS_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #ifndef Py_BUILD_CORE
8 #  error "this header requires Py_BUILD_CORE define"
9 #endif
10 
11 // The data structure & init here are inspired by Tools/build/deepfreeze.py.
12 
13 // All field names generated by ASCII_STR() have a common prefix,
14 // to help avoid collisions with keywords, macros, etc.
15 
16 #define STRUCT_FOR_ASCII_STR(LITERAL) \
17     struct { \
18         PyASCIIObject _ascii; \
19         uint8_t _data[sizeof(LITERAL)]; \
20     }
21 #define STRUCT_FOR_STR(NAME, LITERAL) \
22     STRUCT_FOR_ASCII_STR(LITERAL) _py_ ## NAME;
23 #define STRUCT_FOR_ID(NAME) \
24     STRUCT_FOR_ASCII_STR(#NAME) _py_ ## NAME;
25 
26 // XXX Order by frequency of use?
27 
28 /* The following is auto-generated by Tools/build/generate_global_objects.py. */
29 struct _Py_global_strings {
30     struct {
31         STRUCT_FOR_STR(anon_dictcomp, "<dictcomp>")
32         STRUCT_FOR_STR(anon_genexpr, "<genexpr>")
33         STRUCT_FOR_STR(anon_lambda, "<lambda>")
34         STRUCT_FOR_STR(anon_listcomp, "<listcomp>")
35         STRUCT_FOR_STR(anon_module, "<module>")
36         STRUCT_FOR_STR(anon_null, "<NULL>")
37         STRUCT_FOR_STR(anon_setcomp, "<setcomp>")
38         STRUCT_FOR_STR(anon_string, "<string>")
39         STRUCT_FOR_STR(anon_unknown, "<unknown>")
40         STRUCT_FOR_STR(dbl_close_br, "}}")
41         STRUCT_FOR_STR(dbl_open_br, "{{")
42         STRUCT_FOR_STR(dbl_percent, "%%")
43         STRUCT_FOR_STR(defaults, ".defaults")
44         STRUCT_FOR_STR(dot_locals, ".<locals>")
45         STRUCT_FOR_STR(empty, "")
46         STRUCT_FOR_STR(generic_base, ".generic_base")
47         STRUCT_FOR_STR(json_decoder, "json.decoder")
48         STRUCT_FOR_STR(kwdefaults, ".kwdefaults")
49         STRUCT_FOR_STR(list_err, "list index out of range")
50         STRUCT_FOR_STR(str_replace_inf, "1e309")
51         STRUCT_FOR_STR(type_params, ".type_params")
52         STRUCT_FOR_STR(utf_8, "utf-8")
53     } literals;
54 
55     struct {
56         STRUCT_FOR_ID(CANCELLED)
57         STRUCT_FOR_ID(FINISHED)
58         STRUCT_FOR_ID(False)
59         STRUCT_FOR_ID(JSONDecodeError)
60         STRUCT_FOR_ID(PENDING)
61         STRUCT_FOR_ID(Py_Repr)
62         STRUCT_FOR_ID(TextIOWrapper)
63         STRUCT_FOR_ID(True)
64         STRUCT_FOR_ID(WarningMessage)
65         STRUCT_FOR_ID(_WindowsConsoleIO)
66         STRUCT_FOR_ID(__IOBase_closed)
67         STRUCT_FOR_ID(__abc_tpflags__)
68         STRUCT_FOR_ID(__abs__)
69         STRUCT_FOR_ID(__abstractmethods__)
70         STRUCT_FOR_ID(__add__)
71         STRUCT_FOR_ID(__aenter__)
72         STRUCT_FOR_ID(__aexit__)
73         STRUCT_FOR_ID(__aiter__)
74         STRUCT_FOR_ID(__all__)
75         STRUCT_FOR_ID(__and__)
76         STRUCT_FOR_ID(__anext__)
77         STRUCT_FOR_ID(__annotations__)
78         STRUCT_FOR_ID(__args__)
79         STRUCT_FOR_ID(__await__)
80         STRUCT_FOR_ID(__bases__)
81         STRUCT_FOR_ID(__bool__)
82         STRUCT_FOR_ID(__buffer__)
83         STRUCT_FOR_ID(__build_class__)
84         STRUCT_FOR_ID(__builtins__)
85         STRUCT_FOR_ID(__bytes__)
86         STRUCT_FOR_ID(__call__)
87         STRUCT_FOR_ID(__cantrace__)
88         STRUCT_FOR_ID(__class__)
89         STRUCT_FOR_ID(__class_getitem__)
90         STRUCT_FOR_ID(__classcell__)
91         STRUCT_FOR_ID(__classdict__)
92         STRUCT_FOR_ID(__classdictcell__)
93         STRUCT_FOR_ID(__complex__)
94         STRUCT_FOR_ID(__contains__)
95         STRUCT_FOR_ID(__copy__)
96         STRUCT_FOR_ID(__ctypes_from_outparam__)
97         STRUCT_FOR_ID(__del__)
98         STRUCT_FOR_ID(__delattr__)
99         STRUCT_FOR_ID(__delete__)
100         STRUCT_FOR_ID(__delitem__)
101         STRUCT_FOR_ID(__dict__)
102         STRUCT_FOR_ID(__dictoffset__)
103         STRUCT_FOR_ID(__dir__)
104         STRUCT_FOR_ID(__divmod__)
105         STRUCT_FOR_ID(__doc__)
106         STRUCT_FOR_ID(__enter__)
107         STRUCT_FOR_ID(__eq__)
108         STRUCT_FOR_ID(__exit__)
109         STRUCT_FOR_ID(__file__)
110         STRUCT_FOR_ID(__firstlineno__)
111         STRUCT_FOR_ID(__float__)
112         STRUCT_FOR_ID(__floordiv__)
113         STRUCT_FOR_ID(__format__)
114         STRUCT_FOR_ID(__fspath__)
115         STRUCT_FOR_ID(__ge__)
116         STRUCT_FOR_ID(__get__)
117         STRUCT_FOR_ID(__getattr__)
118         STRUCT_FOR_ID(__getattribute__)
119         STRUCT_FOR_ID(__getinitargs__)
120         STRUCT_FOR_ID(__getitem__)
121         STRUCT_FOR_ID(__getnewargs__)
122         STRUCT_FOR_ID(__getnewargs_ex__)
123         STRUCT_FOR_ID(__getstate__)
124         STRUCT_FOR_ID(__gt__)
125         STRUCT_FOR_ID(__hash__)
126         STRUCT_FOR_ID(__iadd__)
127         STRUCT_FOR_ID(__iand__)
128         STRUCT_FOR_ID(__ifloordiv__)
129         STRUCT_FOR_ID(__ilshift__)
130         STRUCT_FOR_ID(__imatmul__)
131         STRUCT_FOR_ID(__imod__)
132         STRUCT_FOR_ID(__import__)
133         STRUCT_FOR_ID(__imul__)
134         STRUCT_FOR_ID(__index__)
135         STRUCT_FOR_ID(__init__)
136         STRUCT_FOR_ID(__init_subclass__)
137         STRUCT_FOR_ID(__instancecheck__)
138         STRUCT_FOR_ID(__int__)
139         STRUCT_FOR_ID(__invert__)
140         STRUCT_FOR_ID(__ior__)
141         STRUCT_FOR_ID(__ipow__)
142         STRUCT_FOR_ID(__irshift__)
143         STRUCT_FOR_ID(__isabstractmethod__)
144         STRUCT_FOR_ID(__isub__)
145         STRUCT_FOR_ID(__iter__)
146         STRUCT_FOR_ID(__itruediv__)
147         STRUCT_FOR_ID(__ixor__)
148         STRUCT_FOR_ID(__le__)
149         STRUCT_FOR_ID(__len__)
150         STRUCT_FOR_ID(__length_hint__)
151         STRUCT_FOR_ID(__lltrace__)
152         STRUCT_FOR_ID(__loader__)
153         STRUCT_FOR_ID(__lshift__)
154         STRUCT_FOR_ID(__lt__)
155         STRUCT_FOR_ID(__main__)
156         STRUCT_FOR_ID(__match_args__)
157         STRUCT_FOR_ID(__matmul__)
158         STRUCT_FOR_ID(__missing__)
159         STRUCT_FOR_ID(__mod__)
160         STRUCT_FOR_ID(__module__)
161         STRUCT_FOR_ID(__mro_entries__)
162         STRUCT_FOR_ID(__mul__)
163         STRUCT_FOR_ID(__name__)
164         STRUCT_FOR_ID(__ne__)
165         STRUCT_FOR_ID(__neg__)
166         STRUCT_FOR_ID(__new__)
167         STRUCT_FOR_ID(__newobj__)
168         STRUCT_FOR_ID(__newobj_ex__)
169         STRUCT_FOR_ID(__next__)
170         STRUCT_FOR_ID(__notes__)
171         STRUCT_FOR_ID(__or__)
172         STRUCT_FOR_ID(__orig_class__)
173         STRUCT_FOR_ID(__origin__)
174         STRUCT_FOR_ID(__package__)
175         STRUCT_FOR_ID(__parameters__)
176         STRUCT_FOR_ID(__path__)
177         STRUCT_FOR_ID(__pos__)
178         STRUCT_FOR_ID(__pow__)
179         STRUCT_FOR_ID(__prepare__)
180         STRUCT_FOR_ID(__qualname__)
181         STRUCT_FOR_ID(__radd__)
182         STRUCT_FOR_ID(__rand__)
183         STRUCT_FOR_ID(__rdivmod__)
184         STRUCT_FOR_ID(__reduce__)
185         STRUCT_FOR_ID(__reduce_ex__)
186         STRUCT_FOR_ID(__release_buffer__)
187         STRUCT_FOR_ID(__repr__)
188         STRUCT_FOR_ID(__reversed__)
189         STRUCT_FOR_ID(__rfloordiv__)
190         STRUCT_FOR_ID(__rlshift__)
191         STRUCT_FOR_ID(__rmatmul__)
192         STRUCT_FOR_ID(__rmod__)
193         STRUCT_FOR_ID(__rmul__)
194         STRUCT_FOR_ID(__ror__)
195         STRUCT_FOR_ID(__round__)
196         STRUCT_FOR_ID(__rpow__)
197         STRUCT_FOR_ID(__rrshift__)
198         STRUCT_FOR_ID(__rshift__)
199         STRUCT_FOR_ID(__rsub__)
200         STRUCT_FOR_ID(__rtruediv__)
201         STRUCT_FOR_ID(__rxor__)
202         STRUCT_FOR_ID(__set__)
203         STRUCT_FOR_ID(__set_name__)
204         STRUCT_FOR_ID(__setattr__)
205         STRUCT_FOR_ID(__setitem__)
206         STRUCT_FOR_ID(__setstate__)
207         STRUCT_FOR_ID(__sizeof__)
208         STRUCT_FOR_ID(__slotnames__)
209         STRUCT_FOR_ID(__slots__)
210         STRUCT_FOR_ID(__spec__)
211         STRUCT_FOR_ID(__static_attributes__)
212         STRUCT_FOR_ID(__str__)
213         STRUCT_FOR_ID(__sub__)
214         STRUCT_FOR_ID(__subclasscheck__)
215         STRUCT_FOR_ID(__subclasshook__)
216         STRUCT_FOR_ID(__truediv__)
217         STRUCT_FOR_ID(__trunc__)
218         STRUCT_FOR_ID(__type_params__)
219         STRUCT_FOR_ID(__typing_is_unpacked_typevartuple__)
220         STRUCT_FOR_ID(__typing_prepare_subst__)
221         STRUCT_FOR_ID(__typing_subst__)
222         STRUCT_FOR_ID(__typing_unpacked_tuple_args__)
223         STRUCT_FOR_ID(__warningregistry__)
224         STRUCT_FOR_ID(__weaklistoffset__)
225         STRUCT_FOR_ID(__weakref__)
226         STRUCT_FOR_ID(__xor__)
227         STRUCT_FOR_ID(_abc_impl)
228         STRUCT_FOR_ID(_abstract_)
229         STRUCT_FOR_ID(_active)
230         STRUCT_FOR_ID(_align_)
231         STRUCT_FOR_ID(_annotation)
232         STRUCT_FOR_ID(_anonymous_)
233         STRUCT_FOR_ID(_argtypes_)
234         STRUCT_FOR_ID(_as_parameter_)
235         STRUCT_FOR_ID(_asyncio_future_blocking)
236         STRUCT_FOR_ID(_blksize)
237         STRUCT_FOR_ID(_bootstrap)
238         STRUCT_FOR_ID(_check_retval_)
239         STRUCT_FOR_ID(_dealloc_warn)
240         STRUCT_FOR_ID(_feature_version)
241         STRUCT_FOR_ID(_field_types)
242         STRUCT_FOR_ID(_fields_)
243         STRUCT_FOR_ID(_finalizing)
244         STRUCT_FOR_ID(_find_and_load)
245         STRUCT_FOR_ID(_fix_up_module)
246         STRUCT_FOR_ID(_flags_)
247         STRUCT_FOR_ID(_get_sourcefile)
248         STRUCT_FOR_ID(_handle_fromlist)
249         STRUCT_FOR_ID(_initializing)
250         STRUCT_FOR_ID(_io)
251         STRUCT_FOR_ID(_is_text_encoding)
252         STRUCT_FOR_ID(_length_)
253         STRUCT_FOR_ID(_limbo)
254         STRUCT_FOR_ID(_lock_unlock_module)
255         STRUCT_FOR_ID(_loop)
256         STRUCT_FOR_ID(_needs_com_addref_)
257         STRUCT_FOR_ID(_only_immortal)
258         STRUCT_FOR_ID(_pack_)
259         STRUCT_FOR_ID(_restype_)
260         STRUCT_FOR_ID(_showwarnmsg)
261         STRUCT_FOR_ID(_shutdown)
262         STRUCT_FOR_ID(_slotnames)
263         STRUCT_FOR_ID(_strptime)
264         STRUCT_FOR_ID(_strptime_datetime)
265         STRUCT_FOR_ID(_swappedbytes_)
266         STRUCT_FOR_ID(_type_)
267         STRUCT_FOR_ID(_uninitialized_submodules)
268         STRUCT_FOR_ID(_warn_unawaited_coroutine)
269         STRUCT_FOR_ID(_xoptions)
270         STRUCT_FOR_ID(abs_tol)
271         STRUCT_FOR_ID(access)
272         STRUCT_FOR_ID(aclose)
273         STRUCT_FOR_ID(add)
274         STRUCT_FOR_ID(add_done_callback)
275         STRUCT_FOR_ID(after_in_child)
276         STRUCT_FOR_ID(after_in_parent)
277         STRUCT_FOR_ID(aggregate_class)
278         STRUCT_FOR_ID(alias)
279         STRUCT_FOR_ID(allow_code)
280         STRUCT_FOR_ID(append)
281         STRUCT_FOR_ID(arg)
282         STRUCT_FOR_ID(argdefs)
283         STRUCT_FOR_ID(args)
284         STRUCT_FOR_ID(arguments)
285         STRUCT_FOR_ID(argv)
286         STRUCT_FOR_ID(as_integer_ratio)
287         STRUCT_FOR_ID(asend)
288         STRUCT_FOR_ID(ast)
289         STRUCT_FOR_ID(athrow)
290         STRUCT_FOR_ID(attribute)
291         STRUCT_FOR_ID(authorizer_callback)
292         STRUCT_FOR_ID(autocommit)
293         STRUCT_FOR_ID(backtick)
294         STRUCT_FOR_ID(base)
295         STRUCT_FOR_ID(before)
296         STRUCT_FOR_ID(big)
297         STRUCT_FOR_ID(binary_form)
298         STRUCT_FOR_ID(block)
299         STRUCT_FOR_ID(bound)
300         STRUCT_FOR_ID(buffer)
301         STRUCT_FOR_ID(buffer_callback)
302         STRUCT_FOR_ID(buffer_size)
303         STRUCT_FOR_ID(buffering)
304         STRUCT_FOR_ID(buffers)
305         STRUCT_FOR_ID(bufsize)
306         STRUCT_FOR_ID(builtins)
307         STRUCT_FOR_ID(byteorder)
308         STRUCT_FOR_ID(bytes)
309         STRUCT_FOR_ID(bytes_per_sep)
310         STRUCT_FOR_ID(c_call)
311         STRUCT_FOR_ID(c_exception)
312         STRUCT_FOR_ID(c_return)
313         STRUCT_FOR_ID(cached_datetime_module)
314         STRUCT_FOR_ID(cached_statements)
315         STRUCT_FOR_ID(cadata)
316         STRUCT_FOR_ID(cafile)
317         STRUCT_FOR_ID(call)
318         STRUCT_FOR_ID(call_exception_handler)
319         STRUCT_FOR_ID(call_soon)
320         STRUCT_FOR_ID(callback)
321         STRUCT_FOR_ID(cancel)
322         STRUCT_FOR_ID(capath)
323         STRUCT_FOR_ID(category)
324         STRUCT_FOR_ID(cb_type)
325         STRUCT_FOR_ID(certfile)
326         STRUCT_FOR_ID(check_same_thread)
327         STRUCT_FOR_ID(clear)
328         STRUCT_FOR_ID(close)
329         STRUCT_FOR_ID(closed)
330         STRUCT_FOR_ID(closefd)
331         STRUCT_FOR_ID(closure)
332         STRUCT_FOR_ID(co_argcount)
333         STRUCT_FOR_ID(co_cellvars)
334         STRUCT_FOR_ID(co_code)
335         STRUCT_FOR_ID(co_consts)
336         STRUCT_FOR_ID(co_exceptiontable)
337         STRUCT_FOR_ID(co_filename)
338         STRUCT_FOR_ID(co_firstlineno)
339         STRUCT_FOR_ID(co_flags)
340         STRUCT_FOR_ID(co_freevars)
341         STRUCT_FOR_ID(co_kwonlyargcount)
342         STRUCT_FOR_ID(co_linetable)
343         STRUCT_FOR_ID(co_name)
344         STRUCT_FOR_ID(co_names)
345         STRUCT_FOR_ID(co_nlocals)
346         STRUCT_FOR_ID(co_posonlyargcount)
347         STRUCT_FOR_ID(co_qualname)
348         STRUCT_FOR_ID(co_stacksize)
349         STRUCT_FOR_ID(co_varnames)
350         STRUCT_FOR_ID(code)
351         STRUCT_FOR_ID(col_offset)
352         STRUCT_FOR_ID(command)
353         STRUCT_FOR_ID(comment_factory)
354         STRUCT_FOR_ID(compile_mode)
355         STRUCT_FOR_ID(consts)
356         STRUCT_FOR_ID(context)
357         STRUCT_FOR_ID(contravariant)
358         STRUCT_FOR_ID(cookie)
359         STRUCT_FOR_ID(copy)
360         STRUCT_FOR_ID(copyreg)
361         STRUCT_FOR_ID(coro)
362         STRUCT_FOR_ID(count)
363         STRUCT_FOR_ID(covariant)
364         STRUCT_FOR_ID(cwd)
365         STRUCT_FOR_ID(data)
366         STRUCT_FOR_ID(database)
367         STRUCT_FOR_ID(day)
368         STRUCT_FOR_ID(decode)
369         STRUCT_FOR_ID(decoder)
370         STRUCT_FOR_ID(default)
371         STRUCT_FOR_ID(defaultaction)
372         STRUCT_FOR_ID(delete)
373         STRUCT_FOR_ID(depth)
374         STRUCT_FOR_ID(desired_access)
375         STRUCT_FOR_ID(detect_types)
376         STRUCT_FOR_ID(deterministic)
377         STRUCT_FOR_ID(device)
378         STRUCT_FOR_ID(dict)
379         STRUCT_FOR_ID(dictcomp)
380         STRUCT_FOR_ID(difference_update)
381         STRUCT_FOR_ID(digest)
382         STRUCT_FOR_ID(digest_size)
383         STRUCT_FOR_ID(digestmod)
384         STRUCT_FOR_ID(dir_fd)
385         STRUCT_FOR_ID(discard)
386         STRUCT_FOR_ID(dispatch_table)
387         STRUCT_FOR_ID(displayhook)
388         STRUCT_FOR_ID(dklen)
389         STRUCT_FOR_ID(doc)
390         STRUCT_FOR_ID(dont_inherit)
391         STRUCT_FOR_ID(dst)
392         STRUCT_FOR_ID(dst_dir_fd)
393         STRUCT_FOR_ID(eager_start)
394         STRUCT_FOR_ID(effective_ids)
395         STRUCT_FOR_ID(element_factory)
396         STRUCT_FOR_ID(encode)
397         STRUCT_FOR_ID(encoding)
398         STRUCT_FOR_ID(end)
399         STRUCT_FOR_ID(end_col_offset)
400         STRUCT_FOR_ID(end_lineno)
401         STRUCT_FOR_ID(end_offset)
402         STRUCT_FOR_ID(endpos)
403         STRUCT_FOR_ID(entrypoint)
404         STRUCT_FOR_ID(env)
405         STRUCT_FOR_ID(errors)
406         STRUCT_FOR_ID(event)
407         STRUCT_FOR_ID(eventmask)
408         STRUCT_FOR_ID(exc_type)
409         STRUCT_FOR_ID(exc_value)
410         STRUCT_FOR_ID(excepthook)
411         STRUCT_FOR_ID(exception)
412         STRUCT_FOR_ID(existing_file_name)
413         STRUCT_FOR_ID(exp)
414         STRUCT_FOR_ID(extend)
415         STRUCT_FOR_ID(extra_tokens)
416         STRUCT_FOR_ID(facility)
417         STRUCT_FOR_ID(factory)
418         STRUCT_FOR_ID(false)
419         STRUCT_FOR_ID(family)
420         STRUCT_FOR_ID(fanout)
421         STRUCT_FOR_ID(fd)
422         STRUCT_FOR_ID(fd2)
423         STRUCT_FOR_ID(fdel)
424         STRUCT_FOR_ID(fget)
425         STRUCT_FOR_ID(file)
426         STRUCT_FOR_ID(file_actions)
427         STRUCT_FOR_ID(filename)
428         STRUCT_FOR_ID(fileno)
429         STRUCT_FOR_ID(filepath)
430         STRUCT_FOR_ID(fillvalue)
431         STRUCT_FOR_ID(filter)
432         STRUCT_FOR_ID(filters)
433         STRUCT_FOR_ID(final)
434         STRUCT_FOR_ID(find_class)
435         STRUCT_FOR_ID(fix_imports)
436         STRUCT_FOR_ID(flags)
437         STRUCT_FOR_ID(flush)
438         STRUCT_FOR_ID(fold)
439         STRUCT_FOR_ID(follow_symlinks)
440         STRUCT_FOR_ID(format)
441         STRUCT_FOR_ID(from_param)
442         STRUCT_FOR_ID(fromlist)
443         STRUCT_FOR_ID(fromtimestamp)
444         STRUCT_FOR_ID(fromutc)
445         STRUCT_FOR_ID(fset)
446         STRUCT_FOR_ID(func)
447         STRUCT_FOR_ID(future)
448         STRUCT_FOR_ID(generation)
449         STRUCT_FOR_ID(genexpr)
450         STRUCT_FOR_ID(get)
451         STRUCT_FOR_ID(get_debug)
452         STRUCT_FOR_ID(get_event_loop)
453         STRUCT_FOR_ID(get_loop)
454         STRUCT_FOR_ID(get_source)
455         STRUCT_FOR_ID(getattr)
456         STRUCT_FOR_ID(getstate)
457         STRUCT_FOR_ID(gid)
458         STRUCT_FOR_ID(globals)
459         STRUCT_FOR_ID(groupindex)
460         STRUCT_FOR_ID(groups)
461         STRUCT_FOR_ID(handle)
462         STRUCT_FOR_ID(handle_seq)
463         STRUCT_FOR_ID(has_location)
464         STRUCT_FOR_ID(hash_name)
465         STRUCT_FOR_ID(header)
466         STRUCT_FOR_ID(headers)
467         STRUCT_FOR_ID(hi)
468         STRUCT_FOR_ID(hook)
469         STRUCT_FOR_ID(hour)
470         STRUCT_FOR_ID(ident)
471         STRUCT_FOR_ID(identity_hint)
472         STRUCT_FOR_ID(ignore)
473         STRUCT_FOR_ID(imag)
474         STRUCT_FOR_ID(importlib)
475         STRUCT_FOR_ID(in_fd)
476         STRUCT_FOR_ID(incoming)
477         STRUCT_FOR_ID(indexgroup)
478         STRUCT_FOR_ID(inf)
479         STRUCT_FOR_ID(infer_variance)
480         STRUCT_FOR_ID(inherit_handle)
481         STRUCT_FOR_ID(inheritable)
482         STRUCT_FOR_ID(initial)
483         STRUCT_FOR_ID(initial_bytes)
484         STRUCT_FOR_ID(initial_owner)
485         STRUCT_FOR_ID(initial_state)
486         STRUCT_FOR_ID(initial_value)
487         STRUCT_FOR_ID(initval)
488         STRUCT_FOR_ID(inner_size)
489         STRUCT_FOR_ID(input)
490         STRUCT_FOR_ID(insert_comments)
491         STRUCT_FOR_ID(insert_pis)
492         STRUCT_FOR_ID(instructions)
493         STRUCT_FOR_ID(intern)
494         STRUCT_FOR_ID(intersection)
495         STRUCT_FOR_ID(interval)
496         STRUCT_FOR_ID(is_running)
497         STRUCT_FOR_ID(isatty)
498         STRUCT_FOR_ID(isinstance)
499         STRUCT_FOR_ID(isoformat)
500         STRUCT_FOR_ID(isolation_level)
501         STRUCT_FOR_ID(istext)
502         STRUCT_FOR_ID(item)
503         STRUCT_FOR_ID(items)
504         STRUCT_FOR_ID(iter)
505         STRUCT_FOR_ID(iterable)
506         STRUCT_FOR_ID(iterations)
507         STRUCT_FOR_ID(join)
508         STRUCT_FOR_ID(jump)
509         STRUCT_FOR_ID(keepends)
510         STRUCT_FOR_ID(key)
511         STRUCT_FOR_ID(keyfile)
512         STRUCT_FOR_ID(keys)
513         STRUCT_FOR_ID(kind)
514         STRUCT_FOR_ID(kw)
515         STRUCT_FOR_ID(kw1)
516         STRUCT_FOR_ID(kw2)
517         STRUCT_FOR_ID(kwdefaults)
518         STRUCT_FOR_ID(label)
519         STRUCT_FOR_ID(lambda)
520         STRUCT_FOR_ID(last)
521         STRUCT_FOR_ID(last_exc)
522         STRUCT_FOR_ID(last_node)
523         STRUCT_FOR_ID(last_traceback)
524         STRUCT_FOR_ID(last_type)
525         STRUCT_FOR_ID(last_value)
526         STRUCT_FOR_ID(latin1)
527         STRUCT_FOR_ID(leaf_size)
528         STRUCT_FOR_ID(len)
529         STRUCT_FOR_ID(length)
530         STRUCT_FOR_ID(level)
531         STRUCT_FOR_ID(limit)
532         STRUCT_FOR_ID(line)
533         STRUCT_FOR_ID(line_buffering)
534         STRUCT_FOR_ID(lineno)
535         STRUCT_FOR_ID(listcomp)
536         STRUCT_FOR_ID(little)
537         STRUCT_FOR_ID(lo)
538         STRUCT_FOR_ID(locale)
539         STRUCT_FOR_ID(locals)
540         STRUCT_FOR_ID(logoption)
541         STRUCT_FOR_ID(loop)
542         STRUCT_FOR_ID(manual_reset)
543         STRUCT_FOR_ID(mapping)
544         STRUCT_FOR_ID(match)
545         STRUCT_FOR_ID(max_length)
546         STRUCT_FOR_ID(maxdigits)
547         STRUCT_FOR_ID(maxevents)
548         STRUCT_FOR_ID(maxlen)
549         STRUCT_FOR_ID(maxmem)
550         STRUCT_FOR_ID(maxsplit)
551         STRUCT_FOR_ID(maxvalue)
552         STRUCT_FOR_ID(memLevel)
553         STRUCT_FOR_ID(memlimit)
554         STRUCT_FOR_ID(message)
555         STRUCT_FOR_ID(metaclass)
556         STRUCT_FOR_ID(metadata)
557         STRUCT_FOR_ID(method)
558         STRUCT_FOR_ID(microsecond)
559         STRUCT_FOR_ID(milliseconds)
560         STRUCT_FOR_ID(minute)
561         STRUCT_FOR_ID(mod)
562         STRUCT_FOR_ID(mode)
563         STRUCT_FOR_ID(module)
564         STRUCT_FOR_ID(module_globals)
565         STRUCT_FOR_ID(modules)
566         STRUCT_FOR_ID(month)
567         STRUCT_FOR_ID(mro)
568         STRUCT_FOR_ID(msg)
569         STRUCT_FOR_ID(mutex)
570         STRUCT_FOR_ID(mycmp)
571         STRUCT_FOR_ID(n_arg)
572         STRUCT_FOR_ID(n_fields)
573         STRUCT_FOR_ID(n_sequence_fields)
574         STRUCT_FOR_ID(n_unnamed_fields)
575         STRUCT_FOR_ID(name)
576         STRUCT_FOR_ID(name_from)
577         STRUCT_FOR_ID(namespace_separator)
578         STRUCT_FOR_ID(namespaces)
579         STRUCT_FOR_ID(narg)
580         STRUCT_FOR_ID(ndigits)
581         STRUCT_FOR_ID(nested)
582         STRUCT_FOR_ID(new_file_name)
583         STRUCT_FOR_ID(new_limit)
584         STRUCT_FOR_ID(newline)
585         STRUCT_FOR_ID(newlines)
586         STRUCT_FOR_ID(next)
587         STRUCT_FOR_ID(nlocals)
588         STRUCT_FOR_ID(node_depth)
589         STRUCT_FOR_ID(node_offset)
590         STRUCT_FOR_ID(ns)
591         STRUCT_FOR_ID(nstype)
592         STRUCT_FOR_ID(nt)
593         STRUCT_FOR_ID(null)
594         STRUCT_FOR_ID(number)
595         STRUCT_FOR_ID(obj)
596         STRUCT_FOR_ID(object)
597         STRUCT_FOR_ID(offset)
598         STRUCT_FOR_ID(offset_dst)
599         STRUCT_FOR_ID(offset_src)
600         STRUCT_FOR_ID(on_type_read)
601         STRUCT_FOR_ID(onceregistry)
602         STRUCT_FOR_ID(only_keys)
603         STRUCT_FOR_ID(oparg)
604         STRUCT_FOR_ID(opcode)
605         STRUCT_FOR_ID(open)
606         STRUCT_FOR_ID(opener)
607         STRUCT_FOR_ID(operation)
608         STRUCT_FOR_ID(optimize)
609         STRUCT_FOR_ID(options)
610         STRUCT_FOR_ID(order)
611         STRUCT_FOR_ID(origin)
612         STRUCT_FOR_ID(out_fd)
613         STRUCT_FOR_ID(outgoing)
614         STRUCT_FOR_ID(overlapped)
615         STRUCT_FOR_ID(owner)
616         STRUCT_FOR_ID(pages)
617         STRUCT_FOR_ID(parent)
618         STRUCT_FOR_ID(password)
619         STRUCT_FOR_ID(path)
620         STRUCT_FOR_ID(pattern)
621         STRUCT_FOR_ID(peek)
622         STRUCT_FOR_ID(persistent_id)
623         STRUCT_FOR_ID(persistent_load)
624         STRUCT_FOR_ID(person)
625         STRUCT_FOR_ID(pi_factory)
626         STRUCT_FOR_ID(pid)
627         STRUCT_FOR_ID(policy)
628         STRUCT_FOR_ID(pos)
629         STRUCT_FOR_ID(pos1)
630         STRUCT_FOR_ID(pos2)
631         STRUCT_FOR_ID(posix)
632         STRUCT_FOR_ID(print_file_and_line)
633         STRUCT_FOR_ID(priority)
634         STRUCT_FOR_ID(progress)
635         STRUCT_FOR_ID(progress_handler)
636         STRUCT_FOR_ID(progress_routine)
637         STRUCT_FOR_ID(proto)
638         STRUCT_FOR_ID(protocol)
639         STRUCT_FOR_ID(ps1)
640         STRUCT_FOR_ID(ps2)
641         STRUCT_FOR_ID(query)
642         STRUCT_FOR_ID(quotetabs)
643         STRUCT_FOR_ID(raw)
644         STRUCT_FOR_ID(read)
645         STRUCT_FOR_ID(read1)
646         STRUCT_FOR_ID(readable)
647         STRUCT_FOR_ID(readall)
648         STRUCT_FOR_ID(readinto)
649         STRUCT_FOR_ID(readinto1)
650         STRUCT_FOR_ID(readline)
651         STRUCT_FOR_ID(readonly)
652         STRUCT_FOR_ID(real)
653         STRUCT_FOR_ID(reducer_override)
654         STRUCT_FOR_ID(registry)
655         STRUCT_FOR_ID(rel_tol)
656         STRUCT_FOR_ID(release)
657         STRUCT_FOR_ID(reload)
658         STRUCT_FOR_ID(repl)
659         STRUCT_FOR_ID(replace)
660         STRUCT_FOR_ID(reserved)
661         STRUCT_FOR_ID(reset)
662         STRUCT_FOR_ID(resetids)
663         STRUCT_FOR_ID(return)
664         STRUCT_FOR_ID(reverse)
665         STRUCT_FOR_ID(reversed)
666         STRUCT_FOR_ID(salt)
667         STRUCT_FOR_ID(sched_priority)
668         STRUCT_FOR_ID(scheduler)
669         STRUCT_FOR_ID(second)
670         STRUCT_FOR_ID(security_attributes)
671         STRUCT_FOR_ID(seek)
672         STRUCT_FOR_ID(seekable)
673         STRUCT_FOR_ID(selectors)
674         STRUCT_FOR_ID(self)
675         STRUCT_FOR_ID(send)
676         STRUCT_FOR_ID(sep)
677         STRUCT_FOR_ID(sequence)
678         STRUCT_FOR_ID(server_hostname)
679         STRUCT_FOR_ID(server_side)
680         STRUCT_FOR_ID(session)
681         STRUCT_FOR_ID(setcomp)
682         STRUCT_FOR_ID(setpgroup)
683         STRUCT_FOR_ID(setsid)
684         STRUCT_FOR_ID(setsigdef)
685         STRUCT_FOR_ID(setsigmask)
686         STRUCT_FOR_ID(setstate)
687         STRUCT_FOR_ID(shape)
688         STRUCT_FOR_ID(show_cmd)
689         STRUCT_FOR_ID(signed)
690         STRUCT_FOR_ID(size)
691         STRUCT_FOR_ID(sizehint)
692         STRUCT_FOR_ID(skip_file_prefixes)
693         STRUCT_FOR_ID(sleep)
694         STRUCT_FOR_ID(sock)
695         STRUCT_FOR_ID(sort)
696         STRUCT_FOR_ID(source)
697         STRUCT_FOR_ID(source_traceback)
698         STRUCT_FOR_ID(spam)
699         STRUCT_FOR_ID(src)
700         STRUCT_FOR_ID(src_dir_fd)
701         STRUCT_FOR_ID(stacklevel)
702         STRUCT_FOR_ID(start)
703         STRUCT_FOR_ID(statement)
704         STRUCT_FOR_ID(status)
705         STRUCT_FOR_ID(stderr)
706         STRUCT_FOR_ID(stdin)
707         STRUCT_FOR_ID(stdout)
708         STRUCT_FOR_ID(step)
709         STRUCT_FOR_ID(steps)
710         STRUCT_FOR_ID(store_name)
711         STRUCT_FOR_ID(strategy)
712         STRUCT_FOR_ID(strftime)
713         STRUCT_FOR_ID(strict)
714         STRUCT_FOR_ID(strict_mode)
715         STRUCT_FOR_ID(string)
716         STRUCT_FOR_ID(sub_key)
717         STRUCT_FOR_ID(symmetric_difference_update)
718         STRUCT_FOR_ID(tabsize)
719         STRUCT_FOR_ID(tag)
720         STRUCT_FOR_ID(target)
721         STRUCT_FOR_ID(target_is_directory)
722         STRUCT_FOR_ID(task)
723         STRUCT_FOR_ID(tb_frame)
724         STRUCT_FOR_ID(tb_lasti)
725         STRUCT_FOR_ID(tb_lineno)
726         STRUCT_FOR_ID(tb_next)
727         STRUCT_FOR_ID(tell)
728         STRUCT_FOR_ID(template)
729         STRUCT_FOR_ID(term)
730         STRUCT_FOR_ID(text)
731         STRUCT_FOR_ID(threading)
732         STRUCT_FOR_ID(throw)
733         STRUCT_FOR_ID(timeout)
734         STRUCT_FOR_ID(times)
735         STRUCT_FOR_ID(timetuple)
736         STRUCT_FOR_ID(top)
737         STRUCT_FOR_ID(trace_callback)
738         STRUCT_FOR_ID(traceback)
739         STRUCT_FOR_ID(trailers)
740         STRUCT_FOR_ID(translate)
741         STRUCT_FOR_ID(true)
742         STRUCT_FOR_ID(truncate)
743         STRUCT_FOR_ID(twice)
744         STRUCT_FOR_ID(txt)
745         STRUCT_FOR_ID(type)
746         STRUCT_FOR_ID(type_params)
747         STRUCT_FOR_ID(tz)
748         STRUCT_FOR_ID(tzinfo)
749         STRUCT_FOR_ID(tzname)
750         STRUCT_FOR_ID(uid)
751         STRUCT_FOR_ID(unlink)
752         STRUCT_FOR_ID(unraisablehook)
753         STRUCT_FOR_ID(uri)
754         STRUCT_FOR_ID(usedforsecurity)
755         STRUCT_FOR_ID(value)
756         STRUCT_FOR_ID(values)
757         STRUCT_FOR_ID(version)
758         STRUCT_FOR_ID(volume)
759         STRUCT_FOR_ID(wait_all)
760         STRUCT_FOR_ID(warn_on_full_buffer)
761         STRUCT_FOR_ID(warnings)
762         STRUCT_FOR_ID(warnoptions)
763         STRUCT_FOR_ID(wbits)
764         STRUCT_FOR_ID(week)
765         STRUCT_FOR_ID(weekday)
766         STRUCT_FOR_ID(which)
767         STRUCT_FOR_ID(who)
768         STRUCT_FOR_ID(withdata)
769         STRUCT_FOR_ID(writable)
770         STRUCT_FOR_ID(write)
771         STRUCT_FOR_ID(write_through)
772         STRUCT_FOR_ID(year)
773         STRUCT_FOR_ID(zdict)
774     } identifiers;
775     struct {
776         PyASCIIObject _ascii;
777         uint8_t _data[2];
778     } ascii[128];
779     struct {
780         PyCompactUnicodeObject _latin1;
781         uint8_t _data[2];
782     } latin1[128];
783 };
784 /* End auto-generated code */
785 
786 #undef ID
787 #undef STR
788 
789 
790 #define _Py_ID(NAME) \
791      (_Py_SINGLETON(strings.identifiers._py_ ## NAME._ascii.ob_base))
792 #define _Py_STR(NAME) \
793      (_Py_SINGLETON(strings.literals._py_ ## NAME._ascii.ob_base))
794 #define _Py_LATIN1_CHR(CH) \
795     ((CH) < 128 \
796      ? (PyObject*)&_Py_SINGLETON(strings).ascii[(CH)] \
797      : (PyObject*)&_Py_SINGLETON(strings).latin1[(CH) - 128])
798 
799 /* _Py_DECLARE_STR() should precede all uses of _Py_STR() in a function.
800 
801    This is true even if the same string has already been declared
802    elsewhere, even in the same file.  Mismatched duplicates are detected
803    by Tools/scripts/generate-global-objects.py.
804 
805    Pairing _Py_DECLARE_STR() with every use of _Py_STR() makes sure the
806    string keeps working even if the declaration is removed somewhere
807    else.  It also makes it clear what the actual string is at every
808    place it is being used. */
809 #define _Py_DECLARE_STR(name, str)
810 
811 #ifdef __cplusplus
812 }
813 #endif
814 #endif /* !Py_INTERNAL_GLOBAL_STRINGS_H */
815