ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mhz@alt-linux.org>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Re: FireBird 1.0 от AltLinux будет?
Date: Fri, 15 Mar 2002 11:45:19 +0300
Message-ID: <20020315084519.GA2254@mhz.mikhail.zabaluev.name> (raw)
In-Reply-To: <000901c1cbe4$ccb858e0$6600a8c0@ruis.ru>

Hello Evgeniy,

On Fri, Mar 15, 2002 at 08:46:48AM +0300, Evgeniy Kobzev wrote:
>
> ----- Original Message -----
> From: "Mikhail Zabaluev" <mhz@alt-linux.org>
> To: <sisyphus@altlinux.ru>
> 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 `...'

Вот что говорит libc.info:

     The type of the value returned by `va_arg' is TYPE as specified
     in
     the call.  TYPE must be a self-promoting type (not `char' or
     `short int' or `float') that matches the type of the actual
     argument.

По смыслу, нужно использовать типы, которые получаются при "возгонке"
параметров в случае, если функция не была объявлена (одна из часто
ругаемых особенностей C, если помните).

Так что стандарт есть стандарт, извольте соответствовать-с.

Не берусь судить, правильно ли gcc 2.95.3 достаёт эти параметры из
стека.

-- 
Stay tuned,
  MhZ                                     JID: mookid@jabber.org
___________
Wilner's Observation:
	All conversations with a potato should be conducted in private.



  reply	other threads:[~2002-03-15  8:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14  6:59 [sisyphus] FireBird 1.0 ÏÔ AltLinux ÂÕÄÅÔ? Evgeniy Kobzev
2002-03-14  8:02 ` [sisyphus] FireBird 1.0 от AltLinux будет? Stanislav Ievlev
2002-03-14  8:31   ` DH
2002-03-14  9:16     ` Alexander Bokovoy
2002-03-14 10:19       ` DH
2002-03-14  9:46     ` [sisyphus] FireBird 1.0 ÏÔ AltLinux ÂÕÄÅÔ? Evgeniy Kobzev
2002-03-14 10:10       ` [sisyphus] FireBird 1.0 от AltLinux будет? Sir Raorn
2002-03-14 10:15       ` [sisyphus] FireBird 1.0 ПФ AltLinux ВХДЕФ? Alexander Bokovoy
2002-03-14 10:17       ` [sisyphus] Re: FireBird 1.0 от AltLinux будет? Mikhail Zabaluev
2002-03-14 10:43         ` [sisyphus] Re: FireBird 1.0 ÏÔ AltLinux ÂÕÄÅÔ? Evgeniy Kobzev
2002-03-14 11:08           ` [sisyphus] Re: FireBird 1.0 от AltLinux будет? Mikhail Zabaluev
2002-03-14 14:08             ` Aleksey Novodvorsky
2002-03-14 14:02               ` Evgeniy Kobzev
2002-03-14 22:14                 ` Mikhail Zabaluev
2002-03-15  5:46                   ` [sisyphus] Re: FireBird 1.0 ÏÔ AltLinux ÂÕÄÅÔ? Evgeniy Kobzev
2002-03-15  8:45                     ` Mikhail Zabaluev [this message]
2002-03-14 16:02             ` [sisyphus] Re: FireBird 1.0 от AltLinux будет? Sir Raorn
2002-03-14 22:13               ` Mikhail Zabaluev
2002-03-15  7:54               ` Michael Shigorin
2002-03-15 10:26                 ` Sir Raorn
2002-03-15 11:02                   ` Mikhail Zabaluev
2002-03-14 10:26       ` Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020315084519.GA2254@mhz.mikhail.zabaluev.name \
    --to=mhz@alt-linux.org \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git