AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:
CFG:
PT:0
S:andy.sharp@lsi.com
RQ:
SSV:mhbs.lsil.com
NSV:
SSH:
R:<Rendell.Fong@lsi.com>
MAID:2
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/LSI/INBOX	0	1253219192.23744.201.camel@rendellf
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 17 Sep 2009 13:44:13 -0700
From: Andrew Sharp <andy.sharp@lsi.com>
To: Rendell Fong <Rendell.Fong@lsi.com>
Subject: Re: bcall_val
Message-ID: <20090917134413.2d692abd@ripper.onstor.net>
In-Reply-To: <1253219192.23744.201.camel@rendellf>
References: <1253219192.23744.201.camel@rendellf>
Organization: LSI
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

What file is this in?

On Thu, 17 Sep 2009 14:26:32 -0600 Rendell Fong <Rendell.Fong@lsi.com>
wrote:

> Here's the bcal_vall change that I mentioned.
> I've added the else case to handle a non-pending return from the
> specified func call.
> 
> 
> #define BCALL_VAL(val, req, state,
> call)                               \
> {                                                                  \
> uint32 _error_code;                                            \
> req_check_freed(req);                                          \ \
>         (req)->rh_state =
> (state);                                     \ REQ_TRACE_FMT("BC ",
> (req), ((req)->rh_stack_index+1)*2,       \ ("%s %s:%d\n",
> req_state_name((req_hdr_t *)req), \ __FILE__,
> __LINE__));                           \ if ((_error_code = call) ==
> STATUS_PENDING)  {                 \ REQ_TRACE(("req = %p blocking in
> %s %s:%d\n",              \ (req), req_state_name((req_hdr_t
> *)req),        \ __FILE__, __LINE__));                           \
>             return
> STATUS_PENDING;                                     \
> state :                                                            \
> val = req_last_error(req);                                 \ } else
> {                                                       \ val =
> _error_code;
> \ }                                                              \ }
> 
> 
