include tweaks.

master
Ozkan Sezer 4 years ago committed by Ozkan Sezer
parent 7241b3b3e3
commit 39d51aff6a
  1. 7
      src/commands.c
  2. 3
      src/common.h
  3. 1
      src/delay.c
  4. 2
      src/info.c
  5. 5
      src/main.c
  6. 2
      src/options.c
  7. 2
      src/read_config.c
  8. 2
      src/sound.h
  9. 3
      src/sound_beos.cpp
  10. 3
      src/terminal.c
  11. 5
      src/util.c

@ -6,7 +6,6 @@
* file for more information.
*/
#include <xmp.h>
#include "common.h"
#if defined(_WIN32) || defined(__OS2__) || defined(__DJGPP__) || defined(_DOS)
@ -86,10 +85,10 @@ static int read_key(void)
}
}
#elif defined(HAVE_TERMIOS_H)
#ifdef __CYGWIN__
#ifdef __CYGWIN__
if (stdin_ready_for_reading())
#endif
ret = read(0, &key, 1);
#endif
ret = read(0, &key, 1);
#else
ret = 0;
#endif

@ -19,6 +19,9 @@
#define NUM_MODES 13
#define MAX_DRV_PARM 20
#include <xmp.h>
struct player_mode {
const char *name;
const char *desc;

@ -6,7 +6,6 @@
* file for more information.
*/
#include <xmp.h>
#include "common.h"
#if defined(_WIN32)

@ -9,7 +9,7 @@
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <xmp.h>
#include "common.h"
static int max_channels = -1;

@ -6,8 +6,8 @@
* file for more information.
*/
#include <xmp.h>
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -36,7 +36,8 @@
#else
#include "getopt_long.h"
#endif
#include "errno.h"
#include <errno.h>
#include "sound.h"
#include "xmp_version.h"

@ -23,8 +23,6 @@
#include "getopt_long.h"
#endif
#include <xmp.h>
#include "common.h"
#include "sound.h"
#include "list.h"

@ -10,7 +10,7 @@
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <xmp.h>
#include "common.h"
#if !defined(SYSCONFDIR)

@ -1,8 +1,8 @@
#ifndef XMP_SOUND_H
#define XMP_SOUND_H
#include <xmp.h>
#include <stdio.h>
#include "common.h"
#include "list.h"

@ -15,7 +15,6 @@
extern "C" {
#include <string.h>
#include <stdlib.h>
#include "xmp.h"
#include "sound.h"
}
@ -173,7 +172,7 @@ static void play(void *b, int i)
snooze(100000);
while (i) {
if ((j = write_buffer((uint8 *)b, i)) > 0) {
if ((j = write_buffer((uint8 *)b, i)) > 0) {
i -= j;
b = (uint8 *)b + j;
} else {

@ -6,9 +6,8 @@
* file for more information.
*/
#include <stdio.h>
#include <xmp.h>
#include "common.h"
#include <stdio.h>
#if defined(XMP_AMIGA)
#ifdef __amigaos4__

@ -9,7 +9,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <xmp.h>
#include "common.h"
char *xmp_strdup(const char *in)
@ -23,7 +23,7 @@ char *xmp_strdup(const char *in)
}
/* locale-insensitive tolower and strcasecmp : */
/* locale-insensitive tolower and strcasecmp: */
static inline int xmp_tolower(int c)
{
@ -49,4 +49,3 @@ int xmp_strcasecmp(const char *s1, const char *s2)
return (int)(c1 - c2);
}

Loading…
Cancel
Save