Browse Source

use <stdint.h> everywhere

master
tth 4 months ago
parent
commit
72e162e4cf
52 changed files with 67 additions and 8 deletions
  1. +1
    -0
      Fonderie/crapulator.c
  2. +1
    -0
      Fonderie/fifo.c
  3. +1
    -0
      Fonderie/filterstack.c
  4. +1
    -0
      Fonderie/fonderie.c
  5. +1
    -0
      Fonderie/glitches.c
  6. +1
    -0
      Fonderie/interpolator.c
  7. +1
    -0
      Fonderie/sfx.c
  8. +1
    -0
      Fonderie/singlepass.c
  9. +1
    -0
      Fonderie/t.c
  10. +1
    -0
      essai.c
  11. +4
    -4
      floatimg.h
  12. +1
    -0
      funcs/classif.c
  13. +1
    -0
      funcs/contour2x2.c
  14. +1
    -0
      funcs/displacement.c
  15. +2
    -0
      funcs/dithering.c
  16. +1
    -0
      funcs/exporter.c
  17. +4
    -0
      funcs/filtrage.c
  18. +1
    -0
      funcs/fimg-fits.c
  19. +1
    -0
      funcs/fimg-libpnm.c
  20. +1
    -0
      funcs/fimg-openexr.c
  21. +1
    -0
      funcs/fimg-png.c
  22. +1
    -1
      funcs/fimg-tiff.c
  23. +1
    -0
      funcs/geometry.c
  24. +1
    -0
      funcs/histogram.c
  25. +1
    -0
      funcs/hsv.c
  26. +1
    -0
      funcs/incrustator.c
  27. +1
    -0
      funcs/misc-plots.c
  28. +1
    -0
      funcs/qsortrgb.c
  29. +1
    -0
      funcs/t.c
  30. +1
    -0
      funcs/tests.c
  31. +7
    -1
      lib/contrast.c
  32. +1
    -0
      lib/fimg-2gray.c
  33. +1
    -0
      lib/fimg-compare.c
  34. +1
    -0
      lib/fimg-core.c
  35. +1
    -0
      lib/fimg-file.c
  36. +1
    -0
      lib/fimg-math.c
  37. +3
    -2
      lib/fimg-pnm.c
  38. +1
    -0
      lib/interpolate.c
  39. +1
    -0
      lib/operators.c
  40. +1
    -0
      tools/addpnm2fimg.c
  41. +1
    -0
      tools/cumulfimgs.c
  42. +1
    -0
      tools/fimg2fits.c
  43. +1
    -0
      tools/fimg2png.c
  44. +1
    -0
      tools/fimg2pnm.c
  45. +1
    -0
      tools/fimg2text.c
  46. +1
    -0
      tools/fimg2tiff.c
  47. +1
    -0
      tools/fimgfx.c
  48. +1
    -0
      tools/fimghalfsize.c
  49. +1
    -0
      tools/fimgops.c
  50. +1
    -0
      tools/fimgstats.c
  51. +1
    -0
      tools/mkfimg.c
  52. +1
    -0
      tools/png2fimg.c

+ 1
- 0
Fonderie/crapulator.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>


+ 1
- 0
Fonderie/fifo.c View File

@ -5,6 +5,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <malloc.h>


+ 1
- 0
Fonderie/filterstack.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>
#include <alloca.h>


+ 1
- 0
Fonderie/fonderie.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <glob.h>


+ 1
- 0
Fonderie/glitches.c View File

@ -7,6 +7,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>


+ 1
- 0
Fonderie/interpolator.c View File

@ -10,6 +10,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <glob.h>


+ 1
- 0
Fonderie/sfx.c View File

@ -5,6 +5,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <malloc.h>
#include <math.h>


+ 1
- 0
Fonderie/singlepass.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <glob.h>


+ 1
- 0
Fonderie/t.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <glob.h>


+ 1
- 0
essai.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <math.h>
#include <string.h>


+ 4
- 4
floatimg.h View File

@ -4,14 +4,14 @@
* http://la.buvette.org/photos/cumul
*/
#define FIMG_VERSION 150
#define FIMG_VERSION 151
/*
* in memory descriptor
*/
#define MAGIC_FIMG 0x00F11F00
typedef struct {
unsigned long magic;
uint32_t magic;
int width;
int height;
int type;
@ -31,7 +31,7 @@ typedef struct {
#define MAGIC_AREA51 0xA5EA0051
typedef struct {
unsigned long magic;
uint32_t magic;
int w, h;
int x, y;
int flags;
@ -57,7 +57,7 @@ typedef struct {
#define CONTRAST_POW2 2
#define CONTRAST_COS01 3
#define CONTRAST_COS010 4
#define CONTRAST_XPER 5 /* use with caution */
/*
* core module
*/


+ 1
- 0
funcs/classif.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#include "../floatimg.h"


+ 1
- 0
funcs/contour2x2.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>


+ 1
- 0
funcs/displacement.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>


+ 2
- 0
funcs/dithering.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
@ -21,6 +22,7 @@ for (y=0; y<psrc->height; y++) {
for (x=0; x<psrc->width; x++)
{
/* PLEASE DO SOMETHING HERE */
}
}


+ 1
- 0
funcs/exporter.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../floatimg.h"


+ 4
- 0
funcs/filtrage.c View File

@ -1,5 +1,9 @@
/*
* Floating filters are all WIP !
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <fcntl.h>
#include <float.h>


+ 1
- 0
funcs/fimg-fits.c View File

@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <fitsio.h>


+ 1
- 0
funcs/fimg-libpnm.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pam.h>


+ 1
- 0
funcs/fimg-openexr.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../floatimg.h"


+ 1
- 0
funcs/fimg-png.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pnglite.h>


+ 1
- 1
funcs/fimg-tiff.c View File

@ -5,7 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <tiffio.h>
#include "../floatimg.h"


+ 1
- 0
funcs/geometry.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "../floatimg.h"


+ 1
- 0
funcs/histogram.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "../floatimg.h"


+ 1
- 0
funcs/hsv.c View File

@ -10,6 +10,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "../floatimg.h"


+ 1
- 0
funcs/incrustator.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "../floatimg.h"


+ 1
- 0
funcs/misc-plots.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include "../floatimg.h"


+ 1
- 0
funcs/qsortrgb.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>


+ 1
- 0
funcs/t.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pam.h>


+ 1
- 0
funcs/tests.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <pam.h>


+ 7
- 1
lib/contrast.c View File

@ -3,11 +3,12 @@
* --------------------------------
*
* you can see some use in 'tools/fimgfx.c', so you can thing
* about the 'maxval' parameter. C'est touchy :)
* about the 'maxval' parameter. It was touchy :)
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
@ -25,6 +26,11 @@ if (!strcmp(str, "sqrt")) return CONTRAST_SQRT;
if (!strcmp(str, "pow2")) return CONTRAST_POW2;
if (!strcmp(str, "cos01")) return CONTRAST_COS01;
if (!strcmp(str, "cos010")) return CONTRAST_COS010;
if (!strcmp(str, "xper")) return CONTRAST_XPER;
#if DEBUG_LEVEL
fprintf(stderr, "%s: unknow contrast name '%s'\n", __func__, str);
#endif
return -1;
}


+ 1
- 0
lib/fimg-2gray.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "string.h"


+ 1
- 0
lib/fimg-compare.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "string.h"


+ 1
- 0
lib/fimg-core.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "string.h"


+ 1
- 0
lib/fimg-file.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>


+ 1
- 0
lib/fimg-math.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <float.h> /* for FLT_MAX */


+ 3
- 2
lib/fimg-pnm.c View File

@ -1,14 +1,15 @@
/*
* fimg-pnm.c
*
*
* crude version who make HUGE ascii files !
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include "string.h"
#include <string.h>
#include "../floatimg.h"


+ 1
- 0
lib/interpolate.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <math.h>


+ 1
- 0
lib/operators.c View File

@ -6,6 +6,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <math.h>


+ 1
- 0
tools/addpnm2fimg.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "../floatimg.h"


+ 1
- 0
tools/cumulfimgs.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimg2fits.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimg2png.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimg2pnm.c View File

@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimg2text.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>


+ 1
- 0
tools/fimg2tiff.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimgfx.c View File

@ -6,6 +6,7 @@
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>


+ 1
- 0
tools/fimghalfsize.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <unistd.h> /* pour getopt */
#include <stdint.h>
#include <stdlib.h>
#include <string.h>


+ 1
- 0
tools/fimgops.c View File

@ -5,6 +5,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include "../floatimg.h"


+ 1
- 0
tools/fimgstats.c View File

@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include "../floatimg.h"


+ 1
- 0
tools/mkfimg.c View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>


+ 1
- 0
tools/png2fimg.c View File

@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>


Loading…
Cancel
Save