Commit 72594afc authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

add dll im/ex port

parent 8fd6eae3
/* kww_counterms.c
*
*
* Copyright (C) 2009 Joachim Wuttke
*
*
* Licence: GNU General Public License, version 3 or later
*
* Author:
......@@ -17,7 +17,7 @@
#include <math.h>
#include "kww.h"
extern int kww_num_of_terms;
KWW_IMPORT extern int kww_num_of_terms;
double kwwc_lim_low( const double beta );
double kwwc_lim_hig( const double beta );
......
/* runkww.c
*
*
* Copyright (C) 2009 Joachim Wuttke
*
*
* Licence: GNU General Public License, version 3 or later
*
* Author:
......@@ -16,7 +16,9 @@
#include <stdlib.h>
#include "kww.h"
extern int kww_algorithm, kww_num_of_terms, kww_debug;
KWW_IMPORT extern int kww_algorithm;
KWW_IMPORT extern int kww_num_of_terms;
KWW_IMPORT extern int kww_debug;
int main( int argc, char **argv )
{
......
......@@ -43,7 +43,10 @@
#define PI_2 1.57079632679489661923L /* pi/2 */
#define SQR(x) ((x)*(x))
int kww_algorithm, kww_num_of_terms, kww_debug=0; // for external analysis
// for external analysis:
KWW_EXPORT int kww_algorithm;
KWW_EXPORT int kww_num_of_terms;
KWW_EXPORT int kww_debug=0;
/*****************************************************************************/
/* Numeric precision and maximum number of terms */
......
......@@ -2,17 +2,17 @@
* Calculation of the Kohlrausch-Williams-Watts spectrum, i.e.
* Laplace-Fourier transform of the stretched exponential function exp(-t^b).
* Frequently used to describe relaxation in disordered systems.
*
*
* Copyright:
* (C) 2009, 2012 Joachim Wuttke
*
*
* Licence:
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published
* by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version. Alternative licenses can be
* obtained through written agreement from the author.
*
*
* This program is distributed in the hope that it will be useful,
* but without any warranty; without even the implied warranty of
* merchantability or fitness for a particular purpose.
......@@ -46,6 +46,14 @@
#endif
__BEGIN_DECLS
#if _WIN32
#define KWW_EXPORT __declspec(dllexport)
#define KWW_IMPORT __declspec(dllimport)
#else
#define KWW_EXPORT
#define KWW_IMPORT
#endif
/*****************************************************************************/
/* High-level calls */
/*****************************************************************************/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment