Skip to content

Commit 5af0064

Browse files
Use ## as the prefix for sections in "ignore" files.
1 parent 436feb1 commit 5af0064

File tree

3 files changed

+158
-142
lines changed

3 files changed

+158
-142
lines changed

Tools/c-analyzer/cpython/globals-to-fix.tsv

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ filename funcname name reason
44
# These are all variables that we will be making non-global.
55

66
##################################
7-
# global objects to fix in core code
7+
## global objects to fix in core code
88

9-
#-----------------------
10-
# exported builtin types (C-API)
9+
##-----------------------
10+
## exported builtin types (C-API)
1111

1212
Objects/boolobject.c - PyBool_Type -
1313
Objects/bytearrayobject.c - PyByteArrayIter_Type -
@@ -102,8 +102,8 @@ Python/context.c - PyContextVar_Type -
102102
Python/context.c - PyContext_Type -
103103
Python/traceback.c - PyTraceBack_Type -
104104

105-
#-----------------------
106-
# other exported builtin types
105+
##-----------------------
106+
## other exported builtin types
107107

108108
# Not in a .h file:
109109
Objects/codeobject.c - _PyLineIterator -
@@ -126,8 +126,8 @@ Python/hamt.c - _PyHamt_CollisionNode_Type -
126126
Python/hamt.c - _PyHamt_Type -
127127
Python/symtable.c - PySTEntry_Type -
128128

129-
#-----------------------
130-
# private static builtin types
129+
##-----------------------
130+
## private static builtin types
131131

132132
Objects/setobject.c - _PySetDummy_Type -
133133
Objects/stringlib/unicode_format.h - PyFormatterIter_Type -
@@ -136,8 +136,8 @@ Objects/unicodeobject.c - EncodingMapType -
136136
#Objects/unicodeobject.c - PyFieldNameIter_Type -
137137
#Objects/unicodeobject.c - PyFormatterIter_Type -
138138

139-
#-----------------------
140-
# static builtin structseq
139+
##-----------------------
140+
## static builtin structseq
141141

142142
Objects/floatobject.c - FloatInfoType -
143143
Objects/longobject.c - Int_InfoType -
@@ -148,8 +148,8 @@ Python/sysmodule.c - Hash_InfoType -
148148
Python/sysmodule.c - VersionInfoType -
149149
Python/thread.c - ThreadInfoType -
150150

151-
#-----------------------
152-
# builtin exception types
151+
##-----------------------
152+
## builtin exception types
153153

154154
Objects/exceptions.c - _PyExc_BaseException -
155155
Objects/exceptions.c - _PyExc_BaseExceptionGroup -
@@ -286,8 +286,8 @@ Objects/exceptions.c - PyExc_BytesWarning -
286286
Objects/exceptions.c - PyExc_ResourceWarning -
287287
Objects/exceptions.c - PyExc_EncodingWarning -
288288

289-
#-----------------------
290-
# singletons
289+
##-----------------------
290+
## singletons
291291

292292
Objects/boolobject.c - _Py_FalseStruct -
293293
Objects/boolobject.c - _Py_TrueStruct -
@@ -300,26 +300,26 @@ Objects/sliceobject.c - _Py_EllipsisObject -
300300

301301

302302
##################################
303-
# global non-objects to fix in core code
303+
## global non-objects to fix in core code
304304

305-
#-----------------------
306-
# effectively-const but initialized lazily
305+
##-----------------------
306+
## effectively-const but initialized lazily
307307

308-
# idempotent
308+
## idempotent
309309
Python/dtoa.c - p5s -
310310
Objects/obmalloc.c new_arena debug_stats -
311311

312-
# others
312+
## others
313313
Python/perf_trampoline.c - perf_map_file -
314314
Objects/unicodeobject.c - ucnhash_capi -
315315

316-
#-----------------------
317-
# state
316+
##-----------------------
317+
## state
318318

319-
# local buffer
319+
## local buffer
320320
Python/suggestions.c levenshtein_distance buffer -
321321

322-
# other
322+
## other
323323
Objects/object.c - _Py_RefTotal -
324324
Python/perf_trampoline.c - perf_status -
325325
Python/perf_trampoline.c - extra_code_index -
@@ -329,10 +329,10 @@ Python/thread_pthread_stubs.h - py_tls_entries -
329329

330330

331331
##################################
332-
# global objects to fix in builtin modules
332+
## global objects to fix in builtin modules
333333

334-
#-----------------------
335-
# static types
334+
##-----------------------
335+
## static types
336336

337337
Modules/_collectionsmodule.c - defdict_type -
338338
Modules/_collectionsmodule.c - deque_type -
@@ -381,10 +381,10 @@ Modules/itertoolsmodule.c - tee_type -
381381
Modules/itertoolsmodule.c - teedataobject_type -
382382
Modules/itertoolsmodule.c - ziplongest_type -
383383

384-
#-----------------------
385-
# other
384+
##-----------------------
385+
## other
386386

387-
# state
387+
## state
388388
Modules/faulthandler.c - fatal_error -
389389
Modules/faulthandler.c - thread -
390390
Modules/faulthandler.c - user_signals -
@@ -393,10 +393,10 @@ Modules/faulthandler.c - old_stack -
393393

394394

395395
##################################
396-
# global non-objects to fix in builtin modules
396+
## global non-objects to fix in builtin modules
397397

398-
#-----------------------
399-
# initialized once
398+
##-----------------------
399+
## initialized once
400400

401401
Modules/_io/bufferedio.c _PyIO_trap_eintr eintr_int -
402402
Modules/posixmodule.c os_dup2_impl dup3_works -
@@ -405,8 +405,8 @@ Modules/posixmodule.c - ticks_per_second -
405405
Modules/timemodule.c _PyTime_GetClockWithInfo initialized -
406406
Modules/timemodule.c _PyTime_GetProcessTimeWithInfo ticks_per_second -
407407

408-
#-----------------------
409-
# state
408+
##-----------------------
409+
## state
410410

411411
Modules/_tracemalloc.c - allocators -
412412
Modules/_tracemalloc.c - tables_lock -
@@ -427,10 +427,10 @@ Modules/signalmodule.c - Handlers -
427427

428428

429429
##################################
430-
# global objects to fix in extension modules
430+
## global objects to fix in extension modules
431431

432-
#-----------------------
433-
# static types
432+
##-----------------------
433+
## static types
434434

435435
Modules/_asynciomodule.c - FutureIterType -
436436
Modules/_asynciomodule.c - FutureType -
@@ -505,18 +505,18 @@ Modules/xxmodule.c - Xxo_Type -
505505
Modules/xxsubtype.c - spamdict_type -
506506
Modules/xxsubtype.c - spamlist_type -
507507

508-
#-----------------------
509-
# non-static types - initialized once
508+
##-----------------------
509+
## non-static types - initialized once
510510

511-
# heap types
511+
## heap types
512512
Modules/_decimal/_decimal.c - DecimalTuple -
513513
Modules/_decimal/_decimal.c - PyDecSignalDict_Type -
514514
Modules/_tkinter.c - PyTclObject_Type -
515515
Modules/_tkinter.c - Tkapp_Type -
516516
Modules/_tkinter.c - Tktt_Type -
517517
Modules/xxlimited_35.c - Xxo_Type -
518518

519-
# exception types
519+
## exception types
520520
Modules/_ctypes/_ctypes.c - PyExc_ArgError -
521521
Modules/_cursesmodule.c - PyCursesError -
522522
Modules/_decimal/_decimal.c - DecimalException -
@@ -527,15 +527,15 @@ Modules/socketmodule.c - socket_gaierror -
527527
Modules/xxlimited_35.c - ErrorObject -
528528
Modules/xxmodule.c - ErrorObject -
529529

530-
#-----------------------
531-
# cached - initialized once
530+
##-----------------------
531+
## cached - initialized once
532532

533-
# manually cached PyUnicodeOjbect
533+
## manually cached PyUnicodeOjbect
534534
Modules/_asynciomodule.c - context_kwname -
535535
Modules/_ctypes/callproc.c _ctypes_get_errobj error_object_name -
536536
Modules/_ctypes/_ctypes.c CreateSwappedType suffix -
537537

538-
# other - during module init
538+
## other - during module init
539539
Modules/_asynciomodule.c - asyncio_mod -
540540
Modules/_asynciomodule.c - traceback_extract_stack -
541541
Modules/_asynciomodule.c - asyncio_future_repr_func -
@@ -550,10 +550,10 @@ Modules/_zoneinfo.c - io_open -
550550
Modules/_zoneinfo.c - _tzpath_find_tzfile -
551551
Modules/_zoneinfo.c - _common_mod -
552552

553-
#-----------------------
554-
# other
553+
##-----------------------
554+
## other
555555

556-
# initialized once
556+
## initialized once
557557
Modules/_ctypes/_ctypes.c - _unpickle -
558558
Modules/_ctypes/_ctypes.c PyCArrayType_from_ctype cache -
559559
Modules/_cursesmodule.c - ModDict -
@@ -576,7 +576,7 @@ Modules/_decimal/_decimal.c - Rational -
576576
Modules/_decimal/_decimal.c - SignalTuple -
577577
Modules/arraymodule.c array_array___reduce_ex___impl array_reconstructor -
578578

579-
# state
579+
## state
580580
Modules/_asynciomodule.c - cached_running_holder -
581581
Modules/_asynciomodule.c - fi_freelist -
582582
Modules/_asynciomodule.c - fi_freelist_len -
@@ -594,16 +594,16 @@ Modules/_zoneinfo.c - ZONEINFO_WEAK_CACHE -
594594

595595

596596
##################################
597-
# global non-objects to fix in extension modules
597+
## global non-objects to fix in extension modules
598598

599-
#-----------------------
600-
# initialized once
599+
##-----------------------
600+
## initialized once
601601

602-
# pre-allocated buffer
602+
## pre-allocated buffer
603603
Modules/nismodule.c nisproc_maplist_2 res -
604604
Modules/pyexpat.c PyUnknownEncodingHandler template_buffer -
605605

606-
# other
606+
## other
607607
Include/datetime.h - PyDateTimeAPI -
608608
Modules/_asynciomodule.c - module_initialized -
609609
Modules/_ctypes/cfield.c _ctypes_get_fielddesc initialized -
@@ -648,8 +648,8 @@ Modules/readline.c - libedit_history_start -
648648
Modules/socketmodule.c - accept4_works -
649649
Modules/socketmodule.c - sock_cloexec_works -
650650

651-
#-----------------------
652-
# state
651+
##-----------------------
652+
## state
653653

654654
Modules/_asynciomodule.c - cached_running_holder_tsid -
655655
Modules/_asynciomodule.c - task_name_counter -

0 commit comments

Comments
 (0)