making "fimg_type_is_valid" public

Цей коміт міститься в:
tTh
2020-02-19 22:36:58 +01:00
джерело 5a66118f8b
коміт a0a563dfa1
2 змінених файлів з 4 додано та 2 видалено
+3 -1
Переглянути файл
@@ -2,7 +2,7 @@
* floatimg.h * floatimg.h
*/ */
#define FIMG_VERSION 92 #define FIMG_VERSION 93
/* /*
* in memory descriptor * in memory descriptor
@@ -53,6 +53,8 @@ int fimg_create(FloatImg *fimg, int w, int h, int t);
int fimg_destroy(FloatImg *fimg); int fimg_destroy(FloatImg *fimg);
int fimg_clone(FloatImg *fimg, FloatImg *newpic, int flags); int fimg_clone(FloatImg *fimg, FloatImg *newpic, int flags);
int fimg_copy_data(FloatImg *from, FloatImg *to); int fimg_copy_data(FloatImg *from, FloatImg *to);
int fimg_type_is_valid(int type);
int fimg_print_version(int k); int fimg_print_version(int k);
void fimg_printhead(FloatImg *h); void fimg_printhead(FloatImg *h);
+1 -1
Переглянути файл
@@ -14,7 +14,7 @@
extern int verbosity; /* must be declared around main() */ extern int verbosity; /* must be declared around main() */
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
static int fimg_type_is_valid(int type) int fimg_type_is_valid(int type)
{ {
switch (type) { switch (type) {
case FIMG_TYPE_GRAY: case FIMG_TYPE_GRAY: