Some code cleanup

This commit is contained in:
Klaus Schmidinger 2008-02-10 14:11:47 +01:00
parent e1eb84db49
commit 56f1b1b741
7 changed files with 28 additions and 28 deletions

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: channels.c 1.57 2008/02/08 13:43:07 kls Exp $ * $Id: channels.c 1.58 2008/02/10 14:11:47 kls Exp $
*/ */
#include "channels.h" #include "channels.h"
@ -18,7 +18,7 @@
// format characters in order to allow any number of blanks after a numeric // format characters in order to allow any number of blanks after a numeric
// value! // value!
// -- Channel Parameter Maps ------------------------------------------------- // --- Channel Parameter Maps ------------------------------------------------
const tChannelParameterMap InversionValues[] = { const tChannelParameterMap InversionValues[] = {
{ 0, INVERSION_OFF }, { 0, INVERSION_OFF },
@ -123,7 +123,7 @@ int MapToDriver(int Value, const tChannelParameterMap *Map)
return -1; return -1;
} }
// -- tChannelID ------------------------------------------------------------- // --- tChannelID ------------------------------------------------------------
const tChannelID tChannelID::InvalidID; const tChannelID tChannelID::InvalidID;
@ -158,7 +158,7 @@ tChannelID &tChannelID::ClrPolarization(void)
return *this; return *this;
} }
// -- cChannel --------------------------------------------------------------- // --- cChannel --------------------------------------------------------------
cChannel::cChannel(void) cChannel::cChannel(void)
{ {
@ -850,7 +850,7 @@ bool cChannel::Save(FILE *f)
return fprintf(f, "%s", *ToText()) > 0; return fprintf(f, "%s", *ToText()) > 0;
} }
// -- cChannelSorter --------------------------------------------------------- // --- cChannelSorter --------------------------------------------------------
class cChannelSorter : public cListObject { class cChannelSorter : public cListObject {
public: public:
@ -866,7 +866,7 @@ public:
} }
}; };
// -- cChannels -------------------------------------------------------------- // --- cChannels -------------------------------------------------------------
cChannels Channels; cChannels Channels;

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: config.c 1.158 2007/11/25 13:46:27 kls Exp $ * $Id: config.c 1.159 2008/02/10 14:10:48 kls Exp $
*/ */
#include "config.h" #include "config.h"
@ -86,7 +86,7 @@ const char *cCommand::Execute(const char *Parameters)
return result; return result;
} }
// -- cSVDRPhost ------------------------------------------------------------- // --- cSVDRPhost ------------------------------------------------------------
cSVDRPhost::cSVDRPhost(void) cSVDRPhost::cSVDRPhost(void)
{ {
@ -122,12 +122,12 @@ bool cSVDRPhost::Accepts(in_addr_t Address)
return (Address & mask) == (addr.s_addr & mask); return (Address & mask) == (addr.s_addr & mask);
} }
// -- cCommands -------------------------------------------------------------- // --- cCommands -------------------------------------------------------------
cCommands Commands; cCommands Commands;
cCommands RecordingCommands; cCommands RecordingCommands;
// -- cSVDRPhosts ------------------------------------------------------------ // --- cSVDRPhosts -----------------------------------------------------------
cSVDRPhosts SVDRPhosts; cSVDRPhosts SVDRPhosts;
@ -142,7 +142,7 @@ bool cSVDRPhosts::Acceptable(in_addr_t Address)
return false; return false;
} }
// -- cSetupLine ------------------------------------------------------------- // --- cSetupLine ------------------------------------------------------------
cSetupLine::cSetupLine(void) cSetupLine::cSetupLine(void)
{ {
@ -208,7 +208,7 @@ bool cSetupLine::Save(FILE *f)
return fprintf(f, "%s%s%s = %s\n", plugin ? plugin : "", plugin ? "." : "", name, value) > 0; return fprintf(f, "%s%s%s = %s\n", plugin ? plugin : "", plugin ? "." : "", name, value) > 0;
} }
// -- cSetup ----------------------------------------------------------------- // --- cSetup ----------------------------------------------------------------
cSetup Setup; cSetup Setup;

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: diseqc.c 1.5 2005/12/30 15:41:48 kls Exp $ * $Id: diseqc.c 1.6 2008/02/10 14:09:27 kls Exp $
*/ */
#include "diseqc.h" #include "diseqc.h"
@ -12,7 +12,7 @@
#include "sources.h" #include "sources.h"
#include "thread.h" #include "thread.h"
// -- cDiseqc ---------------------------------------------------------------- // --- cDiseqc ---------------------------------------------------------------
cDiseqc::cDiseqc(void) cDiseqc::cDiseqc(void)
{ {
@ -122,7 +122,7 @@ cDiseqc::eDiseqcActions cDiseqc::Execute(char **CurrentAction)
return daNone; return daNone;
} }
// -- cDiseqcs --------------------------------------------------------------- // --- cDiseqcs --------------------------------------------------------------
cDiseqcs Diseqcs; cDiseqcs Diseqcs;

10
keys.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: keys.c 1.16 2007/09/26 12:35:21 kls Exp $ * $Id: keys.c 1.17 2008/02/10 14:08:48 kls Exp $
*/ */
#include "keys.h" #include "keys.h"
@ -70,7 +70,7 @@ static tKey keyTable[] = { // "Up" and "Down" must be the first two keys!
{ kNone, NULL }, { kNone, NULL },
}; };
// -- cKey ------------------------------------------------------------------- // --- cKey ------------------------------------------------------------------
cKey::cKey(void) cKey::cKey(void)
{ {
@ -149,7 +149,7 @@ const char *cKey::ToString(eKeys Key, bool Translate)
return NULL; return NULL;
} }
// -- cKeys ------------------------------------------------------------------ // --- cKeys -----------------------------------------------------------------
cKeys Keys; cKeys Keys;
@ -194,7 +194,7 @@ void cKeys::PutSetup(const char *Remote, const char *Setup)
esyslog("ERROR: called PutSetup() for %s, but setup has already been defined!", Remote); esyslog("ERROR: called PutSetup() for %s, but setup has already been defined!", Remote);
} }
// -- cKeyMacro -------------------------------------------------------------- // --- cKeyMacro -------------------------------------------------------------
cKeyMacro::cKeyMacro(void) cKeyMacro::cKeyMacro(void)
{ {
@ -260,7 +260,7 @@ bool cKeyMacro::Parse(char *s)
return true; return true;
} }
// -- cKeyMacros ------------------------------------------------------------- // --- cKeyMacros ------------------------------------------------------------
cKeyMacros KeyMacros; cKeyMacros KeyMacros;

View File

@ -4,13 +4,13 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: sources.c 1.3 2004/12/26 11:58:52 kls Exp $ * $Id: sources.c 1.4 2008/02/10 14:07:26 kls Exp $
*/ */
#include "sources.h" #include "sources.h"
#include <ctype.h> #include <ctype.h>
// -- cSource ---------------------------------------------------------------- // --- cSource ---------------------------------------------------------------
cSource::cSource(void) cSource::cSource(void)
{ {
@ -101,7 +101,7 @@ int cSource::FromData(eSourceType SourceType, int Position, bool East)
return code; return code;
} }
// -- cSources --------------------------------------------------------------- // --- cSources --------------------------------------------------------------
cSources Sources; cSources Sources;

4
spu.c
View File

@ -6,13 +6,13 @@
* This code is distributed under the terms and conditions of the * This code is distributed under the terms and conditions of the
* GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details.
* *
* $Id: spu.c 1.3 2006/04/17 11:00:00 kls Exp $ * $Id: spu.c 1.4 2008/02/10 14:06:48 kls Exp $
*/ */
#include "spu.h" #include "spu.h"
#include <inttypes.h> #include <inttypes.h>
// -- cSpuDecoder ------------------------------------------------------------ // --- cSpuDecoder -----------------------------------------------------------
/* /*
cSpuDecoder::cSpuDecoder() cSpuDecoder::cSpuDecoder()
{}; {};

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: timers.c 1.69 2008/02/10 12:22:02 kls Exp $ * $Id: timers.c 1.70 2008/02/10 14:05:49 kls Exp $
*/ */
#include "timers.h" #include "timers.h"
@ -19,7 +19,7 @@
// format characters in order to allow any number of blanks after a numeric // format characters in order to allow any number of blanks after a numeric
// value! // value!
// -- cTimer ----------------------------------------------------------------- // --- cTimer ----------------------------------------------------------------
cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel) cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel)
{ {
@ -608,7 +608,7 @@ void cTimer::OnOff(void)
Matches(); // refresh start and end time Matches(); // refresh start and end time
} }
// -- cTimers ---------------------------------------------------------------- // --- cTimers ---------------------------------------------------------------
cTimers Timers; cTimers Timers;