Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd8198c

Browse files
authored
Merge pull request #26826 from oscargus/numvertices
[MNT] Move NUM_VERTICES from mplutils.h to the only file it is used in
2 parents 1b13549 + 730a0bf commit bd8198c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/_path.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "_backend_agg_basic_types.h"
2222
#include "numpy_cpp.h"
2323

24+
const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3 };
25+
2426
struct XY
2527
{
2628
double x;

src/mplutils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ enum {
4949
CLOSEPOLY = 0x4f
5050
};
5151

52-
const size_t NUM_VERTICES[] = { 1, 1, 1, 2, 3, 1 };
53-
5452
inline int prepare_and_add_type(PyTypeObject *type, PyObject *module)
5553
{
5654
if (PyType_Ready(type)) {

0 commit comments

Comments
 (0)