33 lines
691 B
Python
Executable File
33 lines
691 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
#rr = open('read_me.doc', 'r', encoding='UTF-8')
|
|
rr = open('include/widget.h', 'r', encoding='UTF-8')
|
|
ww = open('scripts/junk', "w")
|
|
|
|
l = [None] * 75
|
|
n = 0
|
|
|
|
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()
|
|
|