Skip to content

Commit

Permalink
Made private my_yyinput function static (#618)
Browse files Browse the repository at this point in the history
This prevents it being exported as a public symbol.
  • Loading branch information
seanm authored May 4, 2021
1 parent dbe7204 commit dc639bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hl/src/H5LTanalyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ char *yytext;
#include "H5LTparse.h"

static char *trim_quotes(const char *);
int my_yyinput(char *, int);
static int my_yyinput(char *, int);
#undef YY_INPUT
#define YY_INPUT(b, r, ms) (r=my_yyinput(b, ms))
#define token(x) (int)x
Expand Down Expand Up @@ -2554,7 +2554,7 @@ trim_quotes(const char *quoted)
return trimmed;
}

int my_yyinput(char *buf, int max_size)
static int my_yyinput(char *buf, int max_size)
{
int ret;

Expand Down
4 changes: 2 additions & 2 deletions hl/src/H5LTanalyze.l
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "H5LTparse.h"

static char *trim_quotes(const char *);
int my_yyinput(char *, int);
static int my_yyinput(char *, int);
#undef YY_INPUT
#define YY_INPUT(b, r, ms) (r=my_yyinput(b, ms))
#define token(x) (int)x
Expand Down Expand Up @@ -144,7 +144,7 @@ trim_quotes(const char *quoted)
return trimmed;
}

int my_yyinput(char *buf, int max_size)
static int my_yyinput(char *buf, int max_size)
{
int ret;

Expand Down

0 comments on commit dc639bd

Please sign in to comment.