pkgsrc/www/php3/files/abstractions.c
tv 0e52b10d4f Make the php3 pkg work and add full dynamic module support. This includes:
- the CGI-based interpreter, xbase support binaries, and php2 converter
- compiled-in support for Berkeley DB (ndbm), yp, zlib, dBase (xbase),
  and filePro
- the ability to compile PHP3 extensions as dynamic modules (such as support
  for MySQL/PostgreSQL/freeODBC) that may be exchanged freely between
  different server interfaces to PHP (abstractions.c and php.h/tls.h patches)
1999-05-03 19:45:43 +00:00

30 lines
617 B
C

/* $NetBSD: abstractions.c,v 1.1 1999/05/03 19:45:44 tv Exp $ */
/*
* This provides abstracted definitions for a few functions that are
* "inlined" in normal statically-compiled PHP modules. This way, any
* dynamic module can be used with any PHP server interface (CGI, Apache, ...).
*/
#define PHP_INTERNAL_FUNCS 1
#include "php.h"
void _php3_puts(const char *s) {
PUTS(s);
}
void _php3_putc(char c) {
PUTC(c);
}
int _php3_write(const void *a, int n) {
PHPWRITE(a, n);
}
void _php3_block_interruptions(void) {
BLOCK_INTERRUPTIONS;
}
void _php3_unblock_interruptions(void) {
UNBLOCK_INTERRUPTIONS;
}