From 9e4fc8dd4c90bf7428dcfe55288b7c804613cb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Calixte?= Date: Thu, 13 Dec 2018 17:09:42 -0500 Subject: [PATCH] Add copyright header --- boolean.go | 7 +++++++ boolean_test.go | 7 +++++++ byte_array.go | 7 +++++++ byte_array_test.go | 7 +++++++ bytes.go | 7 +++++++ bytes_test.go | 7 +++++++ complex.go | 7 +++++++ complex_test.go | 7 +++++++ dict.go | 7 +++++++ dict_test.go | 7 +++++++ errors.go | 7 +++++++ exceptions.go | 7 +++++++ float.go | 7 +++++++ float_test.go | 7 +++++++ helper.go | 7 +++++++ high_level_layer.go | 7 +++++++ import.go | 7 +++++++ import_test.go | 7 +++++++ integer.go | 7 +++++++ integer_test.go | 7 +++++++ lifecycle.go | 7 +++++++ lifecycle_test.go | 7 +++++++ list.go | 7 +++++++ macro.c | 7 +++++++ macro.h | 7 +++++++ module.go | 7 +++++++ object.go | 7 +++++++ object_test.go | 7 +++++++ recursion.go | 7 +++++++ reflection.go | 7 +++++++ script/variadic.go | 17 ++++++++++++++++- sys.go | 7 +++++++ thread.go | 7 +++++++ tuple.go | 7 +++++++ type.c | 7 +++++++ type.go | 7 +++++++ type.h | 7 +++++++ unicode.go | 7 +++++++ variadic.c | 7 +++++++ variadic.h | 7 +++++++ warning.go | 7 +++++++ 41 files changed, 296 insertions(+), 1 deletion(-) diff --git a/boolean.go b/boolean.go index 33fba38..ec498c7 100644 --- a/boolean.go +++ b/boolean.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/boolean_test.go b/boolean_test.go index 7eee22a..30df887 100644 --- a/boolean_test.go +++ b/boolean_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/byte_array.go b/byte_array.go index aa6144f..200f5cd 100644 --- a/byte_array.go +++ b/byte_array.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/byte_array_test.go b/byte_array_test.go index c4d688e..c00f57c 100644 --- a/byte_array_test.go +++ b/byte_array_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/bytes.go b/bytes.go index 3886a57..7001f0b 100644 --- a/bytes.go +++ b/bytes.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/bytes_test.go b/bytes_test.go index 6d62838..9996e37 100644 --- a/bytes_test.go +++ b/bytes_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/complex.go b/complex.go index 37e2b29..b523870 100644 --- a/complex.go +++ b/complex.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/complex_test.go b/complex_test.go index 4dea378..19aebd4 100644 --- a/complex_test.go +++ b/complex_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/dict.go b/dict.go index 35ff74c..c158107 100644 --- a/dict.go +++ b/dict.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/dict_test.go b/dict_test.go index 2b06c84..795c571 100644 --- a/dict_test.go +++ b/dict_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/errors.go b/errors.go index 164d184..4a2b846 100644 --- a/errors.go +++ b/errors.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/exceptions.go b/exceptions.go index 2c7c658..1b23f5c 100644 --- a/exceptions.go +++ b/exceptions.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/float.go b/float.go index f41ef29..37b1c22 100644 --- a/float.go +++ b/float.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/float_test.go b/float_test.go index 2b3668a..cc7406e 100644 --- a/float_test.go +++ b/float_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/helper.go b/helper.go index f846f1f..0d360b2 100644 --- a/helper.go +++ b/helper.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 //go:generate go run script/variadic.go diff --git a/high_level_layer.go b/high_level_layer.go index d1844d7..4dec89b 100644 --- a/high_level_layer.go +++ b/high_level_layer.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/import.go b/import.go index b7faed8..eeca028 100644 --- a/import.go +++ b/import.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/import_test.go b/import_test.go index d09ccc9..f722497 100644 --- a/import_test.go +++ b/import_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/integer.go b/integer.go index 704c328..afd4621 100644 --- a/integer.go +++ b/integer.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/integer_test.go b/integer_test.go index 68c2e5b..674501f 100644 --- a/integer_test.go +++ b/integer_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/lifecycle.go b/lifecycle.go index ff6a0be..5197ac8 100644 --- a/lifecycle.go +++ b/lifecycle.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/lifecycle_test.go b/lifecycle_test.go index 641ba9b..8afc223 100644 --- a/lifecycle_test.go +++ b/lifecycle_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/list.go b/list.go index 4d9a501..93ba7fa 100644 --- a/list.go +++ b/list.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/macro.c b/macro.c index cd243cf..2d13839 100644 --- a/macro.c +++ b/macro.c @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #include "macro.h" int _go_Py_EnterRecursiveCall(const char *where) { diff --git a/macro.h b/macro.h index ca7486a..b0c23ab 100644 --- a/macro.h +++ b/macro.h @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #ifndef MACRO_H #define MACRO_H diff --git a/module.go b/module.go index 3c74d48..dd9709c 100644 --- a/module.go +++ b/module.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/object.go b/object.go index d9088c1..32a5f71 100644 --- a/object.go +++ b/object.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 //go:generate go run script/variadic.go diff --git a/object_test.go b/object_test.go index 99aef4c..ae2e171 100644 --- a/object_test.go +++ b/object_test.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 import ( diff --git a/recursion.go b/recursion.go index 8d133ff..641870b 100644 --- a/recursion.go +++ b/recursion.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/reflection.go b/reflection.go index cbdc175..74692f9 100644 --- a/reflection.go +++ b/reflection.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/script/variadic.go b/script/variadic.go index 07ad01e..e453347 100644 --- a/script/variadic.go +++ b/script/variadic.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package main import ( @@ -22,12 +29,20 @@ func main() { os.Exit(1) } defer out.Close() + _, err = out.WriteString(`/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ - _, err = out.WriteString("#include \"Python.h\"\n\n") +`) if err != nil { fmt.Printf("Error writing to file %s: %s", *output, err) os.Exit(1) } + + out.WriteString("#include \"Python.h\"\n\n") out.WriteString(renderTemplate(*caseNumber, "PyObject_CallFunctionObjArgs", "callable")) out.WriteString(renderTemplate(*caseNumber, "PyObject_CallMethodObjArgs", "obj", "name")) diff --git a/sys.go b/sys.go index d85d8ab..c8a86ec 100644 --- a/sys.go +++ b/sys.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/thread.go b/thread.go index 9da3782..84ae076 100644 --- a/thread.go +++ b/thread.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/tuple.go b/tuple.go index ed83492..2ee42c0 100644 --- a/tuple.go +++ b/tuple.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/type.c b/type.c index a864dc9..8becf29 100644 --- a/type.c +++ b/type.c @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #include "type.h" PyObject *_go_PyType_Type = (PyObject *)&PyType_Type; diff --git a/type.go b/type.go index f609a41..3a89483 100644 --- a/type.go +++ b/type.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/type.h b/type.h index 19eb75e..a7e8b71 100644 --- a/type.h +++ b/type.h @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #ifndef TYPE_H #define TYPE_H diff --git a/unicode.go b/unicode.go index 951b45a..9820f15 100644 --- a/unicode.go +++ b/unicode.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /* diff --git a/variadic.c b/variadic.c index 0cfab2f..e647d62 100644 --- a/variadic.c +++ b/variadic.c @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #include "Python.h" PyObject* _go_PyObject_CallFunctionObjArgs(PyObject *callable, int argc, PyObject **argv) { diff --git a/variadic.h b/variadic.h index 8834e67..3ca7ac2 100644 --- a/variadic.h +++ b/variadic.h @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + #ifndef VARIADIC_H #define VARIADIC_H diff --git a/warning.go b/warning.go index 3ee0a20..5d3cb73 100644 --- a/warning.go +++ b/warning.go @@ -1,3 +1,10 @@ +/* +Unless explicitly stated otherwise all files in this repository are licensed +under the $license_for_repo License. +This product includes software developed at Datadog (https://www.datadoghq.com/). +Copyright 2018 Datadog, Inc. +*/ + package python3 /*