Add copyright header

master
Rémi Calixte 2018-12-13 17:09:42 -05:00 committed by Maxime Mouial
parent 279898b35c
commit 9e4fc8dd4c
41 changed files with 296 additions and 1 deletions

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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
/* /*

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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

View File

@ -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
/* /*

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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) {

View File

@ -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

View File

@ -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
/* /*

View File

@ -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

View File

@ -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 (

View File

@ -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
/* /*

View File

@ -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
/* /*

View File

@ -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
View File

@ -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
/* /*

View File

@ -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
/* /*

View File

@ -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
View File

@ -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;

View File

@ -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
View File

@ -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

View File

@ -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
/* /*

View File

@ -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) {

View File

@ -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

View File

@ -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
/* /*