View | Details | Raw Unified | Return to bug 86677
Collapse All | Expand All

(-)editors/lfhex/Makefile (-1 / +2 lines)
Lines 7-13 Link Here
7
#
7
#
8
8
9
PORTNAME=	lfhex
9
PORTNAME=	lfhex
10
PORTVERSION=	0.3.7
10
PORTVERSION=	0.3.7.1
11
CATEGORIES=	editors
11
CATEGORIES=	editors
12
MASTER_SITES=	http://home.earthlink.net/~eyekode/data/
12
MASTER_SITES=	http://home.earthlink.net/~eyekode/data/
13
13
Lines 26-31 Link Here
26
		EXEC_PREFIX="${PREFIX}/bin" \
26
		EXEC_PREFIX="${PREFIX}/bin" \
27
		IFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
27
		IFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
28
		LFLAGS="${QTCFGLIBS} -lqt-mt ${PTHREAD_LIBS}" \
28
		LFLAGS="${QTCFGLIBS} -lqt-mt ${PTHREAD_LIBS}" \
29
		INSTALL="${INSTALL_PROGRAM}" \
29
		VERBOSE=1
30
		VERBOSE=1
30
31
31
PLIST_FILES=	bin/lfhex
32
PLIST_FILES=	bin/lfhex
(-)editors/lfhex/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (lfhex-0.3.7.tar.gz) = 203051364839fa48b9e030d44e84e648
1
MD5 (lfhex-0.3.7.1.tar.gz) = b44afea9acfa10699edf38fa0e079da4
2
SIZE (lfhex-0.3.7.tar.gz) = 69947
2
SIZE (lfhex-0.3.7.1.tar.gz) = 70863
(-)editors/lfhex/files/patch-src::reader.cpp (-48 lines)
Lines 1-48 Link Here
1
2
$FreeBSD: ports/editors/lfhex/files/patch-src::reader.cpp,v 1.5 2005/01/19 12:47:34 krion Exp $
3
4
--- src/reader.cpp.orig
5
+++ src/reader.cpp
6
@@ -12,6 +12,7 @@
7
 #include <stdexcept>
8
 #include <algorithm>
9
 #include <new>
10
+#include <cassert>
11
 
12
 // for stat:
13
 #include <sys/types.h>
14
@@ -117,7 +118,7 @@
15
   return true;
16
 }
17
 
18
-INLINE bool Reader::is_open() const
19
+bool Reader::is_open() const
20
 {
21
   return _is_open;
22
 }
23
@@ -195,14 +196,14 @@
24
   return _offset;
25
 }
26
 
27
-INLINE off_t Reader::tell() const
28
+off_t Reader::tell() const
29
 {
30
   if(!is_open())
31
     return -1;
32
   return _offset;
33
 }
34
 
35
-INLINE off_t Reader::size() const
36
+off_t Reader::size() const
37
 {
38
   return _size;
39
 }
40
@@ -231,7 +232,7 @@
41
     // free the page which is the furthest away from the page we are loading
42
 
43
     // this could be trouble if off_t is unsigned!
44
-    if( abs(_firstPage - pageIdx) > abs(_lastPage - pageIdx) ) 
45
+    if( abs((long int)(_firstPage - pageIdx)) > abs((long int)(_lastPage - pageIdx)) ) 
46
       while(!freePage(_firstPage++));
47
     else
48
       while(!freePage(_lastPage--));
(-)editors/lfhex/files/patch-src::reader.hpp (-34 lines)
Lines 1-34 Link Here
1
2
$FreeBSD: ports/editors/lfhex/files/patch-src::reader.hpp,v 1.2 2005/01/19 12:47:34 krion Exp $
3
4
--- src/reader.hpp.orig
5
+++ src/reader.hpp
6
@@ -33,12 +33,6 @@
7
 
8
 #include "local.h"
9
 
10
-#ifdef DEBUG
11
-#define INLINE
12
-#else
13
-#define INLINE inline
14
-#endif
15
-
16
 typedef vector<uchar> ReadBuffer;
17
 
18
 #ifdef __GNUC__
19
@@ -54,12 +48,12 @@
20
   bool open(const string& filename);
21
   bool close();
22
   bool eof();
23
-  INLINE bool is_open() const;
24
+  bool is_open() const;
25
   
26
   size_t read( ReadBuffer& v, size_t numBytes );
27
   off_t  seek( off_t offset );
28
-  INLINE off_t tell() const; // returns the current offset or -1 if !open
29
-  INLINE off_t size() const;
30
+  off_t tell() const; // returns the current offset or -1 if !open
31
+  off_t size() const;
32
   const char* lastError() const;
33
   const char* filename() const;
34

Return to bug 86677