mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[devel] Revised PNG_EXPORT() macro and added PNG_EXPORTA() macro, with the
objective of simplifying and improving the cosmetic appearance of png.h.
This commit is contained in:
@@ -9,9 +9,11 @@
|
||||
* and license in png.h
|
||||
*/
|
||||
|
||||
#define PNG_EXPORT(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC- name @ordinal-PNG_DEFN_END
|
||||
#define PNG_REMOVED(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORT(ordinal, type, name, args)\
|
||||
PNG_DEFN_MAGIC- name @ordinal-PNG_DEFN_END
|
||||
#define PNG_REMOVED(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC-; name @ordinal-PNG_DEFN_END
|
||||
#define PNG_EXPORT_LAST_ORDINAL(ordinal)\
|
||||
PNG_DEFN_MAGIC-; @ordinal-PNG_DEFN_END
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
* and license in png.h
|
||||
*/
|
||||
|
||||
#define PNG_EXPORT(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC-SYMBOL_PREFIX @@@ name-PNG_DEFN_END
|
||||
#define PNG_EXPORT(ordinal, type, name, args)\
|
||||
PNG_DEFN_MAGIC-SYMBOL_PREFIX @@@ name-PNG_DEFN_END
|
||||
|
||||
#include "../png.h"
|
||||
|
||||
@@ -16,9 +16,11 @@
|
||||
* .dfa file too.
|
||||
*/
|
||||
|
||||
#define PNG_EXPORT(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC-name @ordinal-PNG_DEFN_END
|
||||
#define PNG_REMOVED(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORT(ordinal, type, name, args)\
|
||||
PNG_DEFN_MAGIC-name @ordinal-PNG_DEFN_END
|
||||
#define PNG_REMOVED(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC-; name @ordinal-PNG_DEFN_END
|
||||
#define PNG_EXPORT_LAST_ORDINAL(ordinal)\
|
||||
PNG_DEFN_MAGIC-; @ordinal-PNG_DEFN_END
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
* substitution within the name, regular C ## joins the pp-tokens,
|
||||
* not their final values.
|
||||
*/
|
||||
#define PNG_EXPORT(type, name, args, attributes, ordinal)\
|
||||
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
|
||||
PNG_DEFN_MAGIC- SYMBOL_PREFIX @@@ name;-PNG_DEFN_END
|
||||
#define PNG_EXPORT(ordinal, type, name, args)\
|
||||
PNG_DEFN_MAGIC- SYMBOL_PREFIX @@@ name;-PNG_DEFN_END
|
||||
|
||||
#define TRAILER PNG_DEFN_MAGIC-local: *; };-PNG_DEFN_END
|
||||
|
||||
Reference in New Issue
Block a user