index
int64
0
0
repo_id
stringclasses
596 values
file_path
stringlengths
31
168
content
stringlengths
1
6.2M
0
lc_public_repos/langsmith-sdk/vendor/orjson/include
lc_public_repos/langsmith-sdk/vendor/orjson/include/yyjson/yyjson.h
/*============================================================================== Copyright (c) 2020 YaoYuan <ibireme@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restric...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include
lc_public_repos/langsmith-sdk/vendor/orjson/include/yyjson/yyjson.c
/*============================================================================== Copyright (c) 2020 YaoYuan <ibireme@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restric...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/LICENSE-APACHE
Copyright (c) 2017-present PyO3 Project and Contributors. https://github.com/PyO3 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "Lice...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/LICENSE-MIT
Copyright (c) 2023-present PyO3 Project and Contributors. https://github.com/PyO3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/LICENSE-APACHE
Copyright (c) 2017-present PyO3 Project and Contributors. https://github.com/PyO3 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "Lice...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/Cargo.toml
[package] name = "pyo3-build-config" version = "0.23.0-dev" description = "Build configuration for the PyO3 ecosystem" authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"] keywords = ["pyo3", "python", "cpython", "ffi"] homepage = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/build.rs
// Import some modules from this crate inline to generate the build config. // Allow dead code because not all code in the modules is used in this build script. #[path = "src/impl_.rs"] #[allow(dead_code)] mod impl_; #[path = "src/errors.rs"] #[allow(dead_code)] mod errors; use std::{env, path::Path}; use errors::{...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/LICENSE-MIT
Copyright (c) 2023-present PyO3 Project and Contributors. https://github.com/PyO3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/src/impl_.rs
//! Main implementation module included in both the `pyo3-build-config` library crate //! and its build script. // Optional python3.dll import library generator for Windows #[cfg(feature = "python3-dll-a")] #[path = "import_lib.rs"] mod import_lib; use std::{ collections::{HashMap, HashSet}, env, ffi::{Os...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/src/import_lib.rs
//! Optional `python3.dll` import library generator for Windows use std::env; use std::path::PathBuf; use python3_dll_a::ImportLibraryGenerator; use target_lexicon::{Architecture, OperatingSystem, Triple}; use super::{PythonImplementation, PythonVersion}; use crate::errors::{Context, Error, Result}; /// Generates t...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/src/lib.rs
//! Configuration used by PyO3 for conditional support of varying Python versions. //! //! This crate exposes functionality to be called from build scripts to simplify building crates //! which depend on PyO3. //! //! It used internally by the PyO3 crate's build script to apply the same configuration. #![warn(elided_l...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-build-config/src/errors.rs
/// A simple macro for returning an error. Resembles anyhow::bail. #[macro_export] #[doc(hidden)] macro_rules! bail { ($($args: tt)+) => { return Err(format!($($args)+).into()) }; } /// A simple macro for checking a condition. Resembles anyhow::ensure. #[macro_export] #[doc(hidden)] macro_rules! ensure { ($con...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/LICENSE-APACHE
Copyright (c) 2017-present PyO3 Project and Contributors. https://github.com/PyO3 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "Lice...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/Cargo.toml
[package] name = "pyo3-ffi" version = "0.23.0-dev" description = "Python-API bindings for the PyO3 ecosystem" authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"] keywords = ["pyo3", "python", "cpython", "ffi"] homepage = "https://github.com/pyo3/pyo3" repository = "https://github.com/pyo3/pyo3" catego...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/build.rs
use pyo3_build_config::{ bail, ensure, print_feature_cfgs, pyo3_build_script_impl::{ cargo_env_var, env_var, errors::Result, is_linking_libpython, resolve_interpreter_config, InterpreterConfig, PythonVersion, }, warn, BuildFlag, PythonImplementation, }; use std::ops::Not; /// Minimum Py...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/LICENSE-MIT
Copyright (c) 2023-present PyO3 Project and Contributors. https://github.com/PyO3 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/ACKNOWLEDGEMENTS
This is a Rust reimplementation of the CPython public header files as necessary for binary compatibility, with additional metadata to support PyPy. For original implementations please see: - https://github.com/python/cpython - https://foss.heptapod.net/pypy/pypy
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pyhash.rs
#[cfg(not(any(Py_LIMITED_API, PyPy, GraalPy)))] use crate::pyport::{Py_hash_t, Py_ssize_t}; #[cfg(not(any(Py_LIMITED_API, PyPy, GraalPy)))] use std::os::raw::{c_char, c_void}; use std::os::raw::{c_int, c_ulong}; extern "C" { // skipped non-limited _Py_HashDouble // skipped non-limited _Py_HashPointer // s...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/context.rs
use crate::object::{PyObject, PyTypeObject, Py_TYPE}; use std::os::raw::{c_char, c_int}; use std::ptr::addr_of_mut; extern "C" { pub static mut PyContext_Type: PyTypeObject; // skipped non-limited opaque PyContext pub static mut PyContextVar_Type: PyTypeObject; // skipped non-limited opaque PyContextVa...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pystate.rs
use crate::moduleobject::PyModuleDef; use crate::object::PyObject; use std::os::raw::c_int; #[cfg(not(PyPy))] use std::os::raw::c_long; pub const MAX_CO_EXTRA_USERS: c_int = 255; opaque_struct!(PyThreadState); opaque_struct!(PyInterpreterState); extern "C" { #[cfg(not(PyPy))] pub fn PyInterpreterState_New()...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/setobject.rs
use crate::object::*; #[cfg(not(any(Py_LIMITED_API, PyPy, GraalPy)))] use crate::pyport::Py_hash_t; use crate::pyport::Py_ssize_t; use std::os::raw::c_int; use std::ptr::addr_of_mut; pub const PySet_MINSIZE: usize = 8; #[cfg(not(any(Py_LIMITED_API, PyPy, GraalPy)))] #[repr(C)] #[derive(Debug)] pub struct setentry { ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/ceval.rs
use crate::object::PyObject; use crate::pystate::PyThreadState; use std::os::raw::{c_char, c_int, c_void}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyEval_EvalCode")] pub fn PyEval_EvalCode( arg1: *mut PyObject, arg2: *mut PyObject, arg3: *mut PyObject, ) -> *mut PyObject; ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/bytesobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyBytes_Type")] pub static mut PyBytes_Type: PyTypeObject; pub static mut PyBytesIter_Type: PyTypeObj...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/compile.rs
use std::os::raw::c_int; pub const Py_single_input: c_int = 256; pub const Py_file_input: c_int = 257; pub const Py_eval_input: c_int = 258; #[cfg(Py_3_8)] pub const Py_func_type_input: c_int = 345; #[cfg(Py_3_9)] pub const Py_fstring_input: c_int = 800;
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/sliceobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg(not(GraalPy))] #[cfg_attr(PyPy, link_name = "_PyPy_EllipsisObject")] static mut _Py_EllipsisObject: PyObject; #[cfg(GraalPy)] st...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/typeslots.rs
use std::os::raw::c_int; pub const Py_bf_getbuffer: c_int = 1; pub const Py_bf_releasebuffer: c_int = 2; pub const Py_mp_ass_subscript: c_int = 3; pub const Py_mp_length: c_int = 4; pub const Py_mp_subscript: c_int = 5; pub const Py_nb_absolute: c_int = 6; pub const Py_nb_add: c_int = 7; pub const Py_nb_and: c_int = 8...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/listobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyList_Type")] pub static mut PyList_Type: PyTypeObject; pub static mut PyListIter_Type: PyTypeObject; pub ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/methodobject.rs
use crate::object::{PyObject, PyTypeObject, Py_TYPE}; #[cfg(Py_3_9)] use crate::PyObject_TypeCheck; use std::os::raw::{c_char, c_int, c_void}; use std::{mem, ptr}; #[cfg(all(Py_3_9, not(Py_LIMITED_API), not(GraalPy)))] pub struct PyCFunctionObject { pub ob_base: PyObject, pub m_ml: *mut PyMethodDef, pub m_...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pycapsule.rs
use crate::object::*; use std::os::raw::{c_char, c_int, c_void}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyCapsule_Type")] pub static mut PyCapsule_Type: PyTypeObject; } pub type PyCapsule_Destructor = unsafe extern "C" fn(o: *mut P...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/descrobject.rs
use crate::methodobject::PyMethodDef; use crate::object::{PyObject, PyTypeObject}; use crate::Py_ssize_t; use std::os::raw::{c_char, c_int, c_void}; use std::ptr; pub type getter = unsafe extern "C" fn(slf: *mut PyObject, closure: *mut c_void) -> *mut PyObject; pub type setter = unsafe extern "C" fn(slf: *mut PyOb...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/complexobject.rs
use crate::object::*; use std::os::raw::{c_double, c_int}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyComplex_Type")] pub static mut PyComplex_Type: PyTypeObject; } #[inline] pub unsafe fn PyComplex_Check(op: *mut PyObject) -> c_int ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/unicodeobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use libc::wchar_t; use std::os::raw::{c_char, c_int, c_void}; #[cfg(not(PyPy))] use std::ptr::addr_of_mut; #[cfg(not(Py_LIMITED_API))] #[cfg_attr( Py_3_13, deprecated(note = "Deprecated since Python 3.13. Use `libc::wchar_t` instead.") )] pub type Py_UNICODE...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/structmember.rs
use std::os::raw::c_int; pub use crate::PyMemberDef; pub use crate::Py_T_BOOL as T_BOOL; pub use crate::Py_T_BYTE as T_BYTE; pub use crate::Py_T_CHAR as T_CHAR; pub use crate::Py_T_DOUBLE as T_DOUBLE; pub use crate::Py_T_FLOAT as T_FLOAT; pub use crate::Py_T_INT as T_INT; pub use crate::Py_T_LONG as T_LONG; pub use c...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/bytearrayobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; use std::ptr::addr_of_mut; #[cfg(not(any(PyPy, GraalPy, Py_LIMITED_API)))] #[repr(C)] pub struct PyByteArrayObject { pub ob_base: PyVarObject, pub ob_alloc: Py_ssize_t, pub ob_bytes: *mut c_char, pub ob_start: *mut ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/floatobject.rs
use crate::object::*; use std::os::raw::{c_double, c_int}; use std::ptr::addr_of_mut; #[cfg(Py_LIMITED_API)] // TODO: remove (see https://github.com/PyO3/pyo3/pull/1341#issuecomment-751515985) opaque_struct!(PyFloatObject); #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "P...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/objimpl.rs
use libc::size_t; use std::os::raw::{c_int, c_void}; use crate::object::*; use crate::pyport::Py_ssize_t; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyObject_Malloc")] pub fn PyObject_Malloc(size: size_t) -> *mut c_void; #[cfg_attr(PyPy, link_name = "PyPyObject_Calloc")] pub fn PyObject_Calloc(nelem...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pyport.rs
pub type PY_UINT32_T = u32; pub type PY_UINT64_T = u64; pub type PY_INT32_T = i32; pub type PY_INT64_T = i64; pub type Py_uintptr_t = ::libc::uintptr_t; pub type Py_intptr_t = ::libc::intptr_t; pub type Py_ssize_t = ::libc::ssize_t; pub type Py_hash_t = Py_ssize_t; pub type Py_uhash_t = ::libc::size_t; pub const PY...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pystrtod.rs
use crate::object::PyObject; use std::os::raw::{c_char, c_double, c_int}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyOS_string_to_double")] pub fn PyOS_string_to_double( str: *const c_char, endptr: *mut *mut c_char, overflow_exception: *mut PyObject, ) -> c_double; #[cfg_att...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/code.rs
// This header doesn't exist in CPython, but Include/cpython/code.h does. We add // this here so that PyCodeObject has a definition under the limited API. opaque_struct!(PyCodeObject);
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/boolobject.rs
#[cfg(not(GraalPy))] use crate::longobject::PyLongObject; use crate::object::*; use std::os::raw::{c_int, c_long}; use std::ptr::addr_of_mut; #[inline] pub unsafe fn PyBool_Check(op: *mut PyObject) -> c_int { (Py_TYPE(op) == addr_of_mut!(PyBool_Type)) as c_int } #[cfg_attr(windows, link(name = "pythonXY"))] exter...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/rangeobject.rs
use crate::object::*; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyRange_Type")] pub static mut PyRange_Type: PyTypeObject; pub static mut PyRangeIter_Type: PyTypeObject; pub static mut PyLongRangeIter_T...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/structseq.rs
use crate::object::{PyObject, PyTypeObject}; #[cfg(not(PyPy))] use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; #[repr(C)] #[derive(Copy, Clone)] pub struct PyStructSequence_Field { pub name: *const c_char, pub doc: *const c_char, } #[repr(C)] #[derive(Copy, Clone)] pub struct PyStructSequenc...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/moduleobject.rs
use crate::methodobject::PyMethodDef; use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int, c_void}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyModule_Type")] pub static mut PyModule_Type: PyTypeObject...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/longobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use libc::size_t; use std::os::raw::{c_char, c_double, c_int, c_long, c_longlong, c_ulong, c_ulonglong, c_void}; use std::ptr::addr_of_mut; opaque_struct!(PyLongObject); #[inline] pub unsafe fn PyLong_Check(op: *mut PyObject) -> c_int { PyType_FastSubclass(Py_T...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/memoryobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg(not(Py_LIMITED_API))] pub static mut _PyManagedBuffer_Type: PyTypeObject; #[cfg_attr(PyPy, link_name = "PyPyMemoryView_Type")]...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/traceback.rs
use crate::object::*; use std::os::raw::c_int; #[cfg(not(PyPy))] use std::ptr::addr_of_mut; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyTraceBack_Here")] pub fn PyTraceBack_Here(arg1: *mut crate::PyFrameObject) -> c_int; #[cfg_attr(PyPy, link_name = "PyPyTraceBack_Print")] pub fn PyTraceBack_Print(a...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pybuffer.rs
use crate::object::PyObject; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int, c_void}; use std::ptr; #[repr(C)] #[derive(Copy, Clone)] pub struct Py_buffer { pub buf: *mut c_void, /// Owned reference pub obj: *mut crate::PyObject, pub len: Py_ssize_t, pub itemsize: Py_ssize_t, p...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pyerrors.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyErr_SetNone")] pub fn PyErr_SetNone(arg1: *mut PyObject); #[cfg_attr(PyPy, link_name = "PyPyErr_SetObject")] pub fn PyErr_SetObject(arg1: *mut PyObject, arg2: *mut PyOb...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/codecs.rs
use crate::object::PyObject; use std::os::raw::{c_char, c_int}; extern "C" { pub fn PyCodec_Register(search_function: *mut PyObject) -> c_int; #[cfg(Py_3_10)] #[cfg(not(PyPy))] pub fn PyCodec_Unregister(search_function: *mut PyObject) -> c_int; // skipped non-limited _PyCodec_Lookup from Include/co...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/abstract_.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; #[inline] #[cfg(all(not(Py_3_13), not(PyPy)))] // CPython exposed as a function in 3.13, in object.h pub unsafe fn PyObject_DelAttrString(o: *mut PyObject, attr_name: *const c_char) -> c_int { PyObject_SetAttrString(o, attr_nam...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/object.rs
use crate::pyport::{Py_hash_t, Py_ssize_t}; #[cfg(Py_GIL_DISABLED)] use crate::PyMutex; #[cfg(Py_GIL_DISABLED)] use std::marker::PhantomPinned; use std::mem; use std::os::raw::{c_char, c_int, c_uint, c_ulong, c_void}; use std::ptr; #[cfg(Py_GIL_DISABLED)] use std::sync::atomic::{AtomicIsize, AtomicU32, AtomicU8, Orderi...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/osmodule.rs
use crate::object::PyObject; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyOS_FSPath")] pub fn PyOS_FSPath(path: *mut PyObject) -> *mut PyObject; }
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/dictobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyDict_Type")] pub static mut PyDict_Type: PyTypeObject; } #[inline] pub unsafe fn PyDict_Check(op: *mut...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/datetime.rs
//! FFI bindings to the functions and structs defined in `datetime.h` //! //! This is the unsafe thin wrapper around the [CPython C API](https://docs.python.org/3/c-api/datetime.html), //! and covers the various date and time related objects in the Python `datetime` //! standard library module. #[cfg(GraalPy)] use cr...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/bltinmodule.rs
use crate::object::PyTypeObject; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { pub static mut PyFilter_Type: PyTypeObject; pub static mut PyMap_Type: PyTypeObject; pub static mut PyZip_Type: PyTypeObject; }
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/warnings.rs
use crate::object::PyObject; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyErr_WarnEx")] pub fn PyErr_WarnEx( category: *mut PyObject, message: *const c_char, stack_level: Py_ssize_t, ) -> c_int; #[cfg_attr(PyPy,...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/lib.rs
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] //! Raw FFI declarations for Python's C API. //! //! PyO3 can be used to write native Python modules or run Python code and modules from Rust. //! //! This crate just provides low level bindings to the Python interpreter. //! It is meant for advanced users only - reg...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/iterobject.rs
use crate::object::*; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { pub static mut PySeqIter_Type: PyTypeObject; pub static mut PyCallIter_Type: PyTypeObject; } #[inline] pub unsafe fn PySeqIter_Check(op: *mut PyObject) -> c_int { (Py_TYPE(o...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pythonrun.rs
use crate::object::*; #[cfg(not(any(PyPy, Py_LIMITED_API, Py_3_10)))] use libc::FILE; #[cfg(any(Py_LIMITED_API, not(Py_3_10), PyPy, GraalPy))] use std::os::raw::c_char; use std::os::raw::c_int; extern "C" { #[cfg(any(all(Py_LIMITED_API, not(PyPy)), GraalPy))] pub fn Py_CompileString(string: *const c_char, p: *...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/modsupport.rs
use crate::methodobject::PyMethodDef; use crate::moduleobject::PyModuleDef; use crate::object::PyObject; use crate::pyport::Py_ssize_t; use std::os::raw::{c_char, c_int, c_long}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyArg_Parse")] pub fn PyArg_Parse(arg1: *mut PyObject, arg2: *const c_char, ...) -> c_i...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/tupleobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[cfg_attr(PyPy, link_name = "PyPyTuple_Type")] pub static mut PyTuple_Type: PyTypeObject; pub static mut PyTupleIter_Type: PyTypeObject; } #[...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/marshal.rs
use super::{PyObject, Py_ssize_t}; use std::os::raw::{c_char, c_int}; // skipped Py_MARSHAL_VERSION // skipped PyMarshal_WriteLongToFile // skipped PyMarshal_WriteObjectToFile extern "C" { #[cfg_attr(PyPy, link_name = "PyPyMarshal_WriteObjectToString")] pub fn PyMarshal_WriteObjectToString(object: *mut PyObje...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pyframe.rs
#[cfg(not(GraalPy))] #[cfg(any(Py_3_10, all(Py_3_9, not(Py_LIMITED_API))))] use crate::PyCodeObject; #[cfg(not(Py_LIMITED_API))] use crate::PyFrameObject; use std::os::raw::c_int; #[cfg(Py_LIMITED_API)] opaque_struct!(PyFrameObject); extern "C" { pub fn PyFrame_GetLineNumber(f: *mut PyFrameObject) -> c_int; #...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/weakrefobject.rs
use crate::object::*; use std::os::raw::c_int; #[cfg(not(PyPy))] use std::ptr::addr_of_mut; #[cfg(all(not(PyPy), Py_LIMITED_API, not(GraalPy)))] opaque_struct!(PyWeakReference); #[cfg(all(not(PyPy), not(Py_LIMITED_API), not(GraalPy)))] pub use crate::_PyWeakReference as PyWeakReference; #[cfg_attr(windows, link(name...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/enumobject.rs
use crate::object::PyTypeObject; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { pub static mut PyEnum_Type: PyTypeObject; pub static mut PyReversed_Type: PyTypeObject; }
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/intrcheck.rs
use std::os::raw::c_int; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyOS_InterruptOccurred")] pub fn PyOS_InterruptOccurred() -> c_int; #[cfg(not(Py_3_10))] #[deprecated(note = "Not documented in Python API; see Python 3.10 release notes")] pub fn PyOS_InitInterrupts(); pub fn PyOS_BeforeFor...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pylifecycle.rs
use crate::pystate::PyThreadState; use libc::wchar_t; use std::os::raw::{c_char, c_int}; extern "C" { pub fn Py_Initialize(); pub fn Py_InitializeEx(arg1: c_int); pub fn Py_Finalize(); pub fn Py_FinalizeEx() -> c_int; #[cfg_attr(PyPy, link_name = "PyPy_IsInitialized")] pub fn Py_IsInitialized...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/fileobject.rs
use crate::object::PyObject; use std::os::raw::{c_char, c_int}; pub const PY_STDIOTEXTMODE: &str = "b"; extern "C" { pub fn PyFile_FromFd( arg1: c_int, arg2: *const c_char, arg3: *const c_char, arg4: c_int, arg5: *const c_char, arg6: *const c_char, arg7: *co...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/sysmodule.rs
use crate::object::PyObject; use libc::wchar_t; use std::os::raw::{c_char, c_int}; extern "C" { #[cfg_attr(PyPy, link_name = "PyPySys_GetObject")] pub fn PySys_GetObject(arg1: *const c_char) -> *mut PyObject; #[cfg_attr(PyPy, link_name = "PyPySys_SetObject")] pub fn PySys_SetObject(arg1: *const c_char,...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/fileutils.rs
use crate::pyport::Py_ssize_t; use libc::wchar_t; use std::os::raw::c_char; extern "C" { pub fn Py_DecodeLocale(arg1: *const c_char, size: *mut Py_ssize_t) -> *mut wchar_t; pub fn Py_EncodeLocale(text: *const wchar_t, error_pos: *mut Py_ssize_t) -> *mut c_char; }
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/import.rs
use crate::object::PyObject; use std::os::raw::{c_char, c_int, c_long}; extern "C" { pub fn PyImport_GetMagicNumber() -> c_long; pub fn PyImport_GetMagicTag() -> *const c_char; #[cfg_attr(PyPy, link_name = "PyPyImport_ExecCodeModule")] pub fn PyImport_ExecCodeModule(name: *const c_char, co: *mut PyObje...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pyarena.rs
opaque_struct!(PyArena);
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/pymem.rs
use libc::size_t; use std::os::raw::c_void; extern "C" { #[cfg_attr(PyPy, link_name = "PyPyMem_Malloc")] pub fn PyMem_Malloc(size: size_t) -> *mut c_void; #[cfg_attr(PyPy, link_name = "PyPyMem_Calloc")] pub fn PyMem_Calloc(nelem: size_t, elsize: size_t) -> *mut c_void; #[cfg_attr(PyPy, link_name = ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/compat/py_3_10.rs
compat_function!( originally_defined_for(Py_3_10); #[inline] pub unsafe fn Py_NewRef(obj: *mut crate::PyObject) -> *mut crate::PyObject { crate::Py_INCREF(obj); obj } ); compat_function!( originally_defined_for(Py_3_10); #[inline] pub unsafe fn Py_XNewRef(obj: *mut crate::...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/compat/py_3_9.rs
compat_function!( originally_defined_for(all( not(PyPy), not(GraalPy), any(Py_3_10, all(not(Py_LIMITED_API), Py_3_9)) // Added to python in 3.9 but to limited API in 3.10 )); #[inline] pub unsafe fn PyObject_CallNoArgs(obj: *mut crate::PyObject) -> *mut crate::PyObject { ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/compat/py_3_13.rs
compat_function!( originally_defined_for(Py_3_13); #[inline] pub unsafe fn PyDict_GetItemRef( dp: *mut crate::PyObject, key: *mut crate::PyObject, result: *mut *mut crate::PyObject, ) -> std::os::raw::c_int { use crate::{compat::Py_NewRef, PyDict_GetItemWithError, PyErr_...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/compat/mod.rs
//! C API Compatibility Shims //! //! Some CPython C API functions added in recent versions of Python are //! inherently safer to use than older C API constructs. This module //! exposes functions available on all Python versions that wrap the //! old C API on old Python versions and wrap the function directly //! on n...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/pystate.rs
#[cfg(not(PyPy))] use crate::PyThreadState; use crate::{PyFrameObject, PyInterpreterState, PyObject}; use std::os::raw::c_int; // skipped _PyInterpreterState_RequiresIDRef // skipped _PyInterpreterState_RequireIDRef // skipped _PyInterpreterState_GetMainModule pub type Py_tracefunc = unsafe extern "C" fn( obj: *...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/ceval.rs
use crate::cpython::pystate::Py_tracefunc; use crate::object::{freefunc, PyObject}; use std::os::raw::c_int; extern "C" { // skipped non-limited _PyEval_CallTracing #[cfg(not(Py_3_11))] pub fn _PyEval_EvalFrameDefault(arg1: *mut crate::PyFrameObject, exc: c_int) -> *mut PyObject; #[cfg(Py_3_11)] ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/bytesobject.rs
use crate::object::*; use crate::Py_ssize_t; #[cfg(not(any(PyPy, GraalPy, Py_LIMITED_API)))] use std::os::raw::c_char; use std::os::raw::c_int; #[cfg(not(any(PyPy, GraalPy, Py_LIMITED_API)))] #[repr(C)] pub struct PyBytesObject { pub ob_base: PyVarObject, #[cfg_attr( Py_3_11, deprecated(note = ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/compile.rs
#[cfg(not(any(PyPy, Py_3_10)))] use crate::object::PyObject; #[cfg(not(any(PyPy, Py_3_10)))] use crate::pyarena::*; #[cfg(not(any(PyPy, Py_3_10)))] use crate::pythonrun::*; #[cfg(not(any(PyPy, Py_3_10)))] use crate::PyCodeObject; #[cfg(not(any(PyPy, Py_3_10)))] use std::os::raw::c_char; use std::os::raw::c_int; // ski...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/initconfig.rs
/* --- PyStatus ----------------------------------------------- */ use crate::Py_ssize_t; use libc::wchar_t; use std::os::raw::{c_char, c_int, c_ulong}; #[repr(C)] #[derive(Copy, Clone, Debug, PartialEq, Eq)] pub enum _PyStatus_TYPE { _PyStatus_TYPE_OK = 0, _PyStatus_TYPE_ERROR = 1, _PyStatus_TYPE_EXIT = ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/frameobject.rs
#[cfg(not(GraalPy))] use crate::cpython::code::PyCodeObject; use crate::object::*; #[cfg(not(GraalPy))] use crate::pystate::PyThreadState; #[cfg(not(any(PyPy, GraalPy, Py_3_11)))] use std::os::raw::c_char; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg(not(any(PyPy, GraalPy, Py_3_11)))] pub type PyFrameStat...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/genobject.rs
use crate::object::*; use crate::PyFrameObject; #[cfg(not(any(PyPy, GraalPy)))] use crate::_PyErr_StackItem; #[cfg(Py_3_11)] use std::os::raw::c_char; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg(not(any(PyPy, GraalPy)))] #[repr(C)] pub struct PyGenObject { pub ob_base: PyObject, #[cfg(not(Py_3_11...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/listobject.rs
use crate::object::*; #[cfg(not(PyPy))] use crate::pyport::Py_ssize_t; #[cfg(not(any(PyPy, GraalPy)))] #[repr(C)] pub struct PyListObject { pub ob_base: PyVarObject, pub ob_item: *mut *mut PyObject, pub allocated: Py_ssize_t, } #[cfg(any(PyPy, GraalPy))] pub struct PyListObject { pub ob_base: PyObject...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/methodobject.rs
use crate::object::*; #[cfg(not(GraalPy))] use crate::{PyCFunctionObject, PyMethodDefPointer, METH_METHOD, METH_STATIC}; use std::os::raw::c_int; use std::ptr::addr_of_mut; #[cfg(not(GraalPy))] pub struct PyCMethodObject { pub func: PyCFunctionObject, pub mm_class: *mut PyTypeObject, } #[cfg_attr(windows, lin...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/funcobject.rs
use std::os::raw::c_int; #[cfg(not(all(PyPy, not(Py_3_8))))] use std::ptr::addr_of_mut; use crate::PyObject; #[cfg(all(not(any(PyPy, GraalPy)), not(Py_3_10)))] #[repr(C)] pub struct PyFunctionObject { pub ob_base: PyObject, pub func_code: *mut PyObject, pub func_globals: *mut PyObject, pub func_defaul...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/descrobject.rs
use crate::{PyGetSetDef, PyMethodDef, PyObject, PyTypeObject}; use std::os::raw::{c_char, c_int, c_void}; pub type wrapperfunc = Option< unsafe extern "C" fn( slf: *mut PyObject, args: *mut PyObject, wrapped: *mut c_void, ) -> *mut PyObject, >; pub type wrapperfunc_kwds = Option< u...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/complexobject.rs
use crate::PyObject; use std::os::raw::c_double; #[repr(C)] #[derive(Copy, Clone)] pub struct Py_complex { pub real: c_double, pub imag: c_double, } // skipped private function _Py_c_sum // skipped private function _Py_c_diff // skipped private function _Py_c_neg // skipped private function _Py_c_prod // skip...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/unicodeobject.rs
#[cfg(not(any(PyPy, GraalPy)))] use crate::Py_hash_t; use crate::{PyObject, Py_UCS1, Py_UCS2, Py_UCS4, Py_ssize_t}; use libc::wchar_t; use std::os::raw::{c_char, c_int, c_uint, c_void}; // skipped Py_UNICODE_ISSPACE() // skipped Py_UNICODE_ISLOWER() // skipped Py_UNICODE_ISUPPER() // skipped Py_UNICODE_ISTITLE() // sk...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/floatobject.rs
#[cfg(GraalPy)] use crate::PyFloat_AsDouble; use crate::{PyFloat_Check, PyObject}; use std::os::raw::c_double; #[repr(C)] pub struct PyFloatObject { pub ob_base: PyObject, #[cfg(not(GraalPy))] pub ob_fval: c_double, } #[inline] pub unsafe fn _PyFloat_CAST(op: *mut PyObject) -> *mut PyFloatObject { deb...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/objimpl.rs
use libc::size_t; use std::os::raw::c_int; #[cfg(not(any(PyPy, GraalPy)))] use std::os::raw::c_void; use crate::object::*; // skipped _PyObject_SIZE // skipped _PyObject_VAR_SIZE #[cfg(not(Py_3_11))] extern "C" { pub fn _Py_GetAllocatedBlocks() -> crate::Py_ssize_t; } #[cfg(not(any(PyPy, GraalPy)))] #[repr(C)]...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/code.rs
use crate::object::*; use crate::pyport::Py_ssize_t; #[allow(unused_imports)] use std::os::raw::{c_char, c_int, c_short, c_uchar, c_void}; #[cfg(not(any(PyPy, GraalPy)))] use std::ptr::addr_of_mut; #[cfg(all(Py_3_8, not(any(PyPy, GraalPy)), not(Py_3_11)))] opaque_struct!(_PyOpcache); #[cfg(Py_3_12)] pub const _PY_MO...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/longobject.rs
use crate::longobject::*; use crate::object::*; #[cfg(Py_3_13)] use crate::pyport::Py_ssize_t; use libc::size_t; #[cfg(Py_3_13)] use std::os::raw::c_void; use std::os::raw::{c_int, c_uchar}; #[cfg(Py_3_13)] extern "C" { pub fn PyLong_FromUnicodeObject(u: *mut PyObject, base: c_int) -> *mut PyObject; } #[cfg(Py_3_...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/lock.rs
use std::marker::PhantomPinned; use std::sync::atomic::AtomicU8; #[repr(transparent)] #[derive(Debug)] pub struct PyMutex { pub(crate) _bits: AtomicU8, pub(crate) _pin: PhantomPinned, } impl PyMutex { pub const fn new() -> PyMutex { PyMutex { _bits: AtomicU8::new(0), _pin: ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/pyerrors.rs
use crate::PyObject; #[cfg(not(any(PyPy, GraalPy)))] use crate::Py_ssize_t; #[repr(C)] #[derive(Debug)] pub struct PyBaseExceptionObject { pub ob_base: PyObject, #[cfg(not(any(PyPy, GraalPy)))] pub dict: *mut PyObject, #[cfg(not(any(PyPy, GraalPy)))] pub args: *mut PyObject, #[cfg(all(Py_3_11, ...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/abstract_.rs
use crate::{PyObject, Py_ssize_t}; use std::os::raw::{c_char, c_int}; #[cfg(not(Py_3_11))] use crate::Py_buffer; #[cfg(all(Py_3_8, not(any(PyPy, GraalPy))))] use crate::{ vectorcallfunc, PyCallable_Check, PyThreadState, PyThreadState_GET, PyTuple_Check, PyType_HasFeature, Py_TPFLAGS_HAVE_VECTORCALL, }; #[cfg(...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/object.rs
#[cfg(Py_3_8)] use crate::vectorcallfunc; use crate::{object, PyGetSetDef, PyMemberDef, PyMethodDef, PyObject, Py_ssize_t}; use std::mem; use std::os::raw::{c_char, c_int, c_uint, c_void}; // skipped private _Py_NewReference // skipped private _Py_NewReferenceNoTotal // skipped private _Py_ResurrectReference // skipp...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/pydebug.rs
use std::os::raw::{c_char, c_int}; #[cfg(not(Py_LIMITED_API))] #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { #[deprecated(note = "Python 3.12")] #[cfg_attr(PyPy, link_name = "PyPy_DebugFlag")] pub static mut Py_DebugFlag: c_int; #[deprecated(note = "Python 3.12")] #[cfg_attr(PyPy, link...
0
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src
lc_public_repos/langsmith-sdk/vendor/orjson/include/pyo3/pyo3-ffi/src/cpython/dictobject.rs
use crate::object::*; use crate::pyport::Py_ssize_t; use std::os::raw::c_int; opaque_struct!(PyDictKeysObject); #[cfg(Py_3_11)] opaque_struct!(PyDictValues); #[cfg(not(GraalPy))] #[repr(C)] #[derive(Debug)] pub struct PyDictObject { pub ob_base: PyObject, pub ma_used: Py_ssize_t, #[cfg_attr( Py_3...