From 10b2f53b85bb2a060a54350ddf5b8256d61e3f46 Mon Sep 17 00:00:00 2001 From: tth Date: Mon, 23 Dec 2019 18:01:10 +0100 Subject: [PATCH] oups... --- files/smpllist.c | 8 ++++---- files/smpllist.h | 2 ++ files/t.c | 5 +---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/files/smpllist.c b/files/smpllist.c index b37f408..7e0c79c 100644 --- a/files/smpllist.c +++ b/files/smpllist.c @@ -18,14 +18,14 @@ printf("%c %02X [%-20s] %s\n", sref->key, sref->flags, sref->text, sref->path); } /* --------------------------------------------------------------------- */ -void liste_des_samples(void) +void affiche_liste_des_samples(SampleRef samples[]) { int foo; for (foo=0; foo<26; foo++) { - printf("%2d %02x %-30s %s\n", foo, the_samples[foo].key, - the_samples[foo].text, - the_samples[foo].path); + printf("%2d %02x %-30s %s\n", foo, samples[foo].key, + samples[foo].text, + samples[foo].path); } } /* --------------------------------------------------------------------- */ diff --git a/files/smpllist.h b/files/smpllist.h index 37612d4..b8c7764 100644 --- a/files/smpllist.h +++ b/files/smpllist.h @@ -5,6 +5,8 @@ void affiche_un_sample(SampleRef *sref, int options); +void affiche_liste_des_samples(SampleRef samples[]); + int decode_la_ligne(char *line, SampleRef *sref); int lecture_liste_des_samples(char *fname, SampleRef *array); diff --git a/files/t.c b/files/t.c index daf4aba..7e1cccf 100644 --- a/files/t.c +++ b/files/t.c @@ -47,10 +47,7 @@ fprintf(stderr, "argc = %d, optind = %d\n", argc, optind); foo = lecture_liste_des_samples(listname, the_samples); fprintf(stderr,"retour lecture liste '%s' -> %d\n", listname, foo); -for (foo=0; foo<26; foo++) { - printf("%3d %02x %s\n", foo, the_samples[foo].key, - the_samples[foo].text); - } +affiche_liste_des_samples(the_samples); return 0; }