mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
neutrino: fix shortened source file paths
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1ed105fd5e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
#include <zapit/getservices.h>
|
#include <zapit/getservices.h>
|
||||||
#include <zapit/scan.h>
|
#include <zapit/scan.h>
|
||||||
#include <zapit/zapit.h>
|
#include <zapit/zapit.h>
|
||||||
|
#define __NFILE__ 1
|
||||||
#include <zapit/debug.h>
|
#include <zapit/debug.h>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __NFILE__ 1
|
||||||
#define NEUTRINO_CPP
|
#define NEUTRINO_CPP
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@@ -45,7 +45,13 @@
|
|||||||
/* zapit.cpp */
|
/* zapit.cpp */
|
||||||
extern int zapit_debug;
|
extern int zapit_debug;
|
||||||
|
|
||||||
|
#if defined __NFILE__
|
||||||
|
/* this is ugly. __FILE__ here is always zapit/include/debug.h, if it is called from
|
||||||
|
* src/neutrino.cpp, src/gui/... simply strip less characters */
|
||||||
|
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 4) : 0;
|
||||||
|
#else
|
||||||
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 14) : 0;
|
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 14) : 0;
|
||||||
|
#endif
|
||||||
#define __SHORTFILE__ (__FILE__ + __striplen)
|
#define __SHORTFILE__ (__FILE__ + __striplen)
|
||||||
|
|
||||||
#define DBG(fmt, args...) \
|
#define DBG(fmt, args...) \
|
||||||
|
Reference in New Issue
Block a user