Skip to content

Instantly share code, notes, and snippets.

D:\c\e\e\bindings\python>py build_EDA.py
Traceback (most recent call last):
File "C:\sw\python\3.4\64bit\lib\site-packages\cffi\cparser.py", line 260, in _parse
ast = _get_parser().parse(csource)
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\c_parser.py", line 151, in parse
debug=debuglevel)
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\ply\yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "C:\sw\python\3.4\64bit\lib\site-packages\pycparser\ply\yacc.py", line 1181, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
from cffi import FFI
ffi_ec = FFI()
ffi_ec.cdef(open('cffi-eC.h').read())
ffi_ec.set_source("_pyeC",
'#include "eC.h"',
sources=["../c/eC.c"],
include_dirs=["../c"],
libraries=["ecere"],
library_dirs=["C:/Program Files/Ecere SDK/bin"])
@redj
redj / wasm.econ
Last active May 23, 2017 06:25
ecere sdk compiler config for compiling to WebAssembly target
{
name = "WASM",
targetPlatform = linux,
numJobs = 8,
makeCommand = "mingw32-make",
ecpCommand = "ecp",
eccCommand = "ecc",
ecsCommand = "ecs",
earCommand = "ear",
cppCommand = "emcc.bat",
public define Phi = 1.6180339887;
bool IsPerfectSquare(uint64 number)
{
double root = sqrt(number);
uint64 square = (uint64)root * (uint64)root;
return square == number;
}
struct Matrix2x2