File: lfc2thr.i

package info (click to toggle)
lfc-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,676 kB
  • ctags: 10,779
  • sloc: ansic: 146,136; sh: 13,176; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 861; fortran: 113
file content (26 lines) | stat: -rw-r--r-- 479 bytes parent folder | download | duplicates (8)
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
/*********************************************
    SWIG input file for LFC
 (including typemaps for non-trivial functions
*********************************************/

%module lfc2thr

%{
#include "Python.h"
#include "lfc_api.h"
%}

%init %{
    Cthread_init ();
%}

%exception %{
      char serrbuf[ERRORLEN_MAX] = "";
      lfc_seterrbuf (serrbuf, ERRORLEN_MAX);
      Py_BEGIN_ALLOW_THREADS
      $action
      Py_END_ALLOW_THREADS
%}

%include "lfc_api.h"
%include "Cns.i"