Skip to content

Commit

Permalink
fixes CI issues
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Bansal <[email protected]>
  • Loading branch information
NishantBansal2003 committed Jan 30, 2025
1 parent 4c82a53 commit 5558550
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions raster/r.category/local_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
#include <grass/parson.h>

enum OutputFormat { PLAIN, JSON };
enum ColorFormat { NONE, RGB, HEX, TRIPLET };
enum ColorOutput { NONE, RGB, HEX, TRIPLET };

/* cats.c */
int get_cats(const char *, const char *);
int next_cat(long *);

/* main.c */
void print_json(JSON_Value *);
int print_label(long, enum OutputFormat, JSON_Array *, enum ColorFormat,
int print_label(long, enum OutputFormat, JSON_Array *, enum ColorOutput,
struct Colors *);
int print_d_label(double, enum OutputFormat, JSON_Array *, enum ColorFormat,
int print_d_label(double, enum OutputFormat, JSON_Array *, enum ColorOutput,
struct Colors *);
int scan_cats(const char *, long *, long *);
int scan_vals(const char *, double *);
void scan_colors(long, struct Colors *, enum ColorFormat, char *);
void scan_d_colors(double, struct Colors *, enum ColorFormat, char *);
void get_color(enum ColorFormat, int, int, int, char *);
void scan_colors(long, struct Colors *, enum ColorOutput, char *);
void scan_d_colors(double, struct Colors *, enum ColorOutput, char *);
void get_color(enum ColorOutput, int, int, int, char *);

#endif /* __LOCAL_PROTO_H__ */
12 changes: 6 additions & 6 deletions raster/r.category/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(int argc, char *argv[])
struct GModule *module;

enum OutputFormat format;
enum ColorFormat color_format;
enum ColorOutput color_format;
JSON_Value *root_value;
JSON_Array *root_array;

Expand Down Expand Up @@ -393,7 +393,7 @@ void print_json(JSON_Value *root_value)
}

int print_label(long x, enum OutputFormat format, JSON_Array *root_array,
enum ColorFormat color_format, struct Colors *colors)
enum ColorOutput color_format, struct Colors *colors)
{
char *label, color[30];
JSON_Value *category_value;
Expand Down Expand Up @@ -427,7 +427,7 @@ int print_label(long x, enum OutputFormat format, JSON_Array *root_array,
}

int print_d_label(double x, enum OutputFormat format, JSON_Array *root_array,
enum ColorFormat color_format, struct Colors *colors)
enum ColorOutput color_format, struct Colors *colors)
{
char *label, tmp[40], color[30];
DCELL dtmp;
Expand Down Expand Up @@ -489,7 +489,7 @@ int scan_vals(const char *s, double *x)
return 0;
}

void get_color(enum ColorFormat color_format, int red, int grn, int blu,
void get_color(enum ColorOutput color_format, int red, int grn, int blu,
char *color)
{
switch (color_format) {
Expand All @@ -509,7 +509,7 @@ void get_color(enum ColorFormat color_format, int red, int grn, int blu,
}
}

void scan_colors(long x, struct Colors *colors, enum ColorFormat color_format,
void scan_colors(long x, struct Colors *colors, enum ColorOutput color_format,
char *color)
{
int red, grn, blu;
Expand All @@ -522,7 +522,7 @@ void scan_colors(long x, struct Colors *colors, enum ColorFormat color_format,
}

void scan_d_colors(double x, struct Colors *colors,
enum ColorFormat color_format, char *color)
enum ColorOutput color_format, char *color)
{
int red, grn, blu;

Expand Down

0 comments on commit 5558550

Please sign in to comment.