~ubuntu-branches/ubuntu/lucid/graphviz/lucid-updates

« back to all changes in this revision

Viewing changes to tclpkg/gv/gv_php_init.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2008-06-19 20:23:23 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080619202323-ls23h96ntj9ny94m
Tags: 2.18-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Drop libttf-dev (libttf-dev is in universe) (LP: #174749).
  - Replace gs-common with ghostscript.
  - Build-depend on python-dev instead of python2.4-dev or python2.5-dev.
  - Mention the correct python version for the python bindings in the
    package description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <php.h>
 
2
#include <gvc.h>
 
3
#include <gvplugin.h>
 
4
#include <gvcjob.h>
 
5
#include <gvcint.h>
 
6
 
 
7
static size_t gv_php_writer (const char *s, int len)
 
8
{
 
9
        return PHPWRITE(s, len);
 
10
}
 
11
 
 
12
void gv_binding_init ( GVC_t *gvc)
 
13
{
 
14
        gvc->write_fn = gv_php_writer;
 
15
}