Add copyright header
parent
279898b35c
commit
9e4fc8dd4c
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
7
bytes.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
7
dict.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
7
float.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
//go:generate go run script/variadic.go
|
//go:generate go run 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 python3
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
7
list.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
7
macro.c
7
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"
|
#include "macro.h"
|
||||||
|
|
||||||
int _go_Py_EnterRecursiveCall(const char *where) {
|
int _go_Py_EnterRecursiveCall(const char *where) {
|
||||||
|
|
7
macro.h
7
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
|
#ifndef MACRO_H
|
||||||
#define MACRO_H
|
#define 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package python3
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
//go:generate go run script/variadic.go
|
//go:generate go run 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 python3
|
package python3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -22,12 +29,20 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
defer out.Close()
|
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 {
|
if err != nil {
|
||||||
fmt.Printf("Error writing to file %s: %s", *output, err)
|
fmt.Printf("Error writing to file %s: %s", *output, err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out.WriteString("#include \"Python.h\"\n\n")
|
||||||
out.WriteString(renderTemplate(*caseNumber, "PyObject_CallFunctionObjArgs", "callable"))
|
out.WriteString(renderTemplate(*caseNumber, "PyObject_CallFunctionObjArgs", "callable"))
|
||||||
out.WriteString(renderTemplate(*caseNumber, "PyObject_CallMethodObjArgs", "obj", "name"))
|
out.WriteString(renderTemplate(*caseNumber, "PyObject_CallMethodObjArgs", "obj", "name"))
|
||||||
|
|
||||||
|
|
7
sys.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
7
tuple.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
7
type.c
7
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"
|
#include "type.h"
|
||||||
|
|
||||||
PyObject *_go_PyType_Type = (PyObject *)&PyType_Type;
|
PyObject *_go_PyType_Type = (PyObject *)&PyType_Type;
|
||||||
|
|
7
type.go
7
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
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
7
type.h
7
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
|
#ifndef TYPE_H
|
||||||
#define TYPE_H
|
#define 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package python3
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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"
|
#include "Python.h"
|
||||||
|
|
||||||
PyObject* _go_PyObject_CallFunctionObjArgs(PyObject *callable, int argc, PyObject **argv) {
|
PyObject* _go_PyObject_CallFunctionObjArgs(PyObject *callable, int argc, PyObject **argv) {
|
||||||
|
|
|
@ -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
|
#ifndef VARIADIC_H
|
||||||
#define VARIADIC_H
|
#define 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.
|
||||||
|
*/
|
||||||
|
|
||||||
package python3
|
package python3
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue