repo.or.cz
/
arrocco.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
First commit
[arrocco.git]
/
lib.py
blob
a2c7545d7c8f1493be4f40fcc0951f3bc578fd89
1
# lib.py
2
# 1 Mar 2007
3
4
import
ctypes
5
int64
=
ctypes
.
c_ulonglong
6
7
from
bits
import
*
8
9
10
def
load
():
11
lib
=
ctypes
.
cdll
.
LoadLibrary
(
"./libso.so"
)
12
lib
.
makeChildren
.
restype
=
ctypes
.
c_int
13
lib
.
getTurn
.
restype
=
ctypes
.
c_int
14
15
return
lib
16
17
18
lib
=
load
()