# HG changeset patch # User Volker Grabsch # Date 1333015858 -7200 # Node ID 8474fcb3e1b5c6132fd8d6b0c3e491dffd876899 # Parent 8a6c466753e24364bc826d12a3b30b42f800c616 Fix line ending style (DOS -> Unix) for some test programs diff -r 8a6c466753e2 -r 8474fcb3e1b5 src/gtkglextmm-test.cpp --- a/src/gtkglextmm-test.cpp Thu Mar 29 12:01:39 2012 +0200 +++ b/src/gtkglextmm-test.cpp Thu Mar 29 12:10:58 2012 +0200 @@ -1,15 +1,15 @@ -/* - * This file is part of MXE. - * See doc/index.html for further information. - */ - -#include -#include - -int main(int argc, char *argv[]) -{ - Gtk::Main g(argc, argv); - Gtk::GL::init(argc, argv); - g.run(); - return 0; -} +/* + * This file is part of MXE. + * See doc/index.html for further information. + */ + +#include +#include + +int main(int argc, char *argv[]) +{ + Gtk::Main g(argc, argv); + Gtk::GL::init(argc, argv); + g.run(); + return 0; +} diff -r 8a6c466753e2 -r 8474fcb3e1b5 src/sdl_sound-test.c --- a/src/sdl_sound-test.c Thu Mar 29 12:01:39 2012 +0200 +++ b/src/sdl_sound-test.c Thu Mar 29 12:10:58 2012 +0200 @@ -1,54 +1,54 @@ -/* - * This file is part of MXE. - * See doc/index.html for further information. - * - * This is a simple test program for SDL_sound that tries to - * decode the file specified as the only command-line argument. - * - * This file is in the Public Domain. - */ - -#include -#include - -int main(int argc, char *argv[]) -{ - if (argc != 2) { - fprintf(stderr, "usage: %s \n", argv[0]); - return 1; - } - - if (SDL_Init(SDL_INIT_AUDIO) != 0) { - fprintf(stderr, "Error: %s\n", SDL_GetError()); - return 1; - } - - if (Sound_Init() == 0) { - fprintf(stderr, "Error: %s\n", Sound_GetError()); - return 1; - } - - SDL_RWops* rw = SDL_RWFromFile(argv[1], "r"); - if (rw == NULL) { - fprintf(stderr, "Error: %s\n", SDL_GetError()); - return 1; - } - - Sound_AudioInfo wantedFormat; - wantedFormat.channels = 2; - wantedFormat.rate = 44100; - wantedFormat.format = AUDIO_S16LSB; - - Sound_Sample* sample = Sound_NewSample(rw, 0, &wantedFormat, 8192); - if (sample == 0) { - fprintf(stderr, "Error: %s\n", Sound_GetError()); - return 1; - } - - Sound_DecodeAll(sample); - printf("Format: %s\n", sample->decoder->description); - printf("Decoded %d bytes of data.\n", sample->buffer_size); - Sound_FreeSample(sample); - - return 0; -} +/* + * This file is part of MXE. + * See doc/index.html for further information. + * + * This is a simple test program for SDL_sound that tries to + * decode the file specified as the only command-line argument. + * + * This file is in the Public Domain. + */ + +#include +#include + +int main(int argc, char *argv[]) +{ + if (argc != 2) { + fprintf(stderr, "usage: %s \n", argv[0]); + return 1; + } + + if (SDL_Init(SDL_INIT_AUDIO) != 0) { + fprintf(stderr, "Error: %s\n", SDL_GetError()); + return 1; + } + + if (Sound_Init() == 0) { + fprintf(stderr, "Error: %s\n", Sound_GetError()); + return 1; + } + + SDL_RWops* rw = SDL_RWFromFile(argv[1], "r"); + if (rw == NULL) { + fprintf(stderr, "Error: %s\n", SDL_GetError()); + return 1; + } + + Sound_AudioInfo wantedFormat; + wantedFormat.channels = 2; + wantedFormat.rate = 44100; + wantedFormat.format = AUDIO_S16LSB; + + Sound_Sample* sample = Sound_NewSample(rw, 0, &wantedFormat, 8192); + if (sample == 0) { + fprintf(stderr, "Error: %s\n", Sound_GetError()); + return 1; + } + + Sound_DecodeAll(sample); + printf("Format: %s\n", sample->decoder->description); + printf("Decoded %d bytes of data.\n", sample->buffer_size); + Sound_FreeSample(sample); + + return 0; +}