Skip to content

Commit 6e08ad3

Browse files
authored
Merge pull request #2499 from gforney/master
jpeg source: add debugging comments to jpeg and gd source:
2 parents b946130 + 97db362 commit 6e08ad3

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Source/gd-2.3.3/gd_jpeg.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,17 @@
4848
#endif
4949

5050
/* 1.8.1: remove dependency on jinclude.h */
51+
//#pragma pack(push, 8)
5152
#include "jpeglib.h"
53+
//#pragma pack(pop)
5254
#include "jerror.h"
5355

56+
57+
//#pragma message ("sizeof(jpeg_compress_struct) = " STRINGIFY(sizeof(struct jpeg_compress_struct)))
58+
//#pragma message ("sizeof(jpeg_error_mgr) = " STRINGIFY(sizeof(struct jpeg_error_mgr)))
59+
60+
//static_assert(sizeof(struct jpeg_compress_struct) == 584, "Check jpeg_compress_struct size");
61+
5462
static const char *const GD_JPEG_VERSION = "1.0";
5563

5664
typedef struct _jmpbuf_wrapper {

Source/jpeg-9b/jcinit.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
#include "jinclude.h"
2121
#include "jpeglib.h"
2222

23+
//#define STRINGIFY_HELPER(x) #x
24+
//#define STRINGIFY(x) STRINGIFY_HELPER(x)
25+
26+
//#pragma message ("sizeof(jpeg_compress_struct) = " STRINGIFY(sizeof(struct jpeg_compress_struct)))
27+
//#pragma message ("sizeof(jpeg_error_mgr) = " STRINGIFY(sizeof(struct jpeg_error_mgr)))
28+
29+
30+
//static_assert(sizeof(struct jpeg_compress_struct) == 584, "Check jpeg_compress_struct size");
2331

2432
/*
2533
* Master selection of compression modules.

0 commit comments

Comments
 (0)