Add mpd-indent.sh

Add a few new options for indent to try to make
things a bit cleaner

git-svn-id: https://svn.musicpd.org/mpd/trunk@4411 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Avuton Olrich
2006-07-20 18:53:56 +00:00
parent 29a25b9933
commit 00e67be7c9
25 changed files with 59 additions and 56 deletions

View File

@@ -208,4 +208,4 @@ void flac_error_common_cb(const char *plugin,
}
}
#endif /* HAVE_FLAC || HAVE_OGGFLAC */
#endif /* HAVE_FLAC || HAVE_OGGFLAC */

View File

@@ -73,6 +73,6 @@ static inline int flacSendChunk(FlacData * data)
return 0;
}
#endif /* HAVE_FLAC || HAVE_OGGFLAC */
#endif /* HAVE_FLAC || HAVE_OGGFLAC */
#endif /* _FLAC_COMMON_H */
#endif /* _FLAC_COMMON_H */

View File

@@ -70,4 +70,4 @@ ogg_stream_type ogg_stream_type_detect(InputStream * inStream)
return VORBIS;
}
#endif /* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */
#endif /* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */

View File

@@ -30,6 +30,6 @@ typedef enum _ogg_stream_type { VORBIS, FLAC } ogg_stream_type;
ogg_stream_type ogg_stream_type_detect(InputStream * inStream);
#endif /* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */
#endif /* defined(HAVE_OGGFLAC || defined(HAVE_OGGVORBIS) */
#endif /* _OGG_COMMON_H */
#endif /* _OGG_COMMON_H */

View File

@@ -482,4 +482,4 @@ InputPlugin aacPlugin = {
NULL,
};
#endif /* HAVE_FAAD */
#endif /* HAVE_FAAD */

View File

@@ -194,4 +194,4 @@ InputPlugin audiofilePlugin = {
NULL
};
#endif /* HAVE_AUDIOFILE */
#endif /* HAVE_AUDIOFILE */

View File

@@ -454,7 +454,7 @@ InputPlugin flacPlugin = {
flac_mime_types
};
#else /* !HAVE_FLAC */
#else /* !HAVE_FLAC */
InputPlugin flacPlugin = {
NULL,
@@ -469,4 +469,4 @@ InputPlugin flacPlugin = {
NULL,
};
#endif /* HAVE_FLAC */
#endif /* HAVE_FLAC */

View File

@@ -298,4 +298,4 @@ InputPlugin modPlugin = {
NULL
};
#endif /* HAVE_AUDIOFILE */
#endif /* HAVE_AUDIOFILE */

View File

@@ -225,12 +225,10 @@ static ReplayGainInfo *parseId3ReplayGainInfo(struct id3_tag *tag)
if (frame->nfields < 3)
continue;
key =
(char *)
key = (char *)
id3_ucs4_latin1duplicate(id3_field_getstring
(&frame->fields[1]));
value =
(char *)
value = (char *)
id3_ucs4_latin1duplicate(id3_field_getstring
(&frame->fields[2]));
@@ -440,11 +438,11 @@ enum xing_magic {
};
struct xing {
long flags; /* valid fields (see below) */
long flags; /* valid fields (see below) */
unsigned long frames; /* total number of frames */
unsigned long bytes; /* total number of bytes */
unsigned char toc[100]; /* 100-point seek table */
long scale; /* VBR quality */
long scale; /* VBR quality */
enum xing_magic magic; /* header magic */
};

View File

@@ -468,4 +468,4 @@ InputPlugin mp4Plugin = {
NULL
};
#endif /* HAVE_FAAD */
#endif /* HAVE_FAAD */

View File

@@ -251,8 +251,8 @@ static void of_metadata_decode_cb(const OggFLAC__SeekableStreamDecoder * dec,
}
static OggFLAC__SeekableStreamDecoder
*full_decoder_init_and_read_metadata(FlacData * data,
unsigned int metadata_only)
* full_decoder_init_and_read_metadata(FlacData * data,
unsigned int metadata_only)
{
OggFLAC__SeekableStreamDecoder *decoder = NULL;
unsigned int s = 1;
@@ -416,7 +416,7 @@ InputPlugin oggflacPlugin = {
oggflac_mime_types
};
#else /* !HAVE_FLAC */
#else /* !HAVE_FLAC */
InputPlugin oggflacPlugin = {
NULL,
@@ -431,4 +431,4 @@ InputPlugin oggflacPlugin = {
NULL,
};
#endif /* HAVE_OGGFLAC */
#endif /* HAVE_OGGFLAC */

View File

@@ -50,7 +50,7 @@
#define ov_time_total(VF, I) ((double)ov_time_total(VF, I)/1000)
#define ov_time_tell(VF) ((double)ov_time_tell(VF)/1000)
#define ov_time_seek_page(VF, S) (ov_time_seek_page(VF, (S)*1000))
#endif /* HAVE_TREMOR */
#endif /* HAVE_TREMOR */
#include <errno.h>
@@ -424,7 +424,7 @@ InputPlugin oggvorbisPlugin = {
oggvorbis_MimeTypes
};
#else /* !HAVE_OGGVORBIS */
#else /* !HAVE_OGGVORBIS */
InputPlugin oggvorbisPlugin = {
NULL,
@@ -439,4 +439,4 @@ InputPlugin oggvorbisPlugin = {
NULL,
};
#endif /* HAVE_OGGVORBIS */
#endif /* HAVE_OGGVORBIS */