Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test with Go 1.11 and on macOS #243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ language: go
go_import_path: neugram.io/ng
go:
- 1.10.x
- 1.11.x
- master
os:
- linux
- osx
matrix:
fast_finish: true


script:
- ./.ci-test

Expand Down
2 changes: 1 addition & 1 deletion eval/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ func (p *Program) evalFuncLiteral(e *expr.FuncLiteral, recvt *tipe.Named) reflec
params := make([]tipe.Type, 1+len(funct.Params.Elems))
copy(params[1:], funct.Params.Elems)
params[0] = &tipe.Interface{} // not recvt, breaking cycle
funct.Params = &tipe.Tuple{params}
funct.Params = &tipe.Tuple{Elems: params}
}
rt := p.reflector.ToRType(&funct)
fn := reflect.MakeFunc(rt, func(args []reflect.Value) (res []reflect.Value) {
Expand Down
174 changes: 87 additions & 87 deletions eval/gowrap/wrapbuiltin/wrap_math.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,95 +13,95 @@ import (
var pkg_wrap_math = &gowrap.Pkg{
Exports: map[string]reflect.Value{

"Abs": reflect.ValueOf(wrap_math.Abs),
"Acos": reflect.ValueOf(wrap_math.Acos),
"Acosh": reflect.ValueOf(wrap_math.Acosh),
"Asin": reflect.ValueOf(wrap_math.Asin),
"Asinh": reflect.ValueOf(wrap_math.Asinh),
"Atan": reflect.ValueOf(wrap_math.Atan),
"Atan2": reflect.ValueOf(wrap_math.Atan2),
"Atanh": reflect.ValueOf(wrap_math.Atanh),
"Cbrt": reflect.ValueOf(wrap_math.Cbrt),
"Ceil": reflect.ValueOf(wrap_math.Ceil),
"Copysign": reflect.ValueOf(wrap_math.Copysign),
"Cos": reflect.ValueOf(wrap_math.Cos),
"Cosh": reflect.ValueOf(wrap_math.Cosh),
"Dim": reflect.ValueOf(wrap_math.Dim),
"E": reflect.ValueOf(wrap_math.E),
"Erf": reflect.ValueOf(wrap_math.Erf),
"Erfc": reflect.ValueOf(wrap_math.Erfc),
"Exp": reflect.ValueOf(wrap_math.Exp),
"Exp2": reflect.ValueOf(wrap_math.Exp2),
"Expm1": reflect.ValueOf(wrap_math.Expm1),
"Float32bits": reflect.ValueOf(wrap_math.Float32bits),
"Float32frombits": reflect.ValueOf(wrap_math.Float32frombits),
"Float64bits": reflect.ValueOf(wrap_math.Float64bits),
"Float64frombits": reflect.ValueOf(wrap_math.Float64frombits),
"Floor": reflect.ValueOf(wrap_math.Floor),
"Frexp": reflect.ValueOf(wrap_math.Frexp),
"Gamma": reflect.ValueOf(wrap_math.Gamma),
"Hypot": reflect.ValueOf(wrap_math.Hypot),
"Ilogb": reflect.ValueOf(wrap_math.Ilogb),
"Inf": reflect.ValueOf(wrap_math.Inf),
"IsInf": reflect.ValueOf(wrap_math.IsInf),
"IsNaN": reflect.ValueOf(wrap_math.IsNaN),
"J0": reflect.ValueOf(wrap_math.J0),
"J1": reflect.ValueOf(wrap_math.J1),
"Jn": reflect.ValueOf(wrap_math.Jn),
"Ldexp": reflect.ValueOf(wrap_math.Ldexp),
"Lgamma": reflect.ValueOf(wrap_math.Lgamma),
"Ln10": reflect.ValueOf(wrap_math.Ln10),
"Ln2": reflect.ValueOf(wrap_math.Ln2),
"Log": reflect.ValueOf(wrap_math.Log),
"Log10": reflect.ValueOf(wrap_math.Log10),
"Log10E": reflect.ValueOf(wrap_math.Log10E),
"Log1p": reflect.ValueOf(wrap_math.Log1p),
"Log2": reflect.ValueOf(wrap_math.Log2),
"Log2E": reflect.ValueOf(wrap_math.Log2E),
"Logb": reflect.ValueOf(wrap_math.Logb),
"Max": reflect.ValueOf(wrap_math.Max),
"MaxFloat32": reflect.ValueOf(wrap_math.MaxFloat32),
"MaxFloat64": reflect.ValueOf(wrap_math.MaxFloat64),
"MaxInt16": reflect.ValueOf(wrap_math.MaxInt16),
"MaxInt32": reflect.ValueOf(wrap_math.MaxInt32),
"MaxInt64": reflect.ValueOf(wrap_math.MaxInt64),
"MaxInt8": reflect.ValueOf(wrap_math.MaxInt8),
"MaxUint16": reflect.ValueOf(wrap_math.MaxUint16),
"MaxUint32": reflect.ValueOf(wrap_math.MaxUint32),
"MaxUint64": reflect.ValueOf(uint64(wrap_math.MaxUint64)),
"MaxUint8": reflect.ValueOf(wrap_math.MaxUint8),
"Min": reflect.ValueOf(wrap_math.Min),
"MinInt16": reflect.ValueOf(wrap_math.MinInt16),
"MinInt32": reflect.ValueOf(wrap_math.MinInt32),
"MinInt64": reflect.ValueOf(wrap_math.MinInt64),
"MinInt8": reflect.ValueOf(wrap_math.MinInt8),
"Mod": reflect.ValueOf(wrap_math.Mod),
"Modf": reflect.ValueOf(wrap_math.Modf),
"NaN": reflect.ValueOf(wrap_math.NaN),
"Nextafter": reflect.ValueOf(wrap_math.Nextafter),
"Nextafter32": reflect.ValueOf(wrap_math.Nextafter32),
"Phi": reflect.ValueOf(wrap_math.Phi),
"Pi": reflect.ValueOf(wrap_math.Pi),
"Pow": reflect.ValueOf(wrap_math.Pow),
"Pow10": reflect.ValueOf(wrap_math.Pow10),
"Remainder": reflect.ValueOf(wrap_math.Remainder),
"Signbit": reflect.ValueOf(wrap_math.Signbit),
"Sin": reflect.ValueOf(wrap_math.Sin),
"Sincos": reflect.ValueOf(wrap_math.Sincos),
"Sinh": reflect.ValueOf(wrap_math.Sinh),
"Abs": reflect.ValueOf(wrap_math.Abs),
"Acos": reflect.ValueOf(wrap_math.Acos),
"Acosh": reflect.ValueOf(wrap_math.Acosh),
"Asin": reflect.ValueOf(wrap_math.Asin),
"Asinh": reflect.ValueOf(wrap_math.Asinh),
"Atan": reflect.ValueOf(wrap_math.Atan),
"Atan2": reflect.ValueOf(wrap_math.Atan2),
"Atanh": reflect.ValueOf(wrap_math.Atanh),
"Cbrt": reflect.ValueOf(wrap_math.Cbrt),
"Ceil": reflect.ValueOf(wrap_math.Ceil),
"Copysign": reflect.ValueOf(wrap_math.Copysign),
"Cos": reflect.ValueOf(wrap_math.Cos),
"Cosh": reflect.ValueOf(wrap_math.Cosh),
"Dim": reflect.ValueOf(wrap_math.Dim),
"E": reflect.ValueOf(wrap_math.E),
"Erf": reflect.ValueOf(wrap_math.Erf),
"Erfc": reflect.ValueOf(wrap_math.Erfc),
"Exp": reflect.ValueOf(wrap_math.Exp),
"Exp2": reflect.ValueOf(wrap_math.Exp2),
"Expm1": reflect.ValueOf(wrap_math.Expm1),
"Float32bits": reflect.ValueOf(wrap_math.Float32bits),
"Float32frombits": reflect.ValueOf(wrap_math.Float32frombits),
"Float64bits": reflect.ValueOf(wrap_math.Float64bits),
"Float64frombits": reflect.ValueOf(wrap_math.Float64frombits),
"Floor": reflect.ValueOf(wrap_math.Floor),
"Frexp": reflect.ValueOf(wrap_math.Frexp),
"Gamma": reflect.ValueOf(wrap_math.Gamma),
"Hypot": reflect.ValueOf(wrap_math.Hypot),
"Ilogb": reflect.ValueOf(wrap_math.Ilogb),
"Inf": reflect.ValueOf(wrap_math.Inf),
"IsInf": reflect.ValueOf(wrap_math.IsInf),
"IsNaN": reflect.ValueOf(wrap_math.IsNaN),
"J0": reflect.ValueOf(wrap_math.J0),
"J1": reflect.ValueOf(wrap_math.J1),
"Jn": reflect.ValueOf(wrap_math.Jn),
"Ldexp": reflect.ValueOf(wrap_math.Ldexp),
"Lgamma": reflect.ValueOf(wrap_math.Lgamma),
"Ln10": reflect.ValueOf(wrap_math.Ln10),
"Ln2": reflect.ValueOf(wrap_math.Ln2),
"Log": reflect.ValueOf(wrap_math.Log),
"Log10": reflect.ValueOf(wrap_math.Log10),
"Log10E": reflect.ValueOf(wrap_math.Log10E),
"Log1p": reflect.ValueOf(wrap_math.Log1p),
"Log2": reflect.ValueOf(wrap_math.Log2),
"Log2E": reflect.ValueOf(wrap_math.Log2E),
"Logb": reflect.ValueOf(wrap_math.Logb),
"Max": reflect.ValueOf(wrap_math.Max),
"MaxFloat32": reflect.ValueOf(wrap_math.MaxFloat32),
"MaxFloat64": reflect.ValueOf(wrap_math.MaxFloat64),
"MaxInt16": reflect.ValueOf(wrap_math.MaxInt16),
"MaxInt32": reflect.ValueOf(wrap_math.MaxInt32),
"MaxInt64": reflect.ValueOf(wrap_math.MaxInt64),
"MaxInt8": reflect.ValueOf(wrap_math.MaxInt8),
"MaxUint16": reflect.ValueOf(wrap_math.MaxUint16),
"MaxUint32": reflect.ValueOf(wrap_math.MaxUint32),
"MaxUint64": reflect.ValueOf(uint64(wrap_math.MaxUint64)),
"MaxUint8": reflect.ValueOf(wrap_math.MaxUint8),
"Min": reflect.ValueOf(wrap_math.Min),
"MinInt16": reflect.ValueOf(wrap_math.MinInt16),
"MinInt32": reflect.ValueOf(wrap_math.MinInt32),
"MinInt64": reflect.ValueOf(wrap_math.MinInt64),
"MinInt8": reflect.ValueOf(wrap_math.MinInt8),
"Mod": reflect.ValueOf(wrap_math.Mod),
"Modf": reflect.ValueOf(wrap_math.Modf),
"NaN": reflect.ValueOf(wrap_math.NaN),
"Nextafter": reflect.ValueOf(wrap_math.Nextafter),
"Nextafter32": reflect.ValueOf(wrap_math.Nextafter32),
"Phi": reflect.ValueOf(wrap_math.Phi),
"Pi": reflect.ValueOf(wrap_math.Pi),
"Pow": reflect.ValueOf(wrap_math.Pow),
"Pow10": reflect.ValueOf(wrap_math.Pow10),
"Remainder": reflect.ValueOf(wrap_math.Remainder),
"Signbit": reflect.ValueOf(wrap_math.Signbit),
"Sin": reflect.ValueOf(wrap_math.Sin),
"Sincos": reflect.ValueOf(wrap_math.Sincos),
"Sinh": reflect.ValueOf(wrap_math.Sinh),
"SmallestNonzeroFloat32": reflect.ValueOf(wrap_math.SmallestNonzeroFloat32),
"SmallestNonzeroFloat64": reflect.ValueOf(wrap_math.SmallestNonzeroFloat64),
"Sqrt": reflect.ValueOf(wrap_math.Sqrt),
"Sqrt2": reflect.ValueOf(wrap_math.Sqrt2),
"SqrtE": reflect.ValueOf(wrap_math.SqrtE),
"SqrtPhi": reflect.ValueOf(wrap_math.SqrtPhi),
"SqrtPi": reflect.ValueOf(wrap_math.SqrtPi),
"Tan": reflect.ValueOf(wrap_math.Tan),
"Tanh": reflect.ValueOf(wrap_math.Tanh),
"Trunc": reflect.ValueOf(wrap_math.Trunc),
"Y0": reflect.ValueOf(wrap_math.Y0),
"Y1": reflect.ValueOf(wrap_math.Y1),
"Yn": reflect.ValueOf(wrap_math.Yn),
"Sqrt": reflect.ValueOf(wrap_math.Sqrt),
"Sqrt2": reflect.ValueOf(wrap_math.Sqrt2),
"SqrtE": reflect.ValueOf(wrap_math.SqrtE),
"SqrtPhi": reflect.ValueOf(wrap_math.SqrtPhi),
"SqrtPi": reflect.ValueOf(wrap_math.SqrtPi),
"Tan": reflect.ValueOf(wrap_math.Tan),
"Tanh": reflect.ValueOf(wrap_math.Tanh),
"Trunc": reflect.ValueOf(wrap_math.Trunc),
"Y0": reflect.ValueOf(wrap_math.Y0),
"Y1": reflect.ValueOf(wrap_math.Y1),
"Yn": reflect.ValueOf(wrap_math.Yn),
},
}

Expand Down
Loading