From: <suc...@us...> - 2006-10-18 21:47:14
|
Revision: 190 http://svn.sourceforge.net/pmplib/?rev=190&view=rev Author: sucknblow Date: 2006-10-18 14:47:05 -0700 (Wed, 18 Oct 2006) Log Message: ----------- Build on latest Debian. Modified Paths: -------------- trunk/pmplib/frontend/easypmp/cui/util.c trunk/pmplib/lib/filepath/Makefile.am trunk/pmplib/lib/filepath/rel2abs.h Modified: trunk/pmplib/frontend/easypmp/cui/util.c =================================================================== --- trunk/pmplib/frontend/easypmp/cui/util.c 2006-08-22 19:05:46 UTC (rev 189) +++ trunk/pmplib/frontend/easypmp/cui/util.c 2006-10-18 21:47:05 UTC (rev 190) @@ -39,11 +39,13 @@ #endif/*HAVE_STRING_H*/ #include <os.h> -#include <systems.h> #include <stdio.h> #include <stdlib.h> #include <ucs2char.h> +#define MAX(a, b) ((a) > (b) ? (a) : (b)) +#define MIN(a, b) ((a) < (b) ? (a) : (b)) + #if CAN_GET_WIN_SIZE #include <sys/ioctl.h> #include <signal.h> @@ -163,9 +165,9 @@ int fd = fileno(fp); if (0 < fd && fd <= POSSIBLE_TTYS && fd_is_tty[fd]) { clear_line(fp); - writing_to_tty = TRUE; + writing_to_tty = 1; } else { - writing_to_tty = FALSE; + writing_to_tty = 0; } unsigned int length = ucs2len(line); Modified: trunk/pmplib/lib/filepath/Makefile.am =================================================================== --- trunk/pmplib/lib/filepath/Makefile.am 2006-08-22 19:05:46 UTC (rev 189) +++ trunk/pmplib/lib/filepath/Makefile.am 2006-10-18 21:47:05 UTC (rev 190) @@ -5,6 +5,7 @@ libpmpfilepath_la_SOURCES = \ ../../include/filepath.h \ filepath_posix.c \ + rel2abs.h \ rel2abs.c libpmpfilepath_la_LDFLAGS = \ Modified: trunk/pmplib/lib/filepath/rel2abs.h =================================================================== --- trunk/pmplib/lib/filepath/rel2abs.h 2006-08-22 19:05:46 UTC (rev 189) +++ trunk/pmplib/lib/filepath/rel2abs.h 2006-10-18 21:47:05 UTC (rev 190) @@ -25,12 +25,14 @@ #ifndef __REL2ABS_H__ #define __REL2ABS_H__ +#include <ucs2char.h> + /** * \addtogroup filepath * @{ */ -ucs2char_t *rel2abs(const ucs2char_t *path, +ucs2char_t* rel2abs(const ucs2char_t *path, const ucs2char_t *base, ucs2char_t *ucs2char_t, size_t size); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |