1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Update to 0.3.7.2

PR:		86677
Submitted by:	KATO Tsuguru <tkato432@yahoo.com> (update to 0.3.7.1)
This commit is contained in:
Tilman Keskinoz 2005-09-28 16:38:30 +00:00
parent 073d5a5978
commit 3d5534a2ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143712
4 changed files with 4 additions and 85 deletions

View File

@ -7,7 +7,7 @@
#
PORTNAME= lfhex
PORTVERSION= 0.3.7
PORTVERSION= 0.3.7.2
CATEGORIES= editors
MASTER_SITES= http://home.earthlink.net/~eyekode/data/
@ -26,6 +26,7 @@ MAKE_ARGS= CXXFLAGS="${CXXFLAGS}" \
EXEC_PREFIX="${PREFIX}/bin" \
IFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
LFLAGS="${QTCFGLIBS} -lqt-mt ${PTHREAD_LIBS}" \
INSTALL="${INSTALL_PROGRAM}" \
VERBOSE=1
PLIST_FILES= bin/lfhex

View File

@ -1,2 +1,2 @@
MD5 (lfhex-0.3.7.tar.gz) = 203051364839fa48b9e030d44e84e648
SIZE (lfhex-0.3.7.tar.gz) = 69947
MD5 (lfhex-0.3.7.2.tar.gz) = 480ec675ce163d6a5e9691d7e625484b
SIZE (lfhex-0.3.7.2.tar.gz) = 70871

View File

@ -1,48 +0,0 @@
$FreeBSD$
--- src/reader.cpp.orig
+++ src/reader.cpp
@@ -12,6 +12,7 @@
#include <stdexcept>
#include <algorithm>
#include <new>
+#include <cassert>
// for stat:
#include <sys/types.h>
@@ -117,7 +118,7 @@
return true;
}
-INLINE bool Reader::is_open() const
+bool Reader::is_open() const
{
return _is_open;
}
@@ -195,14 +196,14 @@
return _offset;
}
-INLINE off_t Reader::tell() const
+off_t Reader::tell() const
{
if(!is_open())
return -1;
return _offset;
}
-INLINE off_t Reader::size() const
+off_t Reader::size() const
{
return _size;
}
@@ -231,7 +232,7 @@
// free the page which is the furthest away from the page we are loading
// this could be trouble if off_t is unsigned!
- if( abs(_firstPage - pageIdx) > abs(_lastPage - pageIdx) )
+ if( abs((long int)(_firstPage - pageIdx)) > abs((long int)(_lastPage - pageIdx)) )
while(!freePage(_firstPage++));
else
while(!freePage(_lastPage--));

View File

@ -1,34 +0,0 @@
$FreeBSD$
--- src/reader.hpp.orig
+++ src/reader.hpp
@@ -33,12 +33,6 @@
#include "local.h"
-#ifdef DEBUG
-#define INLINE
-#else
-#define INLINE inline
-#endif
-
typedef vector<uchar> ReadBuffer;
#ifdef __GNUC__
@@ -54,12 +48,12 @@
bool open(const string& filename);
bool close();
bool eof();
- INLINE bool is_open() const;
+ bool is_open() const;
size_t read( ReadBuffer& v, size_t numBytes );
off_t seek( off_t offset );
- INLINE off_t tell() const; // returns the current offset or -1 if !open
- INLINE off_t size() const;
+ off_t tell() const; // returns the current offset or -1 if !open
+ off_t size() const;
const char* lastError() const;
const char* filename() const;