Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
cristy committed Nov 28, 2013
1 parent be2e0e0 commit 6398ec7
Show file tree
Hide file tree
Showing 79 changed files with 274 additions and 231 deletions.
1 change: 1 addition & 0 deletions MagickCore/MagickCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ extern "C" {
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <time.h>

#if defined(WIN32) || defined(WIN64)
# define MAGICKCORE_WINDOWS_SUPPORT
Expand Down
6 changes: 4 additions & 2 deletions MagickCore/animate-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
#ifndef _MAGICKCORE_ANIMATE_PRIVATE_H
#define _MAGICKCORE_ANIMATE_PRIVATE_H

#if defined(MAGICKCORE_X11_DELEGATE)
#include "MagickCore/xwindow-private.h"
#endif

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#if defined(MAGICKCORE_X11_DELEGATE)
#include "MagickCore/xwindow-private.h"

extern MagickExport Image
*XAnimateImages(Display *,XResourceInfo *,char **,const int,Image *,
ExceptionInfo *);
Expand Down
4 changes: 2 additions & 2 deletions MagickCore/annotate.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_ANNOTATE_H
#define _MAGICKCORE_ANNOTATE_H

#include "MagickCore/draw.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/draw.h"

extern MagickExport MagickBooleanType
AnnotateImage(Image *,const DrawInfo *,ExceptionInfo *),
GetMultilineTypeMetrics(Image *,const DrawInfo *,TypeMetric *,
Expand Down
6 changes: 3 additions & 3 deletions MagickCore/attribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#ifndef _MAGICKCORE_ATTRIBUTE_H
#define _MAGICKCORE_ATTRIBUTE_H

#include "MagickCore/image.h"
#include "MagickCore/exception.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"
#include "MagickCore/exception.h"

extern MagickExport ImageType
GetImageType(const Image *,ExceptionInfo *);

Expand Down
4 changes: 2 additions & 2 deletions MagickCore/blob-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_BLOB_PRIVATE_H
#define _MAGICKCORE_BLOB_PRIVATE_H

#include "MagickCore/nt-feature.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/nt-feature.h"

#define MagickMinBlobExtent 32767L
#if defined(MAGICKCORE_HAVE_FSEEKO)
# define fseek fseeko
Expand Down
6 changes: 3 additions & 3 deletions MagickCore/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#ifndef _MAGICKCORE_BLOB_H
#define _MAGICKCORE_BLOB_H

#include "MagickCore/image.h"
#include "MagickCore/stream.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"
#include "MagickCore/stream.h"

#define MagickMaxBufferExtent (32*8192-2)

typedef enum
Expand Down
9 changes: 4 additions & 5 deletions MagickCore/cache-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@
#ifndef _MAGICKCORE_CACHE_PRIVATE_H
#define _MAGICKCORE_CACHE_PRIVATE_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include <time.h>
#include "MagickCore/cache.h"
#include "MagickCore/distribute-cache.h"
#include "MagickCore/pixel.h"
#include "MagickCore/random_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/semaphore.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

typedef void
*Cache;

Expand Down
4 changes: 2 additions & 2 deletions MagickCore/cache-view.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_CACHE_VIEW_H
#define _MAGICKCORE_CACHE_VIEW_H

#include "MagickCore/pixel.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/pixel.h"

typedef enum
{
UndefinedVirtualPixelMethod,
Expand Down
4 changes: 2 additions & 2 deletions MagickCore/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_CACHE_H
#define _MAGICKCORE_CACHE_H

#include "MagickCore/blob.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/blob.h"

typedef enum
{
UndefinedCache,
Expand Down
40 changes: 40 additions & 0 deletions MagickCore/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ static MagickBooleanType ChannelImage(Image *destination_image,
return(status);
}

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

MagickExport Image *ChannelFxImage(const Image *image,const char *expression,
ExceptionInfo *exception)
{
Expand Down Expand Up @@ -441,6 +445,10 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression,
}
return(GetFirstImageInList(destination_image));
}

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -472,6 +480,10 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression,
% o exception: return any errors or warnings in this structure.
%
*/
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

MagickExport Image *CombineImages(const Image *image,
const ColorspaceType colorspace,ExceptionInfo *exception)
{
Expand Down Expand Up @@ -594,6 +606,10 @@ MagickExport Image *CombineImages(const Image *image,
combine_image=DestroyImage(combine_image);
return(combine_image);
}

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -656,6 +672,10 @@ MagickExport MagickBooleanType GetImageAlphaChannel(const Image *image)
% o exception: return any errors or warnings in this structure.
%
*/
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

MagickExport Image *SeparateImage(const Image *image,
const ChannelType channel_type,ExceptionInfo *exception)
{
Expand Down Expand Up @@ -776,6 +796,10 @@ MagickExport Image *SeparateImage(const Image *image,
separate_image=DestroyImage(separate_image);
return(separate_image);
}

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -802,6 +826,10 @@ MagickExport Image *SeparateImage(const Image *image,
% o exception: return any errors or warnings in this structure.
%
*/
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

MagickExport Image *SeparateImages(const Image *image,ExceptionInfo *exception)
{
Image
Expand Down Expand Up @@ -831,6 +859,10 @@ MagickExport Image *SeparateImages(const Image *image,ExceptionInfo *exception)
images=SeparateImage(image,UndefinedChannel,exception);
return(images);
}

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -926,6 +958,10 @@ static inline void FlattenPixelInfo(const Image *image,const PixelInfo *p,
}
}

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
const AlphaChannelOption alpha_type,ExceptionInfo *exception)
{
Expand Down Expand Up @@ -1095,3 +1131,7 @@ MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
return(status);
return(SyncImagePixelCache(image,exception));
}

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
4 changes: 2 additions & 2 deletions MagickCore/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_CHANNEL_H
#define _MAGICKCORE_CHANNEL_H

#include <MagickCore/image.h>

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include <MagickCore/image.h>

extern MagickExport Image
*ChannelFxImage(const Image *,const char *,ExceptionInfo *),
*CombineImages(const Image *,const ColorspaceType,ExceptionInfo *),
Expand Down
4 changes: 2 additions & 2 deletions MagickCore/color-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_COLOR_PRIVATE_H
#define _MAGICKCORE_COLOR_PRIVATE_H

#include "MagickCore/image.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"

extern MagickPrivate MagickBooleanType
ColorComponentGenesis(void);

Expand Down
6 changes: 3 additions & 3 deletions MagickCore/color.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
#ifndef _MAGICKCORE_COLOR_H
#define _MAGICKCORE_COLOR_H

#include "MagickCore/pixel.h"
#include "MagickCore/exception.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/pixel.h"
#include "MagickCore/exception.h"

typedef enum
{
UndefinedCompliance,
Expand Down
8 changes: 4 additions & 4 deletions MagickCore/colormap-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
#ifndef _MAGICKCORE_COLORMAP_PRIVATE_H
#define _MAGICKCORE_COLORMAP_PRIVATE_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"
#include "MagickCore/color.h"
#include "MagickCore/exception-private.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

static inline Quantum ConstrainColormapIndex(Image *image,const size_t index,
ExceptionInfo *exception)
{
Expand Down
8 changes: 4 additions & 4 deletions MagickCore/colorspace-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
#ifndef _MAGICKCORE_COLORSPACE_PRIVATE_H
#define _MAGICKCORE_COLORSPACE_PRIVATE_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/pixel.h"
#include "MagickCore/pixel-accessor.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

static inline void ConvertRGBToCMYK(PixelInfo *pixel)
{
MagickRealType
Expand Down
4 changes: 2 additions & 2 deletions MagickCore/compare.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_COMPARE_H
#define _MAGICKCORE_COMPARE_H

#include "MagickCore/image.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/image.h"

typedef enum
{
UndefinedErrorMetric,
Expand Down
14 changes: 7 additions & 7 deletions MagickCore/composite-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
#ifndef _MAGICKCORE_COMPOSITE_PRIVATE_H
#define _MAGICKCORE_COMPOSITE_PRIVATE_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

/*
ImageMagick Alpha Composite Inline Methods (special export)
*/

#include "MagickCore/color.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/pixel-private.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

/*
ImageMagick Alpha Composite Inline Methods (special export)
*/
static inline double MagickOver_(const double p,
const double alpha,const double q,const double beta)
{
Expand Down
4 changes: 2 additions & 2 deletions MagickCore/configure.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef _MAGICKCORE_CONFIGURE_H
#define _MAGICKCORE_CONFIGURE_H

#include "MagickCore/hashmap.h"

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

#include "MagickCore/hashmap.h"

typedef struct _ConfigureInfo
{
char
Expand Down
Loading

0 comments on commit 6398ec7

Please sign in to comment.