Skip to content

Commit

Permalink
* Include genericaliasobject.h, context.h, tracemalloc.h, and …
Browse files Browse the repository at this point in the history
…`datetime.h` for CPython (issue #1017)
  • Loading branch information
saudet committed Mar 13, 2021
1 parent 32d981f commit 4d29d05
Show file tree
Hide file tree
Showing 190 changed files with 1,026 additions and 177 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Include `genericaliasobject.h`, `context.h`, `tracemalloc.h`, and `datetime.h` for CPython ([issue #1017](https://github.com/bytedeco/javacpp-presets/issues/1017))
* Add samples using LLVM modules to deal with bitcode and object files ([pull #1016](https://github.com/bytedeco/javacpp-presets/pull/1016))

### March 8, 2021 version 1.5.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/Func.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/PyAddrPair.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/PyArena.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/PyCFunction.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/PyCMethod.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
2 changes: 1 addition & 1 deletion cpython/src/gen/java/org/bytedeco/cpython/PyConfig.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
19 changes: 19 additions & 0 deletions cpython/src/gen/java/org/bytedeco/cpython/PyContext.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;

import static org.bytedeco.cpython.global.python.*;

@Opaque @Properties(inherit = org.bytedeco.cpython.presets.python.class)
public class PyContext extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public PyContext() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PyContext(Pointer p) { super(p); }
}
19 changes: 19 additions & 0 deletions cpython/src/gen/java/org/bytedeco/cpython/PyContextToken.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;

import static org.bytedeco.cpython.global.python.*;

@Opaque @Properties(inherit = org.bytedeco.cpython.presets.python.class)
public class PyContextToken extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public PyContextToken() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PyContextToken(Pointer p) { super(p); }
}
19 changes: 19 additions & 0 deletions cpython/src/gen/java/org/bytedeco/cpython/PyContextVar.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;

import static org.bytedeco.cpython.global.python.*;

@Opaque @Properties(inherit = org.bytedeco.cpython.presets.python.class)
public class PyContextVar extends Pointer {
/** Empty constructor. Calls {@code super((Pointer)null)}. */
public PyContextVar() { super((Pointer)null); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PyContextVar(Pointer p) { super(p); }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

Expand Down
133 changes: 133 additions & 0 deletions cpython/src/gen/java/org/bytedeco/cpython/PyDateTime_CAPI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
// Targeted by JavaCPP version 1.5.6-SNAPSHOT: DO NOT EDIT THIS FILE

package org.bytedeco.cpython;

import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.presets.javacpp.*;

import static org.bytedeco.cpython.global.python.*;



/* Define structure for C API. */
@Properties(inherit = org.bytedeco.cpython.presets.python.class)
public class PyDateTime_CAPI extends Pointer {
static { Loader.load(); }
/** Default native constructor. */
public PyDateTime_CAPI() { super((Pointer)null); allocate(); }
/** Native array allocator. Access with {@link Pointer#position(long)}. */
public PyDateTime_CAPI(long size) { super((Pointer)null); allocateArray(size); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public PyDateTime_CAPI(Pointer p) { super(p); }
private native void allocate();
private native void allocateArray(long size);
@Override public PyDateTime_CAPI position(long position) {
return (PyDateTime_CAPI)super.position(position);
}
@Override public PyDateTime_CAPI getPointer(long i) {
return new PyDateTime_CAPI((Pointer)this).position(position + i);
}

/* type objects */
public native PyTypeObject DateType(); public native PyDateTime_CAPI DateType(PyTypeObject setter);
public native PyTypeObject DateTimeType(); public native PyDateTime_CAPI DateTimeType(PyTypeObject setter);
public native PyTypeObject TimeType(); public native PyDateTime_CAPI TimeType(PyTypeObject setter);
public native PyTypeObject DeltaType(); public native PyDateTime_CAPI DeltaType(PyTypeObject setter);
public native PyTypeObject TZInfoType(); public native PyDateTime_CAPI TZInfoType(PyTypeObject setter);

/* singletons */
public native PyObject TimeZone_UTC(); public native PyDateTime_CAPI TimeZone_UTC(PyObject setter);

/* constructors */
public static class Date_FromDate_int_int_int_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Date_FromDate_int_int_int_PyTypeObject(Pointer p) { super(p); }
protected Date_FromDate_int_int_int_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, PyTypeObject arg3);
}
public native Date_FromDate_int_int_int_PyTypeObject Date_FromDate(); public native PyDateTime_CAPI Date_FromDate(Date_FromDate_int_int_int_PyTypeObject setter);
public static class DateTime_FromDateAndTime_int_int_int_int_int_int_int_PyObject_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DateTime_FromDateAndTime_int_int_int_int_int_int_int_PyObject_PyTypeObject(Pointer p) { super(p); }
protected DateTime_FromDateAndTime_int_int_int_int_int_int_int_PyObject_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
PyObject arg7, PyTypeObject arg8);
}
public native DateTime_FromDateAndTime_int_int_int_int_int_int_int_PyObject_PyTypeObject DateTime_FromDateAndTime(); public native PyDateTime_CAPI DateTime_FromDateAndTime(DateTime_FromDateAndTime_int_int_int_int_int_int_int_PyObject_PyTypeObject setter);
public static class Time_FromTime_int_int_int_int_PyObject_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Time_FromTime_int_int_int_int_PyObject_PyTypeObject(Pointer p) { super(p); }
protected Time_FromTime_int_int_int_int_PyObject_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, int arg3, PyObject arg4, PyTypeObject arg5);
}
public native Time_FromTime_int_int_int_int_PyObject_PyTypeObject Time_FromTime(); public native PyDateTime_CAPI Time_FromTime(Time_FromTime_int_int_int_int_PyObject_PyTypeObject setter);
public static class Delta_FromDelta_int_int_int_int_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Delta_FromDelta_int_int_int_int_PyTypeObject(Pointer p) { super(p); }
protected Delta_FromDelta_int_int_int_int_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, int arg3, PyTypeObject arg4);
}
public native Delta_FromDelta_int_int_int_int_PyTypeObject Delta_FromDelta(); public native PyDateTime_CAPI Delta_FromDelta(Delta_FromDelta_int_int_int_int_PyTypeObject setter);
public static class TimeZone_FromTimeZone_PyObject_PyObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public TimeZone_FromTimeZone_PyObject_PyObject(Pointer p) { super(p); }
protected TimeZone_FromTimeZone_PyObject_PyObject() { allocate(); }
private native void allocate();
public native PyObject call(PyObject offset, PyObject name);
}
public native TimeZone_FromTimeZone_PyObject_PyObject TimeZone_FromTimeZone(); public native PyDateTime_CAPI TimeZone_FromTimeZone(TimeZone_FromTimeZone_PyObject_PyObject setter);

/* constructors for the DB API */
public static class DateTime_FromTimestamp_PyObject_PyObject_PyObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DateTime_FromTimestamp_PyObject_PyObject_PyObject(Pointer p) { super(p); }
protected DateTime_FromTimestamp_PyObject_PyObject_PyObject() { allocate(); }
private native void allocate();
public native PyObject call(PyObject arg0, PyObject arg1, PyObject arg2);
}
public native DateTime_FromTimestamp_PyObject_PyObject_PyObject DateTime_FromTimestamp(); public native PyDateTime_CAPI DateTime_FromTimestamp(DateTime_FromTimestamp_PyObject_PyObject_PyObject setter);
public static class Date_FromTimestamp_PyObject_PyObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Date_FromTimestamp_PyObject_PyObject(Pointer p) { super(p); }
protected Date_FromTimestamp_PyObject_PyObject() { allocate(); }
private native void allocate();
public native PyObject call(PyObject arg0, PyObject arg1);
}
public native Date_FromTimestamp_PyObject_PyObject Date_FromTimestamp(); public native PyDateTime_CAPI Date_FromTimestamp(Date_FromTimestamp_PyObject_PyObject setter);

/* PEP 495 constructors */
public static class DateTime_FromDateAndTimeAndFold_int_int_int_int_int_int_int_PyObject_int_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public DateTime_FromDateAndTimeAndFold_int_int_int_int_int_int_int_PyObject_int_PyTypeObject(Pointer p) { super(p); }
protected DateTime_FromDateAndTimeAndFold_int_int_int_int_int_int_int_PyObject_int_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6,
PyObject arg7, int arg8, PyTypeObject arg9);
}
public native DateTime_FromDateAndTimeAndFold_int_int_int_int_int_int_int_PyObject_int_PyTypeObject DateTime_FromDateAndTimeAndFold(); public native PyDateTime_CAPI DateTime_FromDateAndTimeAndFold(DateTime_FromDateAndTimeAndFold_int_int_int_int_int_int_int_PyObject_int_PyTypeObject setter);
public static class Time_FromTimeAndFold_int_int_int_int_PyObject_int_PyTypeObject extends FunctionPointer {
static { Loader.load(); }
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */
public Time_FromTimeAndFold_int_int_int_int_PyObject_int_PyTypeObject(Pointer p) { super(p); }
protected Time_FromTimeAndFold_int_int_int_int_PyObject_int_PyTypeObject() { allocate(); }
private native void allocate();
public native PyObject call(int arg0, int arg1, int arg2, int arg3, PyObject arg4, int arg5, PyTypeObject arg6);
}
public native Time_FromTimeAndFold_int_int_int_int_PyObject_int_PyTypeObject Time_FromTimeAndFold(); public native PyDateTime_CAPI Time_FromTimeAndFold(Time_FromTimeAndFold_int_int_int_int_PyObject_int_PyTypeObject setter);

}
Loading

0 comments on commit 4d29d05

Please sign in to comment.