mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-19 02:47:06 +00:00
libzint.so: suppress exporting INTERNAL functions to the shared library; ZINT_TEST
This commit is contained in:
@@ -43,11 +43,11 @@
|
||||
|
||||
#define SSET "0123456789ABCDEF"
|
||||
|
||||
extern int ps_plot(struct zint_symbol *symbol);
|
||||
extern int svg_plot(struct zint_symbol *symbol);
|
||||
extern int emf_plot(struct zint_symbol *symbol);
|
||||
INTERNAL int ps_plot(struct zint_symbol *symbol);
|
||||
INTERNAL int svg_plot(struct zint_symbol *symbol);
|
||||
INTERNAL int emf_plot(struct zint_symbol *symbol);
|
||||
|
||||
struct zint_vector_rect *vector_plot_create_rect(float x, float y, float width, float height) {
|
||||
static struct zint_vector_rect *vector_plot_create_rect(float x, float y, float width, float height) {
|
||||
struct zint_vector_rect *rect;
|
||||
|
||||
rect = (struct zint_vector_rect*) malloc(sizeof (struct zint_vector_rect));
|
||||
@@ -63,7 +63,7 @@ struct zint_vector_rect *vector_plot_create_rect(float x, float y, float width,
|
||||
return rect;
|
||||
}
|
||||
|
||||
int vector_plot_add_rect(struct zint_symbol *symbol, struct zint_vector_rect *rect, struct zint_vector_rect **last_rect) {
|
||||
static int vector_plot_add_rect(struct zint_symbol *symbol, struct zint_vector_rect *rect, struct zint_vector_rect **last_rect) {
|
||||
if (!rect) return ZINT_ERROR_MEMORY;
|
||||
if (*last_rect)
|
||||
(*last_rect)->next = rect;
|
||||
@@ -74,7 +74,7 @@ int vector_plot_add_rect(struct zint_symbol *symbol, struct zint_vector_rect *re
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct zint_vector_hexagon *vector_plot_create_hexagon(float x, float y, float diameter) {
|
||||
static struct zint_vector_hexagon *vector_plot_create_hexagon(float x, float y, float diameter) {
|
||||
struct zint_vector_hexagon *hexagon;
|
||||
|
||||
hexagon = (struct zint_vector_hexagon*) malloc(sizeof (struct zint_vector_hexagon));
|
||||
@@ -87,7 +87,7 @@ struct zint_vector_hexagon *vector_plot_create_hexagon(float x, float y, float d
|
||||
return hexagon;
|
||||
}
|
||||
|
||||
int vector_plot_add_hexagon(struct zint_symbol *symbol, struct zint_vector_hexagon *hexagon, struct zint_vector_hexagon **last_hexagon) {
|
||||
static int vector_plot_add_hexagon(struct zint_symbol *symbol, struct zint_vector_hexagon *hexagon, struct zint_vector_hexagon **last_hexagon) {
|
||||
if (!hexagon) return ZINT_ERROR_MEMORY;
|
||||
if (*last_hexagon)
|
||||
(*last_hexagon)->next = hexagon;
|
||||
@@ -98,7 +98,7 @@ int vector_plot_add_hexagon(struct zint_symbol *symbol, struct zint_vector_hexag
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct zint_vector_circle *vector_plot_create_circle(float x, float y, float diameter, int colour) {
|
||||
static struct zint_vector_circle *vector_plot_create_circle(float x, float y, float diameter, int colour) {
|
||||
struct zint_vector_circle *circle;
|
||||
|
||||
circle = (struct zint_vector_circle *) malloc(sizeof (struct zint_vector_circle));
|
||||
@@ -112,7 +112,7 @@ struct zint_vector_circle *vector_plot_create_circle(float x, float y, float dia
|
||||
return circle;
|
||||
}
|
||||
|
||||
int vector_plot_add_circle(struct zint_symbol *symbol, struct zint_vector_circle *circle, struct zint_vector_circle **last_circle) {
|
||||
static int vector_plot_add_circle(struct zint_symbol *symbol, struct zint_vector_circle *circle, struct zint_vector_circle **last_circle) {
|
||||
if (!circle) return ZINT_ERROR_MEMORY;
|
||||
if (*last_circle)
|
||||
(*last_circle)->next = circle;
|
||||
@@ -123,7 +123,7 @@ int vector_plot_add_circle(struct zint_symbol *symbol, struct zint_vector_circle
|
||||
return 1;
|
||||
}
|
||||
|
||||
int vector_plot_add_string(struct zint_symbol *symbol,
|
||||
static int vector_plot_add_string(struct zint_symbol *symbol,
|
||||
unsigned char *text, float x, float y, float fsize, float width,
|
||||
struct zint_vector_string **last_string) {
|
||||
struct zint_vector_string *string;
|
||||
@@ -147,7 +147,7 @@ int vector_plot_add_string(struct zint_symbol *symbol,
|
||||
return 1;
|
||||
}
|
||||
|
||||
void vector_free(struct zint_symbol *symbol) {
|
||||
INTERNAL void vector_free(struct zint_symbol *symbol) {
|
||||
if (symbol->vector != NULL) {
|
||||
struct zint_vector_rect *rect;
|
||||
struct zint_vector_hexagon *hex;
|
||||
@@ -193,7 +193,7 @@ void vector_free(struct zint_symbol *symbol) {
|
||||
}
|
||||
}
|
||||
|
||||
void vector_scale(struct zint_symbol *symbol) {
|
||||
static void vector_scale(struct zint_symbol *symbol) {
|
||||
struct zint_vector_rect *rect;
|
||||
struct zint_vector_hexagon *hex;
|
||||
struct zint_vector_circle *circle;
|
||||
@@ -239,7 +239,7 @@ void vector_scale(struct zint_symbol *symbol) {
|
||||
return;
|
||||
}
|
||||
|
||||
void vector_reduce_rectangles(struct zint_symbol *symbol) {
|
||||
static void vector_reduce_rectangles(struct zint_symbol *symbol) {
|
||||
// Looks for vertically aligned rectangles and merges them together
|
||||
struct zint_vector_rect *rect, *target, *prev;
|
||||
|
||||
@@ -266,7 +266,7 @@ void vector_reduce_rectangles(struct zint_symbol *symbol) {
|
||||
return;
|
||||
}
|
||||
|
||||
int plot_vector(struct zint_symbol *symbol, int rotate_angle, int file_type) {
|
||||
INTERNAL int plot_vector(struct zint_symbol *symbol, int rotate_angle, int file_type) {
|
||||
int error_number;
|
||||
struct zint_vector *vector;
|
||||
struct zint_vector_rect *rectangle, *rect, *last_rectangle = NULL;
|
||||
|
||||
Reference in New Issue
Block a user