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

Skip to content

Clean up headers in extensions #27885

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
Mar 12, 2024
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
1 change: 0 additions & 1 deletion src/_backend_agg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#include <Python.h>
#include "_backend_agg.h"
#include "mplutils.h"

RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi)
: width(width),
Expand Down
5 changes: 2 additions & 3 deletions src/_backend_agg.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
#define MPL_BACKEND_AGG_H

#include <cmath>
#include <vector>
#include <algorithm>

#include "agg_alpha_mask_u8.h"
#include "agg_conv_curve.h"
#include "agg_conv_dash.h"
#include "agg_conv_stroke.h"
#include "agg_conv_transform.h"
#include "agg_image_accessors.h"
#include "agg_path_storage.h"
#include "agg_pixfmt_amask_adaptor.h"
#include "agg_pixfmt_gray.h"
#include "agg_pixfmt_rgba.h"
Expand All @@ -25,7 +26,6 @@
#include "agg_scanline_bin.h"
#include "agg_scanline_p.h"
#include "agg_scanline_storage_aa.h"
#include "agg_scanline_storage_bin.h"
#include "agg_scanline_u.h"
#include "agg_span_allocator.h"
#include "agg_span_converter.h"
Expand All @@ -34,7 +34,6 @@
#include "agg_span_image_filter_rgba.h"
#include "agg_span_interpolator_linear.h"
#include "agg_span_pattern_rgba.h"
#include "util/agg_color_conv_rgb8.h"

#include "_backend_agg_basic_types.h"
#include "path_converters.h"
Expand Down
1 change: 1 addition & 0 deletions src/_backend_agg_basic_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include "agg_color_rgba.h"
#include "agg_math_stroke.h"
#include "agg_trans_affine.h"
#include "path_converters.h"

#include "py_adaptors.h"
Expand Down
1 change: 0 additions & 1 deletion src/_image_resample.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "agg_image_accessors.h"
#include "agg_path_storage.h"
#include "agg_pixfmt_gray.h"
#include "agg_pixfmt_rgb.h"
#include "agg_pixfmt_rgba.h"
#include "agg_renderer_base.h"
#include "agg_renderer_scanline.h"
Expand Down
1 change: 0 additions & 1 deletion src/_path.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "agg_conv_curve.h"
#include "agg_conv_stroke.h"
#include "agg_conv_transform.h"
#include "agg_path_storage.h"
#include "agg_trans_affine.h"

#include "path_converters.h"
Expand Down
4 changes: 2 additions & 2 deletions src/_tkagg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
// you can get it at https://python-pillow.org/

#include <Python.h>
#include <memory>
#include <new>
#include <stdexcept>
#include <string>
#include <tuple>
#include <vector>

#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
Expand Down Expand Up @@ -48,6 +46,8 @@ static inline PyObject *PyErr_SetFromWindowsErr(int ierr) {
#endif

#ifdef WIN32_DLL
#include <vector>

#include <windows.h>
#include <commctrl.h>
#define PSAPI_VERSION 1
Expand Down
2 changes: 1 addition & 1 deletion src/_ttconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

Python wrapper for TrueType conversion library in ../ttconv.
*/

#include <pybind11/pybind11.h>
#include "mplutils.h"
#include "pprdrv.h"
#include <vector>

Expand Down
3 changes: 3 additions & 0 deletions src/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#ifndef MPL_SCALAR_H
#define MPL_SCALAR_H

#include <cstddef>
#include <stdexcept>

namespace array
{

Expand Down
6 changes: 3 additions & 3 deletions src/ft2font.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>

#include <vector>
#include<set>
#include <stdint.h>
#include <cstdint>
#include <set>
#include <unordered_map>
#include <vector>

extern "C" {
#include <ft2build.h>
Expand Down
2 changes: 0 additions & 2 deletions src/ft2font_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
#include "ft2font.h"
#include "py_converters.h"
#include "py_exceptions.h"
#include "numpy_cpp.h"

// From Python
#include <structmember.h>

#include <set>
#include <algorithm>

static PyObject *convert_xys_to_array(std::vector<double> &xys)
{
Expand Down
1 change: 0 additions & 1 deletion src/mplutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#define PY_SSIZE_T_CLEAN

#include <Python.h>
#include <stdint.h>

#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
Expand Down
4 changes: 2 additions & 2 deletions src/path_converters.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#define MPL_PATH_CONVERTERS_H

#include <cmath>
#include <stdint.h>
#include "agg_path_storage.h"
#include <cstdint>

#include "agg_clip_liang_barsky.h"
#include "mplutils.h"
#include "agg_conv_segmentator.h"
Expand Down
1 change: 1 addition & 0 deletions src/py_adaptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "numpy/arrayobject.h"

#include "agg_basics.h"
#include "py_exceptions.h"

extern "C" {
Expand Down