mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed trailing whitespace
This commit is contained in:
parent
212a2fea41
commit
3ca58a42e7
5
HISTORY
5
HISTORY
@ -7567,7 +7567,7 @@ Video Disk Recorder Revision History
|
|||||||
behavior of the remote control in case a key is held pressed down for a while, so
|
behavior of the remote control in case a key is held pressed down for a while, so
|
||||||
that the repeat function kicks in (see MANUAL).
|
that the repeat function kicks in (see MANUAL).
|
||||||
The builtin LIRC and KBD remote controls already use these parameters. It is
|
The builtin LIRC and KBD remote controls already use these parameters. It is
|
||||||
recommended that plugins that implement an interface to any kind of remote controls
|
recommended that plugins that implement an interface to any kind of remote controls
|
||||||
also use the parameters Setup.RcRepeatDelay and Setup.RcRepeatDelta for the desired
|
also use the parameters Setup.RcRepeatDelay and Setup.RcRepeatDelta for the desired
|
||||||
purpose, and remove any setup options they might have that serve the same purpose.
|
purpose, and remove any setup options they might have that serve the same purpose.
|
||||||
- cTimer no longer does any special "VFAT" handling to shorten directory names to 40
|
- cTimer no longer does any special "VFAT" handling to shorten directory names to 40
|
||||||
@ -7586,7 +7586,7 @@ Video Disk Recorder Revision History
|
|||||||
line option switch.
|
line option switch.
|
||||||
|
|
||||||
2013-02-17: Version 1.7.38
|
2013-02-17: Version 1.7.38
|
||||||
|
|
||||||
- Updated the Ukrainian OSD texts (thanks to Yarema Aka Knedlyk).
|
- Updated the Ukrainian OSD texts (thanks to Yarema Aka Knedlyk).
|
||||||
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
|
||||||
- Updated the Romanian OSD texts (thanks to Lucian Muresan).
|
- Updated the Romanian OSD texts (thanks to Lucian Muresan).
|
||||||
@ -7641,3 +7641,4 @@ Video Disk Recorder Revision History
|
|||||||
is write protected.
|
is write protected.
|
||||||
- Updated the Doxyfile with a newer version of Doxygen.
|
- Updated the Doxyfile with a newer version of Doxygen.
|
||||||
- Turned off following symlinks in the Doxyfile.
|
- Turned off following symlinks in the Doxyfile.
|
||||||
|
- Removed trailing whitespace.
|
||||||
|
2
MANUAL
2
MANUAL
@ -699,7 +699,7 @@ Version 1.6
|
|||||||
Defines the standard compliance mode:
|
Defines the standard compliance mode:
|
||||||
0 = DVB
|
0 = DVB
|
||||||
1 = ANSI/SCTE
|
1 = ANSI/SCTE
|
||||||
|
|
||||||
Video format = 4:3 The video format (or aspect ratio) of the tv set in use
|
Video format = 4:3 The video format (or aspect ratio) of the tv set in use
|
||||||
(4:3 or 16:9).
|
(4:3 or 16:9).
|
||||||
|
|
||||||
|
@ -2025,7 +2025,7 @@ operator!
|
|||||||
VDR has builtin facilities that select which device is able to provide a given
|
VDR has builtin facilities that select which device is able to provide a given
|
||||||
transponder. However, there may be situations where the setup is so special
|
transponder. However, there may be situations where the setup is so special
|
||||||
that it requires considerations that exceed the scope of the core VDR code.
|
that it requires considerations that exceed the scope of the core VDR code.
|
||||||
This is where <i>device hooks</i> can be used.
|
This is where <i>device hooks</i> can be used.
|
||||||
|
|
||||||
<p><table><tr><td class="code"><pre>
|
<p><table><tr><td class="code"><pre>
|
||||||
class cMyDeviceHook : public cDeviceHook {
|
class cMyDeviceHook : public cDeviceHook {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbsdffdevice.c 2.34 2013/01/25 10:48:29 kls Exp $
|
* $Id: dvbsdffdevice.c 2.35 2013/02/17 13:16:18 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbsdffdevice.h"
|
#include "dvbsdffdevice.h"
|
||||||
@ -795,5 +795,5 @@ bool cDvbSdFfDeviceProbe::Probe(int Adapter, int Frontend)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: dvbsdffdevice.h 2.15 2013/01/25 10:43:14 kls Exp $
|
* $Id: dvbsdffdevice.h 2.16 2013/02/17 13:16:29 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __DVBSDFFDEVICE_H
|
#ifndef __DVBSDFFDEVICE_H
|
||||||
@ -112,5 +112,5 @@ public:
|
|||||||
void SetOutputOnly(bool On) { outputOnly = On; }
|
void SetOutputOnly(bool On) { outputOnly = On; }
|
||||||
virtual bool Probe(int Adapter, int Frontend);
|
virtual bool Probe(int Adapter, int Frontend);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__DVBSDFFDEVICE_H
|
#endif //__DVBSDFFDEVICE_H
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* See the README file for copyright information and how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: osddemo.c 2.9 2013/02/13 13:46:31 kls Exp $
|
* $Id: osddemo.c 2.10 2013/02/17 13:16:34 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <vdr/osd.h>
|
#include <vdr/osd.h>
|
||||||
@ -335,7 +335,7 @@ void cTrueColorDemo::Action(void)
|
|||||||
State++;
|
State++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 1: {
|
case 1: {
|
||||||
FadeInPixmap = CreateTextPixmap("Video Disk Recorder", Line, 3, clrYellow, clrTransparent, OsdFont);
|
FadeInPixmap = CreateTextPixmap("Video Disk Recorder", Line, 3, clrYellow, clrTransparent, OsdFont);
|
||||||
if (FadeInPixmap)
|
if (FadeInPixmap)
|
||||||
Line += FadeInPixmap->DrawPort().Height();
|
Line += FadeInPixmap->DrawPort().Height();
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# See the README file for copyright information and how to reach the author.
|
# See the README file for copyright information and how to reach the author.
|
||||||
#
|
#
|
||||||
# $Id: pic2mpg 2.4 2012/01/08 13:27:17 kls Exp $
|
# $Id: pic2mpg 2.5 2013/02/17 13:17:13 kls Exp $
|
||||||
|
|
||||||
use File::Path;
|
use File::Path;
|
||||||
use File::Spec;
|
use File::Spec;
|
||||||
@ -37,9 +37,9 @@ $Verbose = $opt_v;
|
|||||||
$ListFiles = $Verbose >= 1;
|
$ListFiles = $Verbose >= 1;
|
||||||
$Detailed = $Verbose >= 2;
|
$Detailed = $Verbose >= 2;
|
||||||
|
|
||||||
# Supported picture types:
|
# Supported picture types:
|
||||||
|
|
||||||
%PICTYPES = (
|
%PICTYPES = (
|
||||||
bmp => 1,
|
bmp => 1,
|
||||||
gif => 1,
|
gif => 1,
|
||||||
jpeg => 1,
|
jpeg => 1,
|
||||||
@ -135,7 +135,7 @@ sub ConvertFile
|
|||||||
return if (!defined $PICTYPES{$Type});
|
return if (!defined $PICTYPES{$Type});
|
||||||
my $Exif = ImageInfo($Pict);
|
my $Exif = ImageInfo($Pict);
|
||||||
my $Orientation = $$Exif{"Orientation"};
|
my $Orientation = $$Exif{"Orientation"};
|
||||||
my ($Degrees) = $Orientation =~ /Rotate ([0-9]+)/;
|
my ($Degrees) = $Orientation =~ /Rotate ([0-9]+)/;
|
||||||
my $Rotate = $Degrees ? "-rotate $Degrees" : "";
|
my $Rotate = $Degrees ? "-rotate $Degrees" : "";
|
||||||
print "orientation = '$Orientation' -> rotation = $Rotate\n" if ($Detailed);
|
print "orientation = '$Orientation' -> rotation = $Rotate\n" if ($Detailed);
|
||||||
$Pict = EscapeMeta($Pict);
|
$Pict = EscapeMeta($Pict);
|
||||||
|
4
README
4
README
@ -36,5 +36,5 @@ the ones in this system, but here we have the full source code
|
|||||||
and can modify the menus in whatever way desired.
|
and can modify the menus in whatever way desired.
|
||||||
|
|
||||||
|
|
||||||
"VDR Video Disk Recorder" is a registered trademark of Klaus Schmidinger.
|
"VDR Video Disk Recorder" is a registered trademark of Klaus Schmidinger.
|
||||||
"TVDR TV Done Right" is a registered trademark of Klaus Schmidinger.
|
"TVDR TV Done Right" is a registered trademark of Klaus Schmidinger.
|
||||||
|
4
ci.c
4
ci.c
@ -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: ci.c 2.11 2013/02/16 15:16:14 kls Exp $
|
* $Id: ci.c 2.12 2013/02/17 13:17:28 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ci.h"
|
#include "ci.h"
|
||||||
@ -1936,7 +1936,7 @@ bool cCamSlot::CanDecrypt(const cChannel *Channel)
|
|||||||
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
|
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
|
||||||
CaPmt.AddPid(*Dpid, STREAM_TYPE_PRIVATE);
|
CaPmt.AddPid(*Dpid, STREAM_TYPE_PRIVATE);
|
||||||
for (const int *Spid = Channel->Spids(); *Spid; Spid++)
|
for (const int *Spid = Channel->Spids(); *Spid; Spid++)
|
||||||
CaPmt.AddPid(*Spid, STREAM_TYPE_PRIVATE);
|
CaPmt.AddPid(*Spid, STREAM_TYPE_PRIVATE);
|
||||||
cas->SendPMT(&CaPmt);
|
cas->SendPMT(&CaPmt);
|
||||||
cTimeMs Timeout(QUERY_REPLY_TIMEOUT);
|
cTimeMs Timeout(QUERY_REPLY_TIMEOUT);
|
||||||
do {
|
do {
|
||||||
|
@ -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: dvbdevice.c 2.79 2013/02/16 12:47:59 kls Exp $
|
* $Id: dvbdevice.c 2.80 2013/02/17 13:17:33 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbdevice.h"
|
#include "dvbdevice.h"
|
||||||
@ -659,7 +659,7 @@ void cDvbTuner::ExecuteDiseqc(const cDiseqc *Diseqc, unsigned int *Frequency)
|
|||||||
}
|
}
|
||||||
static cMutex Mutex;
|
static cMutex Mutex;
|
||||||
if (Diseqc->IsScr())
|
if (Diseqc->IsScr())
|
||||||
Mutex.Lock();
|
Mutex.Lock();
|
||||||
struct dvb_diseqc_master_cmd cmd;
|
struct dvb_diseqc_master_cmd cmd;
|
||||||
const char *CurrentAction = NULL;
|
const char *CurrentAction = NULL;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -681,7 +681,7 @@ void cDvbTuner::ExecuteDiseqc(const cDiseqc *Diseqc, unsigned int *Frequency)
|
|||||||
if (scr)
|
if (scr)
|
||||||
ResetToneAndVoltage(); // makes sure we don't block the bus!
|
ResetToneAndVoltage(); // makes sure we don't block the bus!
|
||||||
if (Diseqc->IsScr())
|
if (Diseqc->IsScr())
|
||||||
Mutex.Unlock();
|
Mutex.Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cDvbTuner::ResetToneAndVoltage(void)
|
void cDvbTuner::ResetToneAndVoltage(void)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
* Original author: Marco Schluessler <marco@lordzodiac.de>
|
||||||
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
* With some input from the "subtitle plugin" by Pekka Virtanen <pekka.virtanen@sci.fi>
|
||||||
*
|
*
|
||||||
* $Id: dvbsubtitle.c 2.32 2012/05/08 08:17:17 kls Exp $
|
* $Id: dvbsubtitle.c 2.33 2013/02/17 13:17:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -1283,7 +1283,7 @@ void cDvbSubtitleConverter::FinishPage(cDvbSubtitlePage *Page)
|
|||||||
}
|
}
|
||||||
cDvbSubtitleBitmaps *Bitmaps = new cDvbSubtitleBitmaps(Page->Pts(), Page->Timeout(), Areas, NumAreas, osdFactorX, osdFactorY);
|
cDvbSubtitleBitmaps *Bitmaps = new cDvbSubtitleBitmaps(Page->Pts(), Page->Timeout(), Areas, NumAreas, osdFactorX, osdFactorY);
|
||||||
bitmaps->Add(Bitmaps);
|
bitmaps->Add(Bitmaps);
|
||||||
for (int i = 0; i < NumAreas; i++) {
|
for (int i = 0; i < NumAreas; i++) {
|
||||||
cSubtitleRegion *sr = Page->regions.Get(i);
|
cSubtitleRegion *sr = Page->regions.Get(i);
|
||||||
cSubtitleClut *clut = Page->GetClutById(sr->ClutId());
|
cSubtitleClut *clut = Page->GetClutById(sr->ClutId());
|
||||||
if (!clut)
|
if (!clut)
|
||||||
|
4
font.h
4
font.h
@ -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: font.h 2.6 2011/12/04 13:38:17 kls Exp $
|
* $Id: font.h 2.7 2013/02/17 13:17:42 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __FONT_H
|
#ifndef __FONT_H
|
||||||
@ -43,7 +43,7 @@ public:
|
|||||||
///< Returns the font name.
|
///< Returns the font name.
|
||||||
virtual int Size(void) const { return Height(); }
|
virtual int Size(void) const { return Height(); }
|
||||||
///< Returns the original size as requested when the font was created.
|
///< Returns the original size as requested when the font was created.
|
||||||
///< This may be different than the actual height.
|
///< This may be different than the actual height.
|
||||||
virtual int Width(uint c) const = 0;
|
virtual int Width(uint c) const = 0;
|
||||||
///< Returns the width of the given character in pixel.
|
///< Returns the width of the given character in pixel.
|
||||||
virtual int Width(const char *s) const = 0;
|
virtual int Width(const char *s) const = 0;
|
||||||
|
8
menu.c
8
menu.c
@ -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: menu.c 2.78 2013/02/12 13:10:53 kls Exp $
|
* $Id: menu.c 2.79 2013/02/17 13:17:49 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2811,7 +2811,7 @@ cMenuSetupDVB::cMenuSetupDVB(void)
|
|||||||
standardComplianceTexts[1] = "ANSI/SCTE";
|
standardComplianceTexts[1] = "ANSI/SCTE";
|
||||||
|
|
||||||
SetSection(tr("DVB"));
|
SetSection(tr("DVB"));
|
||||||
SetHelp(NULL, tr("Button$Audio"), tr("Button$Subtitles"), NULL);
|
SetHelp(NULL, tr("Button$Audio"), tr("Button$Subtitles"), NULL);
|
||||||
Setup();
|
Setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2865,7 +2865,7 @@ eOSState cMenuSetupDVB::ProcessKey(eKeys Key)
|
|||||||
case kYellow: cRemote::Put(kSubtitles, true);
|
case kYellow: cRemote::Put(kSubtitles, true);
|
||||||
state = osEnd;
|
state = osEnd;
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
bool DoSetup = data.VideoFormat != newVideoFormat;
|
bool DoSetup = data.VideoFormat != newVideoFormat;
|
||||||
DoSetup |= data.DisplaySubtitles != newDisplaySubtitles;
|
DoSetup |= data.DisplaySubtitles != newDisplaySubtitles;
|
||||||
if (numAudioLanguages != oldnumAudioLanguages) {
|
if (numAudioLanguages != oldnumAudioLanguages) {
|
||||||
@ -4961,7 +4961,7 @@ eOSState cReplayControl::ProcessKey(eKeys Key)
|
|||||||
else
|
else
|
||||||
Show();
|
Show();
|
||||||
break;
|
break;
|
||||||
case kBack: if (Setup.DelTimeshiftRec) {
|
case kBack: if (Setup.DelTimeshiftRec) {
|
||||||
cRecordControl* rc = cRecordControls::GetRecordControl(fileName);
|
cRecordControl* rc = cRecordControls::GetRecordControl(fileName);
|
||||||
return rc && rc->InstantId() ? osEnd : osRecordings;
|
return rc && rc->InstantId() ? osEnd : osRecordings;
|
||||||
}
|
}
|
||||||
|
@ -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: recording.c 2.87 2013/02/11 11:18:22 kls Exp $
|
* $Id: recording.c 2.88 2013/02/17 13:17:55 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -1103,7 +1103,7 @@ bool cRecording::WriteInfo(void)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cRecording::SetStartTime(time_t Start)
|
void cRecording::SetStartTime(time_t Start)
|
||||||
{
|
{
|
||||||
start = Start;
|
start = Start;
|
||||||
free(fileName);
|
free(fileName);
|
||||||
@ -2136,7 +2136,7 @@ int cIndexFile::GetLength(const char *FileName, bool IsPesRecording)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GenerateIndex(const char *FileName)
|
bool GenerateIndex(const char *FileName)
|
||||||
{
|
{
|
||||||
if (DirectoryOk(FileName)) {
|
if (DirectoryOk(FileName)) {
|
||||||
cRecording Recording(FileName);
|
cRecording Recording(FileName);
|
||||||
|
4
remux.c
4
remux.c
@ -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: remux.c 2.73 2012/11/25 14:16:11 kls Exp $
|
* $Id: remux.c 2.74 2013/02/17 13:17:58 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "remux.h"
|
#include "remux.h"
|
||||||
@ -1244,7 +1244,7 @@ int cH264Parser::Parse(const uchar *Data, int Length, int Pid)
|
|||||||
break;
|
break;
|
||||||
case nutCodedSliceNonIdr:
|
case nutCodedSliceNonIdr:
|
||||||
case nutCodedSliceIdr: if (gotAccessUnitDelimiter && gotSequenceParameterSet) {
|
case nutCodedSliceIdr: if (gotAccessUnitDelimiter && gotSequenceParameterSet) {
|
||||||
ParseSliceHeader();
|
ParseSliceHeader();
|
||||||
gotAccessUnitDelimiter = false;
|
gotAccessUnitDelimiter = false;
|
||||||
return tsPayload.Used();
|
return tsPayload.Used();
|
||||||
}
|
}
|
||||||
|
4
svdrp.c
4
svdrp.c
@ -10,7 +10,7 @@
|
|||||||
* and interact with the Video Disk Recorder - or write a full featured
|
* and interact with the Video Disk Recorder - or write a full featured
|
||||||
* graphical interface that sits on top of an SVDRP connection.
|
* graphical interface that sits on top of an SVDRP connection.
|
||||||
*
|
*
|
||||||
* $Id: svdrp.c 2.23 2013/01/17 15:19:02 kls Exp $
|
* $Id: svdrp.c 2.24 2013/02/17 13:18:01 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "svdrp.h"
|
#include "svdrp.h"
|
||||||
@ -1512,7 +1512,7 @@ void cSVDRP::CmdPUTE(const char *Option)
|
|||||||
else
|
else
|
||||||
Reply(501, "Cannot open file \"%s\"", Option);
|
Reply(501, "Cannot open file \"%s\"", Option);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
delete PUTEhandler;
|
delete PUTEhandler;
|
||||||
PUTEhandler = new cPUTEhandler;
|
PUTEhandler = new cPUTEhandler;
|
||||||
Reply(PUTEhandler->Status(), "%s", PUTEhandler->Message());
|
Reply(PUTEhandler->Status(), "%s", PUTEhandler->Message());
|
||||||
|
4
tools.h
4
tools.h
@ -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: tools.h 2.23 2012/12/06 08:59:39 kls Exp $
|
* $Id: tools.h 2.24 2013/02/17 13:18:06 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __TOOLS_H
|
#ifndef __TOOLS_H
|
||||||
@ -45,7 +45,7 @@ extern int SysLogLevel;
|
|||||||
|
|
||||||
#define MALLOC(type, size) (type *)malloc(sizeof(type) * (size))
|
#define MALLOC(type, size) (type *)malloc(sizeof(type) * (size))
|
||||||
|
|
||||||
template<class T> inline void DELETENULL(T *&p) { T *q = p; p = NULL; delete q; }
|
template<class T> inline void DELETENULL(T *&p) { T *q = p; p = NULL; delete q; }
|
||||||
|
|
||||||
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
||||||
#define FATALERRNO (errno && errno != EAGAIN && errno != EINTR)
|
#define FATALERRNO (errno && errno != EAGAIN && errno != EINTR)
|
||||||
|
Loading…
Reference in New Issue
Block a user