/* $Id$ */
#define	MAX_COMMAND	1000	/* max length of internally generated cmd */
#define MAXHOSTNAMELEN	64	/* max length of hostname */
#if !defined(_PATH_SENDMAIL)
# define _PATH_SENDMAIL "/usr/lib/sendmail"
#endif /*SENDMAIL*/
#define MAILCMD _PATH_SENDMAIL
#define ERROR_EXIT	1	/* exit() with this will scare the shell */
/*#define MAILARGS "%s -Fpostgres -odi -oem -or0s %s"		*/
#define MAILARGS "%s -Fpostgres -oem %s"
#define APARTIA_HOME "/usr/local/auction"

#include "executor/spi.h"	/* this is what you need to work with SPI */
#include "commands/trigger.h"	/* -"- and triggers */

#include <unistd.h>
#include <libintl.h>
#include <locale.h>
#include <crypt.h>

HeapTuple bid_control(void);
HeapTuple add_user_password(void);
HeapTuple validate_category(void);

static int sendmail(char*, char*, char *);
static double incr(double);
static double adjust(double);
static char * strAllocCat (char **a, const char *b);
