From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <000901c1cbe4$ccb858e0$6600a8c0@ruis.ru> From: "Evgeniy Kobzev" To: References: <005901c1cb25$ca5e7120$6600a8c0@ruis.ru> <3C905926.7080303@alt-linux.org> <3C905FDB.3080509@altlinux.ru> <000f01c1cb3d$0f8802e0$6600a8c0@ruis.ru> <20020314101753.GC30641@mhz.mikhail.zabaluev.name> <003801c1cb45$09ff6900$6600a8c0@ruis.ru> <20020314110832.GB32530@mhz.mikhail.zabaluev.name> <3C90AEE9.356C4D97@altlinux.ru> <3C90AD8D.8040606@diamonds.ru> <20020314221458.GC2019@mhz.mikhail.zabaluev.name> Subject: Re: [sisyphus] Re: FireBird 1.0 от AltLinux будет? Date: Fri, 15 Mar 2002 08:46:48 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: sisyphus-admin@altlinux.ru Errors-To: sisyphus-admin@altlinux.ru X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: sisyphus@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Archived-At: List-Archive: ----- Original Message ----- From: "Mikhail Zabaluev" To: Sent: Friday, March 15, 2002 1:14 AM Subject: [sisyphus] Re: FireBird 1.0 от AltLinux будет? > Хм, сомнительный код... Не означаёт ли это, что ошибки загнаны под > ковёр? Можно взглянуть на код, на котором выдаются ошибки? Можно. Функция в которой ругается. Это 47 строка, и далее до 110. ===================================================================== SSHORT MISC_build_parameters_block ( UCHAR *buffer, ...) { /************************************** * * M I S C _ b u i l d _ p a r a m e t e r s _ b l o c k * ************************************** * * Functional description * Stuffs the passed buffer with various argument information coming via * va_list. An argument type of 0 signifies the end of argument list. * Returns the total number of bytes put (stuffed) in the passed buffer. * **************************************/ va_list ptr; UCHAR *p, *q; SCHAR arg_type, ch; USHORT sh; SLONG l; p = buffer; VA_START (ptr, buffer); /* using the argument types in the parameter list, pop the arguments off the call stack and put them into the passed buffer */ while (arg_type = va_arg (ptr, SCHAR)) // <--- misc.c:76: `SCHAR' is promoted to `int' when passed through `...' switch (arg_type) { case dtype_byte: /* byte */ ch = va_arg (ptr, SCHAR); // <--- misc.c:80: `SCHAR' is promoted to `int' when passed through `...' STUFF (p, ch); break; case dtype_short: /* short value */ sh = va_arg (ptr, USHORT); // <--- misc.c:85: `USHORT' is promoted to `int' when passed through `...' STUFF_SHORT (p, sh); break; case dtype_long: /* long value */ l = (SLONG) va_arg (ptr, SLONG); STUFF_LONG (p, l); break; case dtype_cstring: /* null-terminated string */ q = va_arg (ptr, UCHAR*); STUFF_BYTES (p, q, strlen (q) + 1); break; case dtype_varying: /* short value followed by a value with that many bytes */ sh = va_arg (ptr, USHORT); STUFF_SHORT (p, sh); q = va_arg (ptr, UCHAR*); STUFF_BYTES (p, q, sh); break; } va_end (ptr); return (p-buffer); } =====================================================================