1 /***************************************************************************
3 TheBar.mcc - Next Generation Toolbar MUI Custom Class
4 Copyright (C) 2003-2005 Alfonso Ranieri
5 Copyright (C) 2005-2013 by TheBar.mcc Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 TheBar class Support Site: http://www.sf.net/projects/thebar
21 ***************************************************************************/
25 /***********************************************************************/
34 #define BRCUnpackError 1
36 /***********************************************************************/
39 BRCUnpack(APTR pSource
, APTR pDest
, LONG srcBytes0
, LONG dstBytes0
)
41 signed char *source
= pSource
;
42 signed char *dest
= pDest
;
43 LONG srcBytes
= srcBytes0
;
44 LONG dstBytes
= dstBytes0
;
45 int result
= BRCUnpackOK
;
55 result
= BRCUnpackError
;
67 if(srcBytes
< 0 || dstBytes
< 0)
69 result
= BRCUnpackError
;
87 if(srcBytes
< 0 || dstBytes
< 0)
89 result
= BRCUnpackError
;
107 /***********************************************************************/