changeset 398:3905052ebe1d

maint: sort uses of new header file oct-py-object.h * Makefile.am (PYTAVE_HEADER_FILES): Sort the list. * oct-py-object.h: Add missing #include <Python.h>. * oct-py-util.cc: Sort the include files.
author Mike Miller <mtmiller@octave.org>
date Fri, 28 Apr 2017 09:03:55 -0700
parents fc0fb94161de
children 692cecebc71f
files Makefile.am oct-py-object.h oct-py-util.cc
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.am	Thu Apr 13 02:10:48 2017 -0700
+++ b/Makefile.am	Fri Apr 28 09:03:55 2017 -0700
@@ -68,11 +68,11 @@
   config.h \
   exceptions.h \
   oct-py-eval.h \
+  oct-py-object.h \
   oct-py-types.h \
   oct-py-util.h \
   octave_to_python.h \
-  python_to_octave.h \
-  oct-py-object.h
+  python_to_octave.h
 
 TST_FILES = $(addsuffix -tst,$(OCT_SOURCE_FILES))
 
--- a/oct-py-object.h	Thu Apr 13 02:10:48 2017 -0700
+++ b/oct-py-object.h	Fri Apr 28 09:03:55 2017 -0700
@@ -23,6 +23,8 @@
 #if ! defined (pytave_oct_py_object_h)
 #define pytave_oct_py_object_h
 
+#include <Python.h>
+
 namespace pytave
 {
 
@@ -102,4 +104,3 @@
 }
 
 #endif
-
--- a/oct-py-util.cc	Thu Apr 13 02:10:48 2017 -0700
+++ b/oct-py-util.cc	Fri Apr 28 09:03:55 2017 -0700
@@ -27,9 +27,9 @@
 #include <oct.h>
 #include <octave/parse.h>
 
+#include "oct-py-object.h"
 #include "oct-py-types.h"
 #include "oct-py-util.h"
-#include "oct-py-object.h"
 
 // FIXME: only here for boost::python::error_already_set
 #include <boost/python.hpp>