File: _doubleloadtester.cpp

package info (click to toggle)
pycryptopp 0.6.0.20120313-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,148 kB
  • ctags: 9,015
  • sloc: cpp: 29,875; asm: 3,519; python: 1,779; ansic: 1,517; makefile: 65
file content (35 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#include <Python.h>

PyDoc_STRVAR(_doubleloadtester__doc__,
             "_doubleloadtester -- just for testing ticket #9 per ticket #44\n\
");

static PyMethodDef _doubleloadtester_functions[] = {
    {NULL, NULL, 0, NULL}  /* sentinel */
};

/* from Crypto++ */
#ifdef DISABLE_EMBEDDED_CRYPTOPP
#include <cryptopp/cryptlib.h>
#else
#include <src-cryptopp/cryptlib.h>
#endif

#ifndef PyMODINIT_FUNC /* declarations for DLL import/export */
#define PyMODINIT_FUNC void
#endif
PyMODINIT_FUNC
init_doubleloadtester(void) {
    const CryptoPP::NameValuePairs &my_nullNameValuePairs = CryptoPP::g_nullNameValuePairs;
    PyObject *module;


    printf("HELLO WORLD i'm doubleloadtester\n");
    printf("%d\n", my_nullNameValuePairs.GetVoidValue("anything", typeid(0), NULL));
    printf("GOODBYE i'm doubleloadtester\n");

    module = Py_InitModule3("_doubleloadtester", _doubleloadtester_functions, _doubleloadtester__doc__);
    if (!module)
        return;
}