FreeBSD Bugzilla – Attachment 45483 Details for
Bug 70114
Update port: editors/hte
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.24 KB, created by
tkato432
on 2004-08-07 13:10:22 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2004-08-07 13:10:22 UTC
Size:
3.24 KB
patch
obsolete
>diff -urN /usr/ports/editors/hte/files/patch-cstream.cc editors/hte/files/patch-cstream.cc >--- /usr/ports/editors/hte/files/patch-cstream.cc Thu Jan 1 09:00:00 1970 >+++ editors/hte/files/patch-cstream.cc Wed Aug 4 18:10:23 2004 >@@ -0,0 +1,35 @@ >+--- cstream.cc.orig Mon Jul 1 02:08:48 2002 >++++ cstream.cc Wed Aug 4 18:09:28 2004 >+@@ -115,12 +115,13 @@ >+ return true; >+ } >+ >+-UINT ht_compressed_stream::read(void *buf, UINT size) >++UINT ht_compressed_stream::read(void *aBuf, UINT size) >+ { >+ UINT ssize = size; >++ byte *buf = (byte *)aBuf; >+ while (size >= bufferpos) { >+ memcpy(buf, buffer+buffersize-bufferpos, bufferpos); >+- ((byte *)buf) += bufferpos; >++ buf += bufferpos; >+ size -= bufferpos; >+ bufferpos = 0; >+ if (size) { >+@@ -134,13 +135,14 @@ >+ return ssize; >+ } >+ >+-UINT ht_compressed_stream::write(const void *buf, UINT size) >++UINT ht_compressed_stream::write(const void *aBuf, UINT size) >+ { >+ UINT ssize = size; >++ const byte *buf = (const byte *)aBuf; >+ while (bufferpos+size >= buffersize) { >+ memcpy(buffer+bufferpos, buf, buffersize-bufferpos); >+ size -= buffersize-bufferpos; >+- ((byte *)buf) += buffersize-bufferpos; >++ buf += buffersize-bufferpos; >+ bufferpos = buffersize; >+ if (size) { >+ if (!flush_compressed()) return ssize - size; >diff -urN /usr/ports/editors/hte/files/patch-htle.cc editors/hte/files/patch-htle.cc >--- /usr/ports/editors/hte/files/patch-htle.cc Thu Jan 1 09:00:00 1970 >+++ editors/hte/files/patch-htle.cc Wed Aug 4 18:15:35 2004 >@@ -0,0 +1,46 @@ >+--- htle.cc.orig Thu Oct 10 03:32:50 2002 >++++ htle.cc Wed Aug 4 18:14:34 2004 >+@@ -475,19 +475,20 @@ >+ return false; >+ } >+ >+-UINT ht_le_page_file::read(void *buf, UINT size) >++UINT ht_le_page_file::read(void *aBuf, UINT size) >+ { >+ FILEOFS mofs; >+ UINT msize; >+ int c = 0; >+ while (size) { >+ UINT s = size; >++ byte *buf = (byte *)aBuf; >+ if (!map_ofs(ofs, &mofs, &msize)) break; >+ if (s>msize) s = msize; >+ streamfile->seek(mofs); >+ s = streamfile->read(buf, s); >+ if (!s) break; >+- ((byte*)buf) += s; >++ buf += s; >+ size -= s; >+ c += s; >+ ofs += s; >+@@ -546,17 +547,18 @@ >+ return ht_layer_streamfile::vcntl(cmd, vargs); >+ } >+ >+-UINT ht_le_page_file::write(const void *buf, UINT size) >++UINT ht_le_page_file::write(const void *aBuf, UINT size) >+ { >+ FILEOFS mofs; >+ UINT msize; >+ int c = 0; >+ while (size) { >+ UINT s = size; >++ const byte *buf = (const byte *)aBuf; >+ if (!map_ofs(ofs, &mofs, &msize)) break; >+ if (s>msize) s = msize; >+ streamfile->seek(mofs); >+- ((byte*)buf) += streamfile->write(buf, s); >++ buf += streamfile->write(buf, s); >+ size -= s; >+ c += s; >+ ofs += s; >diff -urN /usr/ports/editors/hte/files/patch-src::srt_x86.cc editors/hte/files/patch-src::srt_x86.cc >--- /usr/ports/editors/hte/files/patch-src::srt_x86.cc Thu Jan 1 09:00:00 1970 >+++ editors/hte/files/patch-src::srt_x86.cc Wed Aug 4 17:55:10 2004 >@@ -0,0 +1,18 @@ >+--- srt/srt_x86.cc.orig Mon Sep 2 02:05:13 2002 >++++ srt/srt_x86.cc Wed Aug 4 17:53:58 2004 >+@@ -60,13 +60,13 @@ >+ k = &cpu->flags[(idx-8) % X86_FLAGS]; >+ (*k)->done(); >+ delete *k; >+- ((Object*)*k) = o; >++ k = (sym_bool **)o; >+ } else { >+ sym_int **k; >+ k = &cpu->regs[idx & 7]; >+ (*k)->done(); >+ delete *k; >+- ((Object*)*k) = o; >++ k = (sym_int **)o; >+ } >+ } >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70114
: 45483