From f4001e4a495e967d35c8e0b8e887e584a2015ce3 Mon Sep 17 00:00:00 2001 From: "R. Imura" Date: Sat, 12 Feb 2000 19:17:21 +0000 Subject: Fix new compiler error in -current. Submitted by: Alexander Langer All no response from: maintainer --- multimedia/mpegedit/Makefile | 2 +- multimedia/mpegedit/files/patch-ac | 47 +++++++++++++++++++++++++++ multimedia/mpegedit/files/patch-ad | 47 +++++++++++++++++++++++++++ multimedia/mpegedit/files/patch-ae | 29 +++++++++++++++++ multimedia/mpegedit/files/patch-af | 31 ++++++++++++++++++ multimedia/mpegedit/files/patch-ag | 47 +++++++++++++++++++++++++++ multimedia/mpegedit/files/patch-ah | 47 +++++++++++++++++++++++++++ multimedia/mpegedit/files/patch-ai | 65 ++++++++++++++++++++++++++++++++++++++ 8 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 multimedia/mpegedit/files/patch-ac create mode 100644 multimedia/mpegedit/files/patch-ad create mode 100644 multimedia/mpegedit/files/patch-ae create mode 100644 multimedia/mpegedit/files/patch-af create mode 100644 multimedia/mpegedit/files/patch-ag create mode 100644 multimedia/mpegedit/files/patch-ah create mode 100644 multimedia/mpegedit/files/patch-ai (limited to 'multimedia') diff --git a/multimedia/mpegedit/Makefile b/multimedia/mpegedit/Makefile index a3c177949b68..59cb659f4071 100644 --- a/multimedia/mpegedit/Makefile +++ b/multimedia/mpegedit/Makefile @@ -16,7 +16,7 @@ MAINTAINER= erich@FreeBSD.org BUILD_DEPENDS= ${X11BASE}/include/pbmplus.h:${PORTSDIR}/graphics/netpbm .include -.if ${OSVERSION} > 400002 +.if ${OSVERSION} > 400002 && ${OSVERSION} < 400012 BROKEN= won\'t build with egcs compiler .endif diff --git a/multimedia/mpegedit/files/patch-ac b/multimedia/mpegedit/files/patch-ac new file mode 100644 index 000000000000..231ee33b70e4 --- /dev/null +++ b/multimedia/mpegedit/files/patch-ac @@ -0,0 +1,47 @@ +--- editor/2x2_window.C.orig Mon May 8 16:08:35 1995 ++++ editor/2x2_window.C Thu Feb 3 21:24:19 2000 +@@ -25,6 +25,8 @@ + #include + #include + ++extern "C" int XShmGetEventBase(Display *); ++ + DblWindow::DblWindow(UI_Globals *parent, world_c x, world_c y, + unsigned int height, unsigned int width, void (*cb)(void) ) + : YUV_Window(parent,x,y,height*2,width*2,this, ButtonPressMask | +@@ -139,7 +141,7 @@ + + ximage = XCreateImage(DispPointer(),None,8,ZPixmap,0,&dummy,width*2, + height*2,8,0); +- ximage->data = new byte[ximage->bytes_per_line*height*2]; ++ ximage->data = (char *) new byte[ximage->bytes_per_line*height*2]; + assert(ximage->data!=NULL); + + #ifdef SH_MEM +@@ -160,7 +162,7 @@ + for(int j = 0; j < ncolors; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (long unsigned int *) &tmp_pixel, 1, 0); + } + + #ifdef SH_MEM +@@ -259,7 +261,7 @@ + for(int j = 0; j < i; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (long unsigned int *) &tmp_pixel, 1, 0); + } + cerr << "Unable to allocate the colours required to make the\n" + << "colour window. Please re-run with the option -private cols\n"; +@@ -363,7 +365,7 @@ + { + assert(Frame.width()==ximage->width/2); + assert(Frame.height()==ximage->height/2); +- DitherImage(Frame.lum_ptr(),Frame.Cr_ptr(),Frame.Cb_ptr(),ximage->data, ++ DitherImage(Frame.lum_ptr(),Frame.Cr_ptr(),Frame.Cb_ptr(),(unsigned char *)ximage->data, + Frame.width(),Frame.height()); + if(nicely) + { diff --git a/multimedia/mpegedit/files/patch-ad b/multimedia/mpegedit/files/patch-ad new file mode 100644 index 000000000000..083a71b4700e --- /dev/null +++ b/multimedia/mpegedit/files/patch-ad @@ -0,0 +1,47 @@ +--- editor/mono_window.C.orig Sat May 20 17:47:32 1995 ++++ editor/mono_window.C Thu Feb 3 21:27:07 2000 +@@ -24,6 +24,8 @@ + #include + #include + ++extern "C" int XShmGetEventBase(Display *); ++ + MonoWindow::MonoWindow(UI_Globals *parent,world_c x,world_c y, + unsigned int height,unsigned int width, + void (*cb)(void) ) +@@ -137,7 +139,7 @@ + + ximage=XCreateImage(DispPointer(),None,8,ZPixmap,0,&dummy, + width,height,8,0); +- ximage->data = new byte[ximage->bytes_per_line*height]; ++ ximage->data = (char *) new byte[ximage->bytes_per_line*height]; + assert(ximage->data!=NULL); + #ifdef SH_MEM + } +@@ -154,7 +156,7 @@ + for(int j = 0; j < GRAY_RANGE; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int *) &tmp_pixel, 1, 0); + } + XFreeGC(DispPointer(),gc); + +@@ -222,7 +224,7 @@ + for(int j = 0; j < i; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int *) &tmp_pixel, 1, 0); + } + cerr << "Unable to allocate the colours required to make the\n" + << "monochrome window. Please re-run with the option " +@@ -254,7 +256,7 @@ + { + assert(Frame.width()==ximage->width); + assert(Frame.height()==ximage->height); +- DitherImage(Frame.lum_ptr(),ximage->data,ximage->width*ximage->height); ++ DitherImage(Frame.lum_ptr(),(unsigned char *)ximage->data,ximage->width*ximage->height); + if(nicely) + { + XEvent Event; diff --git a/multimedia/mpegedit/files/patch-ae b/multimedia/mpegedit/files/patch-ae new file mode 100644 index 000000000000..0d0c423b6547 --- /dev/null +++ b/multimedia/mpegedit/files/patch-ae @@ -0,0 +1,29 @@ +--- editor/bw_window.C.orig Mon May 8 16:15:00 1995 ++++ editor/bw_window.C Thu Feb 3 21:29:23 2000 +@@ -24,6 +24,8 @@ + #include + #include + ++extern "C" int XShmGetEventBase(Display *); ++ + BwWindow::BwWindow(UI_Globals *parent,world_c x,world_c y,unsigned int height, + unsigned int width, void (*cb)(void) ) + : YUV_Window(parent,x,y,height,width,this, ButtonPressMask | +@@ -143,7 +145,7 @@ + height,8,0); + ximage->byte_order = MSBFirst; + ximage->bitmap_bit_order = MSBFirst; +- ximage->data = new byte[ximage->bytes_per_line*height]; ++ ximage->data = (char *) new byte[ximage->bytes_per_line*height]; + assert(ximage->data!=NULL); + #ifdef SH_MEM + } +@@ -213,7 +215,7 @@ + { + assert(Frame.width()==ximage->width); + assert(Frame.height()==ximage->height); +- DitherImage(Frame.lum_ptr(),ximage->data,ximage->height,ximage->width); ++ DitherImage(Frame.lum_ptr(),(unsigned char*)ximage->data,ximage->height,ximage->width); + if(nicely) + { + XEvent Event; diff --git a/multimedia/mpegedit/files/patch-af b/multimedia/mpegedit/files/patch-af new file mode 100644 index 000000000000..ce70f30e1a7a --- /dev/null +++ b/multimedia/mpegedit/files/patch-af @@ -0,0 +1,31 @@ +--- MpegCodec/mpeg.H.orig Sat May 20 19:11:43 1995 ++++ MpegCodec/mpeg.H Thu Feb 3 21:31:00 2000 +@@ -59,7 +59,7 @@ + status Write(const frame &); // Overwrites the current frame + status Undo(void); // Undoes the last write to current frame + status Delete(void); // Deletes current frame +- status Insert(int no_of_frames,const frame **); ++ status Insert(int no_of_frames, frame **); + // Inserts a number of frames + unsigned int Height(void) const; // Returns the height of the frames + unsigned int Width(void) const; // Returns the width of the frames +@@ -128,14 +128,14 @@ + long file_length; // The length of the (virtual) file, in frames + long cache_size; // Number of frames that cache will fit + static const int fps_table[16]; //The table of valid frames per second values +- const int min_frame_type=1; // Min number for a valid frame type +- const int max_frame_type=4; // Max number for a valid frame type ++ static const int min_frame_type=1; // Min number for a valid frame type ++ static const int max_frame_type=4; // Max number for a valid frame type + static const frame_type FrameTypes[max_frame_type+1]; + // The list of valid frame types +- const long gopSize=10; // The number of frames between GOP headers +- const int pattern_size=8; // The size of the IBBPBBI pattern ++ static const long gopSize=10; // The number of frames between GOP headers ++ static const int pattern_size=8; // The size of the IBBPBBI pattern + static const char pattern[pattern_size]; // The IBBPBBI pattern +- const int mpegcache_size=12; // The size of the mpeg frame cache ++ static const int mpegcache_size=12; // The size of the mpeg frame cache + mpg_cache MpegCache[mpegcache_size]; // The mpeg frame cache + int cache_curpos; // Current position in the cache + void (*callback)(byte *,abs_addr); // Stores the callback function diff --git a/multimedia/mpegedit/files/patch-ag b/multimedia/mpegedit/files/patch-ag new file mode 100644 index 000000000000..dc90768c2832 --- /dev/null +++ b/multimedia/mpegedit/files/patch-ag @@ -0,0 +1,47 @@ +--- editor/tiny_window.C.orig Mon May 8 16:09:07 1995 ++++ editor/tiny_window.C Thu Feb 3 21:33:57 2000 +@@ -24,6 +24,8 @@ + #include + #include + ++extern "C" int XShmGetEventBase(Display *); ++ + TinyWindow::TinyWindow(UI_Globals *parent,world_c x,world_c y, + unsigned int height,unsigned int width, + void (*cb)(void) ) +@@ -137,7 +139,7 @@ + + ximage=XCreateImage(DispPointer(),None,8,ZPixmap,0,&dummy, + width/2,height/2,8,0); +- ximage->data = new byte[ximage->bytes_per_line*height/2]; ++ ximage->data = (char *) new byte[ximage->bytes_per_line*height/2]; + assert(ximage->data!=NULL); + #ifdef SH_MEM + } +@@ -154,7 +156,7 @@ + for(int j = 0; j < GRAY_RANGE; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int *) &tmp_pixel, 1, 0); + } + XFreeGC(DispPointer(),gc); + +@@ -222,7 +224,7 @@ + for(int j = 0; j < i; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int*) &tmp_pixel, 1, 0); + } + cerr << "Unable to allocate the colours required to make the\n" + << "monochrome window. Please re-run with the option " +@@ -254,7 +256,7 @@ + { + assert(Frame.width()/2==ximage->width); + assert(Frame.height()/2==ximage->height); +- DitherImage(Frame.lum_ptr(),ximage->data,ximage->height,ximage->width); ++ DitherImage(Frame.lum_ptr(),(unsigned char *)ximage->data,ximage->height,ximage->width); + if(nicely) + { + XEvent Event; diff --git a/multimedia/mpegedit/files/patch-ah b/multimedia/mpegedit/files/patch-ah new file mode 100644 index 000000000000..4e523734127b --- /dev/null +++ b/multimedia/mpegedit/files/patch-ah @@ -0,0 +1,47 @@ +--- editor/colour_window.C.orig Tue May 9 21:41:30 1995 ++++ editor/colour_window.C Thu Feb 3 21:35:30 2000 +@@ -24,6 +24,8 @@ + #include + #include + ++extern "C" int XShmGetEventBase(Display *); ++ + ColourWindow::ColourWindow(UI_Globals *parent,world_c x,world_c y, + unsigned int height,unsigned int width, + void (*cb)(void) ) +@@ -137,7 +139,7 @@ + + ximage=XCreateImage(DispPointer(),None,8,ZPixmap,0,&dummy, + width,height,8,0); +- ximage->data = new byte[ximage->bytes_per_line*height]; ++ ximage->data = (char *) new byte[ximage->bytes_per_line*height]; + assert(ximage->data!=NULL); + #ifdef SH_MEM + } +@@ -158,7 +160,7 @@ + for(j = 0; j < ncolors; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int *) &tmp_pixel, 1, 0); + } + + XFreeGC(DispPointer(),gc); +@@ -253,7 +255,7 @@ + for(int j = 0; j < i; j ++) + { + tmp_pixel = col_array[j]; +- XFreeColors(DispPointer(), Colourmap, &tmp_pixel, 1, 0); ++ XFreeColors(DispPointer(), Colourmap, (unsigned long int *) &tmp_pixel, 1, 0); + } + cerr << "Unable to allocate the colours required to make the\n" + << "colour window. Please re-run with the option -private cols\n"; +@@ -359,7 +361,7 @@ + { + assert(Frame.width()==ximage->width); + assert(Frame.height()==ximage->height); +- DitherImage(Frame.lum_ptr(),Frame.Cr_ptr(),Frame.Cb_ptr(),ximage->data, ++ DitherImage(Frame.lum_ptr(),Frame.Cr_ptr(),Frame.Cb_ptr(),(unsigned char *)ximage->data, + Frame.width(),Frame.height()); + if(nicely) + { diff --git a/multimedia/mpegedit/files/patch-ai b/multimedia/mpegedit/files/patch-ai new file mode 100644 index 000000000000..3b0835efc17d --- /dev/null +++ b/multimedia/mpegedit/files/patch-ai @@ -0,0 +1,65 @@ +--- ui/main_win.C.orig Mon May 8 16:16:44 1995 ++++ ui/main_win.C Thu Feb 3 21:39:37 2000 +@@ -137,8 +137,8 @@ + // Call XWMGeometry. It will decide the actual geometry of the window + + int bitmask = XWMGeometry(DispPointer(),DefaultScreen(DispPointer()), geom, +- def_geom,BorderWidth,&xsh,&main_x,&main_y, +- &main_width,&main_height,&main_gravity); ++ def_geom,BorderWidth,&xsh,(int *) &main_x,(int *) &main_y, ++ (int *) &main_width, (int *) &main_height,&main_gravity); + + // bitmask will hold the values that need to be changed to reflect the + // suggestions made by XWMGeometry. This will be done by the window +@@ -167,7 +167,7 @@ + + // Have a little chat with the window manager.... + +- win_name.value = name; ++ win_name.value = (unsigned char *) name; + win_name.encoding = XA_STRING; + win_name.format = 8; + win_name.nitems = strlen(name); +@@ -276,6 +276,7 @@ + + MainWindow::status MainWindow::event_handler(XEvent *Event) + { ++#if 0 + switch(Event->type) + { + case Expose: +@@ -309,6 +310,7 @@ + default: + break; + } ++#endif + return(okay); + } + +@@ -348,7 +350,7 @@ + Window root; + unsigned int x,y,width,height; + unsigned int bd_width, depth; +- XGetGeometry(DispPointer(),WinId(),&root,&x,&y,&width,&height, ++ XGetGeometry(DispPointer(),WinId(),&root,(int *) &x,(int *) &y,&width,&height, + &bd_width,&depth); + return depth; + } +@@ -359,7 +361,7 @@ + Window root2; + unsigned int x,y,width,height; + unsigned int bd_width, depth; +- XGetGeometry(DispPointer(),root,&root2,&x,&y,&width,&height, ++ XGetGeometry(DispPointer(),root,&root2,(int *) &x,(int *) &y,&width,&height, + &bd_width,&depth); + return height; + } +@@ -370,7 +372,7 @@ + Window root2; + unsigned int x,y,width,height; + unsigned int bd_width, depth; +- XGetGeometry(DispPointer(),root,&root2,&x,&y,&width,&height, ++ XGetGeometry(DispPointer(),root,&root2,(int *) &x, (int *) &y,&width,&height, + &bd_width,&depth); + return width; + } -- cgit v1.2.3