simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] test mechanism


From: address@hidden
Subject: Re: [Simulavr-devel] test mechanism
Date: Thu, 20 Aug 2009 13:33:12 -0700

Thomas,
On Thu Aug 20 12:25 , Thomas Klepp  sent:
>> I don't understand the need for #ifndef SWIG .
>
>That's, because SWIG can't handle some operators in C++ classes and give 
>warnings for that. To prevent this warnings you'll find such #ifndef 
>SWIG ... #endif constructs. This happens also on some other places in 
>the code resp. the header files. Some of it could be handled with 
>changes on swig files (.i files), but some isn't possible to handle. (as 
>I understand)

I thought it was something like that.
I'd inferred that methods that referred to
"non-existent" methods would need similar treatment.

>One question more for me: you wrote some code snippets for this CBI/SBI 
>problem and you asked a few postings before for the git repo's. Do you 
>want to use (and change to solve this problem) the code base from CVS 
>repo or from the git repo?

Actually it's more that their utility to me was inferred.
In any case, the more general questions are what is to be development
protocol and will it change while I am working on something messy.

IIRC, the current CVS version has edit that include the three-in-one patch,
the atmega48 patch and my atmega{88,168} code, but not my refactoring.

>My question points to that, that in git repo we use a derived class from 
>RWMemoryMember, called IOReg. Your code would work too for registers, 

This is different from the CVS version?

>which don't have this "clear bit on SBI" feature, also on git repo, 
>because the second step in IOReg, using setter/getter access to hardware 
>units would work in the same way. But in this special case we need to a 
>derived class for IOReg, which hasn't only byte getter/setter, but also 
>a special bit setter functionality. (get would work in every case)

I made sbi and cbi virtual so they could be overridden.

Whose git repo is "git repo"?


I expect to need to use git eventually,
so what is the best way to make progress?

--
Michael Hennebry
address@hidden
"War is only a hobby."
---- Msg sent via CableONE.net MyMail - http://www.cableone.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]