2024-10-06 00:43:36 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2024-10-06 15:32:02 +02:00
|
|
|
#rr = open('read_me.doc', 'r', encoding='UTF-8')
|
|
|
|
rr = open('include/widget.h', 'r', encoding='UTF-8')
|
|
|
|
ww = open('scripts/junk', "w")
|
2024-10-06 00:43:36 +02:00
|
|
|
|
2024-10-06 15:32:02 +02:00
|
|
|
l = [None] * 75
|
|
|
|
n = 0
|
2024-10-06 00:43:36 +02:00
|
|
|
|
2024-10-06 15:32:02 +02:00
|
|
|
for line in rr:
|
|
|
|
if (line [0:4] == 'void'
|
|
|
|
or line [0:3] == 'int'
|
|
|
|
or line [0:4] == 'char'
|
|
|
|
or line [0:10] == 'const char'
|
|
|
|
or line [0:8] == 'GtkEntry'
|
|
|
|
or line [0:17] == 'struct TreeNode_t'):
|
|
|
|
#print(n, ' ', line [:len(line)-1])
|
|
|
|
#ww.write(line [:len(line)])
|
|
|
|
l[n] = line
|
|
|
|
n += 1
|
|
|
|
|
|
|
|
l.sort()
|
|
|
|
n = 0
|
|
|
|
for line in l:
|
|
|
|
print(n, ' ', line [:len(line)-1])
|
|
|
|
if n in range(30):
|
|
|
|
ww.write(line.split(' ')[1] + '\n')
|
|
|
|
n += 1
|
|
|
|
|
|
|
|
rr.close()
|
|
|
|
ww.close()
|
2024-10-06 00:43:36 +02:00
|
|
|
|