mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix build on -current with gcc 3.1.
Submitted by: bento
This commit is contained in:
parent
5d756974b1
commit
875d5c53d7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60824
31
editors/hte/files/patch-analyser::analy.cc
Normal file
31
editors/hte/files/patch-analyser::analy.cc
Normal file
@ -0,0 +1,31 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- analyser/analy.cc.orig Fri Jun 7 21:53:04 2002
|
||||
+++ analyser/analy.cc Fri Jun 7 21:53:40 2002
|
||||
@@ -415,7 +415,7 @@
|
||||
/*
|
||||
* addaddrlabel will never overwrite an existing label (like addlabel)
|
||||
*/
|
||||
-bool analyser::add_addr_label(ADDR Addr, char *Prefix, labeltype type, taddr *infunc=NULL)
|
||||
+bool analyser::add_addr_label(ADDR Addr, char *Prefix, labeltype type, taddr *infunc)
|
||||
{
|
||||
if (!valid_addr(Addr, scvalid)) return false;
|
||||
|
||||
@@ -461,7 +461,7 @@
|
||||
* fail if label exist on another address
|
||||
*
|
||||
*/
|
||||
-bool analyser::add_label(ADDR Addr, char *label, labeltype type, taddr *infunc=NULL)
|
||||
+bool analyser::add_label(ADDR Addr, char *label, labeltype type, taddr *infunc)
|
||||
{
|
||||
if (!valid_addr(Addr, scvalid)) return false;
|
||||
|
||||
@@ -545,7 +545,7 @@
|
||||
/*
|
||||
*
|
||||
*/
|
||||
-bool analyser::assign_label(ADDR Addr, char *label, labeltype type, taddr *infunc=NULL)
|
||||
+bool analyser::assign_label(ADDR Addr, char *label, labeltype type, taddr *infunc)
|
||||
{
|
||||
if (!valid_addr(Addr, scvalid)) return false;
|
||||
|
13
editors/hte/files/patch-blockop.cc
Normal file
13
editors/hte/files/patch-blockop.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBDS$
|
||||
|
||||
--- blockop.cc.orig Fri Jun 7 21:56:30 2002
|
||||
+++ blockop.cc Fri Jun 7 21:56:36 2002
|
||||
@@ -41,7 +41,7 @@
|
||||
* CLASS ht_blockop_dialog
|
||||
*/
|
||||
|
||||
-void ht_blockop_dialog::init(bounds *b, FILEOFS pstart, FILEOFS pend, ht_list *history=0)
|
||||
+void ht_blockop_dialog::init(bounds *b, FILEOFS pstart, FILEOFS pend, ht_list *history)
|
||||
{
|
||||
ht_dialog::init(b, "operate on block", FS_TITLE | FS_KILLER | FS_MOVE);
|
||||
bounds c;
|
13
editors/hte/files/patch-cstream.cc
Normal file
13
editors/hte/files/patch-cstream.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- cstream.cc.orig Fri Jun 7 21:58:54 2002
|
||||
+++ cstream.cc Fri Jun 7 21:59:01 2002
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
-void ht_compressed_stream::init(ht_stream *stream, bool own_stream, UINT granularity=COMPRESSED_STREAM_DEFAULT_GRANULARITY)
|
||||
+void ht_compressed_stream::init(ht_stream *stream, bool own_stream, UINT granularity)
|
||||
{
|
||||
ht_layer_stream::init(stream, own_stream);
|
||||
if ((get_access_mode() & (FAM_READ | FAM_WRITE)) == (FAM_READ | FAM_WRITE)) {
|
49
editors/hte/files/patch-htdialog.cc
Normal file
49
editors/hte/files/patch-htdialog.cc
Normal file
@ -0,0 +1,49 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- htdialog.cc.orig Fri Jun 7 22:00:40 2002
|
||||
+++ htdialog.cc Fri Jun 7 22:01:25 2002
|
||||
@@ -569,7 +569,7 @@
|
||||
* CLASS ht_inputfield
|
||||
*/
|
||||
|
||||
-void ht_inputfield::init(bounds *b, int _maxtextlen, ht_list *_history=0)
|
||||
+void ht_inputfield::init(bounds *b, int _maxtextlen, ht_list *_history)
|
||||
{
|
||||
ht_view::init(b, VO_SELECTABLE, "some inputfield");
|
||||
VIEW_DEBUG_NAME("ht_inputfield");
|
||||
@@ -727,7 +727,7 @@
|
||||
* CLASS ht_strinputfield
|
||||
*/
|
||||
|
||||
-void ht_strinputfield::init(bounds *b, int maxstrlen, ht_list *history=0)
|
||||
+void ht_strinputfield::init(bounds *b, int maxstrlen, ht_list *history)
|
||||
{
|
||||
ht_inputfield::init(b, maxstrlen, history);
|
||||
VIEW_DEBUG_NAME("ht_strinputfield");
|
||||
@@ -1319,7 +1319,7 @@
|
||||
* ht_listbox
|
||||
*/
|
||||
|
||||
-void ht_listbox::init(bounds *b, UINT Listboxcaps=LISTBOX_QUICKFIND)
|
||||
+void ht_listbox::init(bounds *b, UINT Listboxcaps)
|
||||
{
|
||||
ht_view::init(b, VO_SELECTABLE | VO_OWNBUFFER | VO_RESIZE, 0);
|
||||
|
||||
@@ -1784,7 +1784,7 @@
|
||||
* ht_text_listbox
|
||||
*/
|
||||
|
||||
-void ht_text_listbox::init(bounds *b, int Cols, int Keycol, UINT Listboxcaps=LISTBOX_QUICKFIND)
|
||||
+void ht_text_listbox::init(bounds *b, int Cols, int Keycol, UINT Listboxcaps)
|
||||
{
|
||||
cols = Cols;
|
||||
keycol = Keycol;
|
||||
@@ -2046,7 +2046,7 @@
|
||||
* CLASS ht_itext_listbox
|
||||
*/
|
||||
|
||||
-void ht_itext_listbox::init(bounds *b, int Cols=1, int Keycol=0)
|
||||
+void ht_itext_listbox::init(bounds *b, int Cols, int Keycol)
|
||||
{
|
||||
ht_text_listbox::init(b, Cols, Keycol);
|
||||
}
|
13
editors/hte/files/patch-htformat.cc
Normal file
13
editors/hte/files/patch-htformat.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- htformat.cc.orig Fri Jun 7 22:03:32 2002
|
||||
+++ htformat.cc Fri Jun 7 22:03:41 2002
|
||||
@@ -4234,7 +4234,7 @@
|
||||
* CLASS ht_mask
|
||||
*/
|
||||
|
||||
-void ht_mask_sub::init(ht_streamfile *f, UINT u, fmt_vaddress ba=0)
|
||||
+void ht_mask_sub::init(ht_streamfile *f, UINT u, fmt_vaddress ba)
|
||||
{
|
||||
ht_sub::init(f);
|
||||
masks = new ht_string_list();
|
22
editors/hte/files/patch-htobj.cc
Normal file
22
editors/hte/files/patch-htobj.cc
Normal file
@ -0,0 +1,22 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- htobj.cc.orig Fri Jun 7 22:15:43 2002
|
||||
+++ htobj.cc Fri Jun 7 22:15:56 2002
|
||||
@@ -672,7 +672,7 @@
|
||||
sendmsg(&m);
|
||||
}
|
||||
|
||||
-void ht_view::sendmsg(int msg, int data1=0, int data2=0)
|
||||
+void ht_view::sendmsg(int msg, int data1, int data2)
|
||||
{
|
||||
htmsg m;
|
||||
switch (msg) {
|
||||
@@ -1419,7 +1419,7 @@
|
||||
* CLASS ht_frame
|
||||
*/
|
||||
|
||||
-void ht_frame::init(bounds *b, char *desc, UINT _style, UINT _number=0)
|
||||
+void ht_frame::init(bounds *b, char *desc, UINT _style, UINT _number)
|
||||
{
|
||||
ht_view::init(b, VO_RESIZE, desc);
|
||||
VIEW_DEBUG_NAME("ht_frame");
|
13
editors/hte/files/patch-htpal.cc
Normal file
13
editors/hte/files/patch-htpal.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- htpal.cc.orig Fri Jun 7 22:17:48 2002
|
||||
+++ htpal.cc Fri Jun 7 22:18:26 2002
|
||||
@@ -214,7 +214,7 @@
|
||||
* CLASS palette_entry
|
||||
*/
|
||||
|
||||
-palette_entry::palette_entry(UINT _idx=0, vcp _color=0)
|
||||
+palette_entry::palette_entry(UINT _idx, vcp _color)
|
||||
{
|
||||
idx=_idx;
|
||||
color=_color;
|
13
editors/hte/files/patch-htsearch.cc
Normal file
13
editors/hte/files/patch-htsearch.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- htsearch.cc.orig Fri Jun 7 22:20:50 2002
|
||||
+++ htsearch.cc Fri Jun 7 22:20:58 2002
|
||||
@@ -780,7 +780,7 @@
|
||||
* CLASS ht_expr_search_form
|
||||
*/
|
||||
|
||||
-void ht_expr_search_form::init(bounds *b, int options, ht_list *history=0)
|
||||
+void ht_expr_search_form::init(bounds *b, int options, ht_list *history)
|
||||
{
|
||||
ht_group::init(b, VO_SELECTABLE, NULL);
|
||||
VIEW_DEBUG_NAME("ht_expr_search_form");
|
31
editors/hte/files/patch-httree.cc
Normal file
31
editors/hte/files/patch-httree.cc
Normal file
@ -0,0 +1,31 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- httree.cc.orig Fri Jun 7 22:23:41 2002
|
||||
+++ httree.cc Fri Jun 7 22:24:02 2002
|
||||
@@ -380,7 +380,7 @@
|
||||
ht_treeview::done();
|
||||
}
|
||||
|
||||
-void *ht_static_treeview::add_child(void *node, char *text, ht_data *Data=NULL)
|
||||
+void *ht_static_treeview::add_child(void *node, char *text, ht_data *Data)
|
||||
{
|
||||
if (node) {
|
||||
return add_node(&((static_node *)node)->child, text, Data);
|
||||
@@ -394,7 +394,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-void *ht_static_treeview::add_node(static_node **node, char *text, ht_data *Data=NULL)
|
||||
+void *ht_static_treeview::add_node(static_node **node, char *text, ht_data *Data)
|
||||
{
|
||||
static_node **p = node;
|
||||
static_node *prev = NULL;
|
||||
@@ -413,7 +413,7 @@
|
||||
((static_node *)node)->expanded = expand;
|
||||
}
|
||||
|
||||
-static_node *ht_static_treeview::create_node(char *text, static_node *prev, ht_data *Data=NULL)
|
||||
+static_node *ht_static_treeview::create_node(char *text, static_node *prev, ht_data *Data)
|
||||
{
|
||||
static_node *node = (static_node *)malloc(sizeof(static_node));
|
||||
node->text = ht_strdup(text);
|
13
editors/hte/files/patch-stream.cc
Normal file
13
editors/hte/files/patch-stream.cc
Normal file
@ -0,0 +1,13 @@
|
||||
$FreeBSD$
|
||||
|
||||
--- stream.cc.orig Fri Jun 7 22:30:45 2002
|
||||
+++ stream.cc Fri Jun 7 22:30:52 2002
|
||||
@@ -611,7 +611,7 @@
|
||||
* CLASS ht_memmap_file
|
||||
*/
|
||||
|
||||
-void ht_memmap_file::init(byte *b, UINT s = 0)
|
||||
+void ht_memmap_file::init(byte *b, UINT s)
|
||||
{
|
||||
ht_streamfile::init();
|
||||
buf = b;
|
Loading…
Reference in New Issue
Block a user