From f930c3b81bdf9c05152fb005562b3869f6e36f34 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Thu, 4 Jun 2020 20:41:25 +0300 Subject: [PATCH] Fix GCC10 compilation --- mpg321.c | 8 ++++++++ mpg321.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/mpg321.c b/mpg321.c index 19282bb..663882e 100644 --- a/mpg321.c +++ b/mpg321.c @@ -63,6 +63,14 @@ #include #include +output_frame *Output_Queue; +decoded_frames *Decoded_Frames; +int semarray; +int mad_decoder_position; +int output_buffer_position; +double real[FFT_BUFFER_SIZE]; +double imag[FFT_BUFFER_SIZE]; +int loop_remaining; int pflag = 0; int volume = 0; diff --git a/mpg321.h b/mpg321.h index 798bff0..235cf4a 100644 --- a/mpg321.h +++ b/mpg321.h @@ -116,7 +116,7 @@ extern char *playlist_file; extern int quit_now; extern char remote_input_buf[PATH_MAX + 5]; extern int file_change; -int loop_remaining; +extern int loop_remaining; extern int status; extern int scrobbler_time; @@ -233,8 +233,8 @@ RETSIGTYPE handle_sigchld(int sig); #define FFT_BUFFER_SIZE_LOG 9 #define FFT_BUFFER_SIZE (1 << FFT_BUFFER_SIZE_LOG) /* 512 */ /*Temporary data stores to perform FFT in */ -double real[FFT_BUFFER_SIZE]; -double imag[FFT_BUFFER_SIZE]; +extern double real[FFT_BUFFER_SIZE]; +extern double imag[FFT_BUFFER_SIZE]; typedef struct { double real[FFT_BUFFER_SIZE]; @@ -258,10 +258,10 @@ fft_state *fft_init(void); /* Output buffer process */ void frame_buffer_p(); /* Semaphore array */ -int semarray; +extern int semarray; /* Input/Output buffer position */ -int mad_decoder_position; -int output_buffer_position; +extern int mad_decoder_position; +extern int output_buffer_position; /* Output Frame including needed information */ typedef struct { unsigned char data[4*1152]; @@ -285,10 +285,10 @@ typedef struct { } decoded_frames; /* Output frame queue pointer */ -output_frame *Output_Queue; +extern output_frame *Output_Queue; /* Shared total decoded frames */ -decoded_frames *Decoded_Frames; +extern decoded_frames *Decoded_Frames; #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) /* */ -- 2.26.2 ref='/guix/log/tests/import-github.scm?id=bd6c377ca0e337aa26899b88f82539edb5aaedd0'>import-github.scm
AgeCommit message (Expand)Author
2022-12-26upstream-updater: Rename record field....The next commits will make the functions, which are currently importing the latest version of a package, change into importing the latest or a given version of the package (for those updaters supporting specifying a version). Thus the name ‘latest‘ is no longer appropriate. * guix/upstream.scm (upstream-updater) Rename field [latest] to [import]. (lookup-updater, package-latest-release) Adjust fieldname accordingly. * guix/gnu-maintenance.scm (%gnu-updater, %gnu-ftp-updater, %savannah-updater, %sourceforge-updater, %xorg-updater, %kernel.org-updater, %generic-html-updater), guix/import/cpan.scm (%cpan-updater), guix/import/cran.scm (%cran-updater, %bioconductor-updater), guix/import/crate.scm (%crate-updater), guix/import/egg.scm (%egg-updater), guix/import/elpa.scm (%elpa-updater), guix/import/gem.scm (%gem-updater), guix/import/git.scm (%generic-git-updater), guix/import/github.scm (%github-updater), guix/import/gnome.scm (%gnome-updater), guix/import/hackage.scm (%hackage-updater), guix/import/hexpm.scm (%hexpm-updater), guix/import/kde.scm (%kde-updater), guix/import/launchpad.scm (%launchpad-updater), guix/import/minetest.scm (%minetest-updater), guix/import/opam.scm (%opam-updater), guix/import/pypi.scm (%pypi-updater), guix/import/stackage.scm (%stackage-updater), tests/import-github.scm (found-sexp) tests/transformations.scm ("options->transformation, with-latest"): Adjust fieldname accordingly. Hartmut Goebel
2022-03-07tests: Adjust to (guix import github) changes....This is a followup to a8d3033da61958c53c44dd5db90672bfc4533ef9. * tests/import-github.scm (call-with-releases): Mock 'open-connection-for-uri'. Ludovic Courtès
2022-01-16import/github: Test it....* Makefile.am (SCM_TESTS): Register new tests. * guix/import/github.scm (%github-api): New variable. (fetch-releases-or-tags): Use the new variable. * tests/import-github.scm: New file with tests. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos