source: trunk/_doubleloadtester.cpp

Last change on this file was 9c884d4, checked in by Brian Warner <warner@…>, at 2012-03-11T00:02:11Z

move embeddedcryptopp/ to src-cryptopp/

  • Property mode set to 100644
File size: 960 bytes
Line 
1
2#include <Python.h>
3
4PyDoc_STRVAR(_doubleloadtester__doc__,
5             "_doubleloadtester -- just for testing ticket #9 per ticket #44\n\
6");
7
8static PyMethodDef _doubleloadtester_functions[] = {
9    {NULL, NULL, 0, NULL}  /* sentinel */
10};
11
12/* from Crypto++ */
13#ifdef DISABLE_EMBEDDED_CRYPTOPP
14#include <cryptopp/cryptlib.h>
15#else
16#include <src-cryptopp/cryptlib.h>
17#endif
18
19#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
20#define PyMODINIT_FUNC void
21#endif
22PyMODINIT_FUNC
23init_doubleloadtester(void) {
24    const CryptoPP::NameValuePairs &my_nullNameValuePairs = CryptoPP::g_nullNameValuePairs;
25    PyObject *module;
26
27
28    printf("HELLO WORLD i'm doubleloadtester\n");
29    printf("%d\n", my_nullNameValuePairs.GetVoidValue("anything", typeid(0), NULL));
30    printf("GOODBYE i'm doubleloadtester\n");
31
32    module = Py_InitModule3("_doubleloadtester", _doubleloadtester_functions, _doubleloadtester__doc__);
33    if (!module)
34        return;
35}
Note: See TracBrowser for help on using the repository browser.