This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple PPP interfaces in single unit


> This is not a trivial job unfortunately, and anything we do would
> seriously inhibit any efforts to update the PPP code from the BSD
> repository. 

Here is a new PPPD refactoring scheme I thought off. It should be fairly
diff/merge-friendly.

int globalvar;

void foo(int x, int y)
{
	globalvar++;
}


=>

class PPPD
{
	int globalvar;
	void foo(int x, int y);
};

void PPPD::foo(int x, int y)
{
	globalvar++;
}


-- 
Øyvind Harboe
http://www.zylin.com



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]