/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	This program is distributed in the hope that it will be 
	useful, but WITHOUT ANY WARRANTY; without even the 
	implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.

**********************************************************************/

#ifndef VPFUTIL_H____
#define VPFUTIL_H____

#include <stdio.h>
#include "vpf_types.h"
#include "vpf_container.h"
#ifndef isnan
#define isnan(x) ((x) != (x))
#endif

int readToNextSeparator(FILE *fp , char *buf , char separator, int buff_len);
void vpf_max_rect(VPF_RECT *ret, const VPF_RECT *new_rect);
void vpf_max_rect_xy(VPF_RECT *ret, LONG_FLOAT x, LONG_FLOAT y);
void vpf_trim(char *str);
BOOL vpf_coordinate_equals(const VPF_COORDINATE *lhs, const VPF_COORDINATE *rhs);

#endif

