Skip to content

Commit

Permalink
chore: minor cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jan 24, 2025
1 parent 08c7789 commit ecbc861
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 20 deletions.
20 changes: 3 additions & 17 deletions awkward-cpp/include/awkward/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,14 @@
#ifndef AWKWARD_COMMON_H_
#define AWKWARD_COMMON_H_

#include <cstddef>
#include <cstdint>

#ifdef _MSC_VER
#define EXPORT_SYMBOL __declspec(dllexport)
#ifdef _WIN64
typedef signed __int64 ssize_t;
typedef unsigned __int64 size_t;
#else
typedef signed int ssize_t;
typedef unsigned int size_t;
#endif
typedef unsigned char uint8_t;
typedef signed char int8_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned int uint32_t;
typedef signed int int32_t;
typedef unsigned __int64 uint64_t;
typedef signed __int64 int64_t;
#define ERROR Error
#else
#define EXPORT_SYMBOL __attribute__((visibility("default")))
#include <cstddef>
#include <cstdint>
#define ERROR struct Error
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/awkward/_nplikes/cupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


@register_nplike
class Cupy(ArrayModuleNumpyLike): # pylint: disable=too-many-ancestors
class Cupy(ArrayModuleNumpyLike):
is_eager: Final = False
supports_structured_dtypes: Final = False

Expand Down
2 changes: 1 addition & 1 deletion src/awkward/_nplikes/jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


@register_nplike
class Jax(ArrayModuleNumpyLike): # pylint: disable=too-many-ancestors
class Jax(ArrayModuleNumpyLike):
is_eager: Final = True
supports_structured_dtypes: Final = False

Expand Down
2 changes: 1 addition & 1 deletion src/awkward/_nplikes/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


@register_nplike
class Numpy(ArrayModuleNumpyLike["NDArray"]): # pylint: disable=too-many-ancestors
class Numpy(ArrayModuleNumpyLike["NDArray"]):
is_eager: Final = True
supports_structured_dtypes: Final = True

Expand Down

0 comments on commit ecbc861

Please sign in to comment.