ticker_gtk
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# You are free to use and/or change this code for
|
||||
# your own needs.
|
||||
|
||||
# Original code (c)2018 Jan Lerking
|
||||
# Program to convert C-header (*.h) files to nasm include files (*.inc),
|
||||
# for direct usage in assembly programming using nasm/yasm.
|
||||
|
||||
from pathlib import Path
|
||||
import multiprocessing
|
||||
|
||||
def init():
|
||||
global ticker_num
|
||||
ticker_num = 1000
|
||||
global home
|
||||
home = str(Path.home())
|
||||
global num_cores
|
||||
num_cores = multiprocessing.cpu_count()
|
||||
global queue
|
||||
queue = 0
|
||||
global fraction
|
||||
fraction = 0
|
||||
global worker
|
||||
worker = []
|
||||
global listener
|
||||
listener = []
|
||||
global thread
|
||||
thread = []
|
||||
global tupline
|
||||
tupline = []
|
||||
global preproc
|
||||
preproc = ()
|
||||
global filelist
|
||||
filelist = []
|
||||
global folderlist
|
||||
folderlist = []
|
||||
global cnt
|
||||
cnt = 0
|
||||
global srcdir
|
||||
srcdir = ''
|
||||
global destdir
|
||||
destdir = ''
|
||||
global fileindex
|
||||
fileindex = 0
|
||||
global filecnt
|
||||
filecnt = 0
|
||||
global incinc
|
||||
incinc = ''
|
||||
global defdir
|
||||
defdir = False
|
||||
global defsrc
|
||||
defsrc = '/usr/include'
|
||||
global defdest
|
||||
defdest = home+'/include'
|
||||
global count
|
||||
count = 0
|
||||
|
||||
Reference in New Issue
Block a user