Eliminate obsolete CANTERA_USE_INTERNAL

This commit is contained in:
Ray Speth 2023-01-28 15:09:50 -05:00 committed by Ingmar Schoegl
parent 076dff7462
commit e428489656
9 changed files with 5 additions and 26 deletions

View File

@ -11,21 +11,10 @@
#include "cantera/base/config.h"
#include <stdlib.h>
#ifdef _WIN32
// Windows (MSVC or MinGW)
# ifdef CANTERA_USE_INTERNAL
# define CANTERA_CAPI extern __declspec(dllexport)
# else
# define CANTERA_CAPI extern __declspec(dllimport)
# endif
#else
// Non-Windows platform
# ifdef CANTERA_USE_INTERNAL
# define CANTERA_CAPI extern
# else
# define CANTERA_CAPI
# endif
#endif
// Legacy attribute applied to clib functions. Currently, used only to identify
// functions that should be considered by the 'sourcegen' parser for inclusion in the
// C# interface.
#define CANTERA_CAPI
// Values returned for error conditions
#ifndef ERR

View File

@ -7,9 +7,6 @@
#include "cantera/numerics/Func1.h"
#include "cantera/base/ctexceptions.h"
#include <stdexcept>
#define CANTERA_USE_INTERNAL
#include "cantera/clib/clib_defs.h"
#include "Python.h"
typedef double(*callback_wrapper)(double, void*, void**);
@ -166,7 +163,7 @@ private:
};
extern "C" {
CANTERA_CAPI PyObject* pyCanteraError;
extern PyObject* pyCanteraError;
}

View File

@ -11,7 +11,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ct.h"
// Cantera includes

View File

@ -5,7 +5,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctfunc.h"
#include "cantera/numerics/Func1.h"

View File

@ -5,7 +5,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctmultiphase.h"
// Cantera includes

View File

@ -5,7 +5,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctonedim.h"
// Cantera includes

View File

@ -5,7 +5,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctreactor.h"
// Cantera includes

View File

@ -5,7 +5,6 @@
// This file is part of Cantera. See License.txt in the top-level directory or
// at https://cantera.org/license.txt for license and copyright information.
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctrpath.h"
// Cantera includes

View File

@ -6,7 +6,6 @@
// at https://cantera.org/license.txt for license and copyright information.
// clib header information
#define CANTERA_USE_INTERNAL
#include "cantera/clib/ctsurf.h"
// Cantera includes