[Top][All Lists]

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

Re: [Gnash-dev] [COMMITTED] inclusion of ffmpeg patch into Gnash 0.8.2 ?

From: Russ Nelson
Subject: Re: [Gnash-dev] [COMMITTED] inclusion of ffmpeg patch into Gnash 0.8.2 ?
Date: Fri, 22 Feb 2008 10:57:02 -0500

strk writes:
 > Next thing to look at (in head) would be proper abstractions to
 > reduce (ideally drop) ifdefs around and duplication of common code.

Yes, ifdefs are the WRONG way to do configuration.  The right way is
to have a set of functions which get implemented by two derived
classes.  Then it's just a question of selecting the correct class to
link into your code if at compile time, or instantiate if at runtime.

#ifdef EVIL
#  assert "yes!"

--my blog is at   | Software that needs
Crynwr sells support for free software  | PGPok | documentation is software
521 Pleasant Valley Rd. | +1 315-323-1241       | that needs repair.
Potsdam, NY 13676-3213  |     Sheepdog          | 

reply via email to

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