Re: categories in core

Peter Bienstman <[email protected]> Sun, 12 Oct 2003 17:31:56 +0200
Newsgroups gmane.comp.tools.memaid.devel
Organization Ghent University
Message-ID <[email protected]>
On Sunday 12 October 2003 17:20, David Calinski wrote:
> Hello all,
>
> I just uploaded ("core" module) code that uses categories.

Great!

> When calling functions like ma_how_many_r_for_today(const char
> *catgr_name), or ma_el_to_repeat()
> ma_re etc. catgr_name pointing to NULL means that we don't care about
> categories, e.g. ma_el_to_repeat() returns any element that is scheduled
> for a review.
> *catgr_name pointing to a category name will force ma_el_to_repeat() to
> return element from this category only.

Would it be a good idea to have an array of category names rather than just 
one?

A alternative way to accomplish that would be to have a function which sets a 
category to active or inactive. Then you can get rid of the extra category 
argument in ma_how_many_r_for_today(), etc. and the code would just loop over 
the active categories.

I guess it is never saved to file which categories are active?

Keep up the good work!

Peter

------------------------------------------------
Peter Bienstman
Ghent University, Dep. of Information Technology
Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
tel: +32 9 264 34 45, fax: +32 9 264 35 93
WWW: http://photonics.intec.ugent.be
email: [email protected]
------------------------------------------------



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php