"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "imageutils/pngrecolor.c" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

pngrecolor.c  (littleutils-1.2.4.tar.lz):pngrecolor.c  (littleutils-1.2.5.tar.lz)
// pngrecolor.c - part of pngrecolor // pngrecolor.c - part of pngrecolor
// Copyright (C) 2010 by Jason Summers (from original pngrewrite.c) // Copyright (C) 2010 by Jason Summers (from original pngrewrite.c)
// Modifications (C) 2013-2020 by Brian Lindholm // Modifications (C) 2013-2021 by Brian Lindholm
// [1] Renamed from "pngrewrite" to "pngrecolor" at avoid confusion with // [1] Renamed from "pngrewrite" to "pngrecolor" at avoid confusion with
// original program. // original program.
// [2] Modified palette comparison routine to ensure a *unique* sorting. // [2] Modified palette comparison routine to ensure a *unique* sorting.
// [3] Added command-line options "-n" and "-q" for no-interlacing and quiet // [3] Added command-line options "-n" and "-q" for no-interlacing and quiet
// output. // output.
// These modifications may be used without restriction. // These modifications may be used without restriction.
#include <config.h>
#define PNGRW_PALSORT_BY_FREQUENCY #define PNGRW_PALSORT_BY_FREQUENCY
#if defined(_WIN32) && !defined(__GNUC__) && !defined(PNGRW_WINDOWS) #if defined(_WIN32) && !defined(__GNUC__) && !defined(PNGRW_WINDOWS)
# define PNGRW_WINDOWS # define PNGRW_WINDOWS
#endif #endif
#ifdef PNGRW_WINDOWS #ifdef PNGRW_WINDOWS
# include <fcntl.h>
# include <io.h>
# include <tchar.h> # include <tchar.h>
#endif #endif
#include <config.h> #ifdef HAVE_STDIO_H
# include <stdio.h>
#include <stdio.h> #endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#ifdef PNGRW_WINDOWS
# include <io.h>
# include <fcntl.h>
#endif
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
# define OPTEND -1 # define OPTEND -1
#else #else
# define OPTEND EOF # define OPTEND EOF
#endif #endif
#ifdef HAVE_GETOPT_H
# include <getopt.h>
#endif
#ifdef __MINGW32__ #ifdef __MINGW32__
extern int getopt (int argc, char * const *argv, const char *optstring); extern int getopt (int argc, char * const *argv, const char *optstring);
extern char *optarg; extern char *optarg;
extern int optind; extern int optind;
#endif #endif
#include "libpngrecolor.h" #include "libpngrecolor.h"
#ifndef PNGRW_WINDOWS #ifndef PNGRW_WINDOWS
 End of changes. 6 change blocks. 
12 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)