|
From: Andre R. <and...@us...> - 2004-10-29 21:15:02
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20668 Modified Files: pictverbs.c pict.c Log Message: Fixed GCC compiler warnings. Index: pictverbs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/pictverbs.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pictverbs.c 23 Oct 2004 22:48:40 -0000 1.2 --- pictverbs.c 29 Oct 2004 21:14:52 -0000 1.3 *************** *** 636,639 **** --- 636,641 ---- + #if 0 + static boolean getpictparam (hdltreenode hfirst, short pnum, hdlpictvariable *hv) { *************** *** 657,660 **** --- 659,664 ---- } /*getpictparam*/ + #endif + static boolean pictverbscheduleupdate (hdltreenode hparam1, tyvaluerecord *v) { *************** *** 675,678 **** --- 679,684 ---- + #if 0 + static boolean pictverbbitmapupdate (hdltreenode hparam1, tyvaluerecord *v) { *************** *** 690,693 **** --- 696,701 ---- return (true); } /*pictverbbitmapupdate*/ + + #endif *************** *** 708,717 **** } /*pictverbevaluator*/ ! /* static boolean pictverbgetbounds (hdltreenode hparam1, tyvaluerecord *v) { Rect r; ! if (!langcheckparamcount (hparam1, 0)) /*shouldn't have any parameters%/ return (false); --- 716,727 ---- } /*pictverbevaluator*/ ! ! #if 0 ! static boolean pictverbgetbounds (hdltreenode hparam1, tyvaluerecord *v) { Rect r; ! if (!langcheckparamcount (hparam1, 0)) /*shouldn't have any parameters*/ return (false); *************** *** 722,725 **** --- 732,737 ---- } /*pictverbgetbounds*/ + #endif + static boolean pictverbgetpicture (hdltreenode hparam1, tyvaluerecord *v) { *************** *** 973,977 **** return (false); ! return (shellsetscrap (hpicture, pictscraptype, disposehandle, nil)); } /*pictcopy*/ --- 985,989 ---- return (false); ! return (shellsetscrap (hpicture, pictscraptype, (shelldisposescrapcallback) &disposehandle, nil)); } /*pictcopy*/ *************** *** 1026,1030 **** ! static boolean pictgetvariable (hdlexternalvariable *hvariable) { if (pictdata == nil) --- 1038,1044 ---- ! static boolean pictgetvariable (void *refcon) { ! ! hdlexternalvariable *hvariable = (hdlexternalvariable *) refcon; if (pictdata == nil) Index: pict.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/pict.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pict.c 23 Oct 2004 22:48:28 -0000 1.2 --- pict.c 29 Oct 2004 21:14:52 -0000 1.3 *************** *** 332,337 **** return (true); } /*pictdisposerecord*/ ! ! /* static boolean pictdebug (PicHandle macpicture) { --- 332,339 ---- return (true); } /*pictdisposerecord*/ ! ! ! #if 0 ! static boolean pictdebug (PicHandle macpicture) { *************** *** 354,358 **** - /* boolean pictreadfile (bigstring fname, PicHandle *macpicture) { --- 356,359 ---- *************** *** 367,371 **** ctbytes = filegetsize (fnum) - pictstartrealdata; ! if (ctbytes <= 0) /*error, this can't be a PICT file%/ goto error; --- 368,372 ---- ctbytes = filegetsize (fnum) - pictstartrealdata; ! if (ctbytes <= 0) /*error, this can't be a PICT file*/ goto error; *************** *** 376,380 **** goto error; ! hp = *macpicture; /*copy into register%/ lockhandle ((Handle) hp); --- 377,381 ---- goto error; ! hp = *macpicture; /*copy into register*/ lockhandle ((Handle) hp); *************** *** 389,393 **** closefile (fnum); ! /*pictdebug (*macpicture);%/ return (true); --- 390,394 ---- closefile (fnum); ! /*pictdebug (*macpicture);*/ return (true); *************** *** 404,407 **** --- 405,410 ---- } /*pictreadfile*/ + #endif + void pictresetscrollbars (void) { |