8000 [MNT] Move NUM_VERTICES from mplutils.h to the only file it is used in by oscargus · Pull Request #26826 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

[MNT] Move NUM_VERTICES from mplutils.h to the only file it is used in #26826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include "_backend_agg_basic_types.h"
#include "numpy_cpp.h"

const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3 };

struct XY
{
double x;
Expand Down
2 changes: 0 additions & 2 deletions src/mplutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ enum {
CLOSEPOLY = 0x4f
};

const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3, 1 };

inline int prepare_and_add_type(PyTypeObject *type, PyObject *module)
{
if (PyType_Ready(type)) {
Expand Down
0