public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Siva Kumar" <sivakumarjr@gmail.com>
To: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD value
Date: Wed, 23 Aug 2006 14:50:00 -0000	[thread overview]
Message-ID: <4fc6d8c0608230750nff8c767hd2e4cf42ffe424f4@mail.gmail.com> (raw)

I took the latest CVS code base and built ecos. But with assertions
enabled, I'm running into assertion on cxxsupp.cxx test case wherein
the condition :

CYG_ASSERT(counter < CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD, "Do you want
an empty delete function?");

is failing in the first delete call itself (counter value is 1). In
the ecos library [include/pkgconf/infra.h], I saw that the value of
CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD is just '1' and not 100 as the
descriptions say. Hence the assertion!

In the infra.cdl, when I changed the flavor of the above macro to
data, the ecc file was generated as needed with the value of the macro
as default (100). With this ecc, when I built the target file,
assertion never happened. Why is CYGNUM_INFRA_EMPTY_DELETE_THRESHOLD,
a boolean instead of data, if it has to take a value of 100 by
default? Pls shed some light.

Regards
Siv

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

                 reply	other threads:[~2006-08-23 14:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4fc6d8c0608230750nff8c767hd2e4cf42ffe424f4@mail.gmail.com \
    --to=sivakumarjr@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=jrsiva@cradle.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).