mirror of
http://mpg123.de/trunk/.git
synced 2025-10-23 16:48:31 +03:00
Ensure that debug.h is included after any system headers.
There may be funny conflicts with my generic macro names. git-svn-id: svn://scm.orgis.org/mpg123/trunk@1425 35dc7657-300d-0410-a2e5-dc2837fedb53
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
static int file_write(struct audio_output_struct* ao, unsigned char *bytes, int count)
|
||||
{
|
||||
return (int)write(ao->fn, bytes, count);
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "common.h"
|
||||
#include <errno.h>
|
||||
#include "debug.h"
|
||||
|
||||
int outburst = 32768;
|
||||
|
||||
|
||||
@@ -8,15 +8,15 @@
|
||||
|
||||
#include "mpg123app.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
const char* rva_name[3] = { "off", "mix", "album" };
|
||||
static const char *modes[5] = {"Stereo", "Joint-Stereo", "Dual-Channel", "Single-Channel", "Invalid" };
|
||||
static const char *smodes[5] = { "stereo", "joint-stereo", "dual-channel", "mono", "invalid" };
|
||||
|
||||
@@ -37,6 +37,8 @@ FILE *outstream;
|
||||
static int mode = MODE_STOPPED;
|
||||
static int init = 0;
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
void generic_sendmsg (const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "getlopt.h"
|
||||
#include "debug.h"
|
||||
|
||||
int loptind = 1; /* index in argv[] */
|
||||
int loptchr = 0; /* index in argv[loptind] */
|
||||
|
||||
@@ -29,6 +29,24 @@
|
||||
#include "mpg123app.h"
|
||||
#include "httpget.h"
|
||||
|
||||
#if !defined(WIN32) && !defined(GENERIC)
|
||||
#include <string.h>
|
||||
#define HTTP_MAX_RELOCATIONS 20
|
||||
#include <netdb.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include "true.h"
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE 0xffffffff
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
void httpdata_init(struct httpdata *e)
|
||||
{
|
||||
mpg123_init_string(&e->content_type);
|
||||
@@ -89,24 +107,6 @@ debunk_result:
|
||||
|
||||
#if !defined(WIN32) && !defined(GENERIC)
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define HTTP_MAX_RELOCATIONS 20
|
||||
|
||||
#include <netdb.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "true.h"
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE 0xffffffff
|
||||
#endif
|
||||
|
||||
int writestring (int fd, char *string)
|
||||
{
|
||||
int result, bytes = strlen(string);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "mpg123.h"
|
||||
#include "mpg123app.h"
|
||||
#include "genre.h"
|
||||
#include "debug.h"
|
||||
|
||||
static void utf8_ascii(mpg123_string *dest, mpg123_string *source);
|
||||
static void transform(mpg123_string *dest, mpg123_string *source)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "mpg123app.h"
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
/* A single module is staticly compiled in for each type */
|
||||
extern mpg123_module_t mpg123_output_module_info;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#define SAFE_NTOM /* Do not depend on off_t*off_t with big values still being in the range... */
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "debug.h"
|
||||
|
||||
int synth_ntom_set_step(mpg123_handle *fr)
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* static int chans[NUM_CHANNELS] = { 1 , 2 }; */
|
||||
static const long my_rates[MPG123_RATES] = /* only the standard rates */
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "getcpuflags.h"
|
||||
#include "debug.h"
|
||||
|
||||
#define IGNORESHIFT 2
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "id3.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* UTF support definitions */
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "huffman.h"
|
||||
|
||||
#include "getbits.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* static one-time calculated tables... or so */
|
||||
static real ispow[8207];
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "getbits.h"
|
||||
#include "debug.h"
|
||||
|
||||
#ifdef GAPLESS
|
||||
#define SAMPLE_ADJUST(x) ((x) - ((mh->p.flags & MPG123_GAPLESS) ? mh->begin_os : 0))
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#endif
|
||||
#include "mpg123.h"
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "compat.h"
|
||||
|
||||
#define SKIP_JUNK 1
|
||||
|
||||
@@ -17,6 +17,18 @@
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
/* a limit for number of frames in a track; beyond that unsigned long may not be enough to hold byte addresses */
|
||||
#ifdef HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
#ifndef ULONG_MAX
|
||||
/* hm, is this portable across preprocessors? */
|
||||
#define ULONG_MAX ((unsigned long)-1)
|
||||
#endif
|
||||
#define TRACK_MAX_FRAMES ULONG_MAX/4/1152
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
#define bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) )
|
||||
|
||||
/*
|
||||
@@ -67,15 +79,6 @@ static const int tabsel_123[2][3][16] = {
|
||||
|
||||
const long freqs[9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 };
|
||||
|
||||
/* a limit for number of frames in a track; beyond that unsigned long may not be enough to hold byte addresses */
|
||||
#ifdef HAVE_LIMITS_H
|
||||
#include <limits.h>
|
||||
#endif
|
||||
#ifndef ULONG_MAX
|
||||
/* hm, is this portable across preprocessors? */
|
||||
#define ULONG_MAX ((unsigned long)-1)
|
||||
#endif
|
||||
#define TRACK_MAX_FRAMES ULONG_MAX/4/1152
|
||||
|
||||
#ifdef VARMODESUPPORT
|
||||
/*
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "debug.h"
|
||||
|
||||
static int default_init(mpg123_handle *fr);
|
||||
static off_t get_fileinfo(mpg123_handle *);
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "mpg123.h"
|
||||
#include "compat.h"
|
||||
#include <string.h>
|
||||
#include "debug.h"
|
||||
|
||||
void mpg123_init_string(mpg123_string* sb)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "mpg123app.h"
|
||||
#include "mpg123app.h" <<<--- nope!
|
||||
#include "debug.h"
|
||||
|
||||
static int filept;
|
||||
static int verbose = 1;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "mpg123lib_intern.h"
|
||||
#include "debug.h"
|
||||
|
||||
/* All optimizations share this code - with the exception of MMX */
|
||||
#ifndef OPT_MMX_ONLY
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <ltdl.h>
|
||||
|
||||
#include "mpg123app.h"
|
||||
#include "debug.h"
|
||||
|
||||
#ifndef HAVE_LTDL
|
||||
#error Cannot build without LTDL library support
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
#include "httpget.h"
|
||||
#include "getcpuflags.h"
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
static void usage(int err);
|
||||
static void want_usage(char* arg);
|
||||
static void long_usage(int err);
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
|
||||
/* everyone needs it */
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "httpget.h"
|
||||
/* import DLL symbols on windows */
|
||||
#if defined(WIN32) && defined(DYNAMIC_BUILD)
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "term.h" /* for term_restore */
|
||||
#include "playlist.h"
|
||||
#include "httpget.h"
|
||||
#include "debug.h"
|
||||
|
||||
#ifdef HAVE_RANDOM
|
||||
#define RAND random
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "common.h"
|
||||
#include "playlist.h"
|
||||
#include "id3print.h"
|
||||
#include "debug.h"
|
||||
|
||||
extern int buffer_pid;
|
||||
extern audio_output_t *ao;
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "mpg123app.h"
|
||||
#include <errno.h>
|
||||
#include "debug.h"
|
||||
|
||||
#ifdef FLOATOUT
|
||||
#define WAVE_FORMAT 3
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <sys/shm.h>
|
||||
#endif
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
#if defined (HAVE_MMAP) && defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
|
||||
#define MAP_ANON MAP_ANONYMOUS
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user