diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 21:06:09 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-24 21:06:09 +0200 |
commit | 9855a34f48acf6ae3aaeba9ec37756da41507e64 (patch) | |
tree | a02c2a507b3d536182d81e78b878b6b29c617cb9 /src/lex.c | |
parent | 1ae3aae35193dce25e5534b12a46011ec7912bb4 (diff) | |
download | fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.tar fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.zip |
Coding style: always add a space between a pointer's type and the *
Diffstat (limited to 'src/lex.c')
-rw-r--r-- | src/lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -158,7 +158,7 @@ static inline char current(fastd_lex_t *lex) { } /** Returns the current token as a newly allocated string */ -static char* get_token(fastd_lex_t *lex) { +static char * get_token(fastd_lex_t *lex) { return fastd_strndup(lex->buffer+lex->start, lex->tok_len); } @@ -443,7 +443,7 @@ static int parse_keyword(YYSTYPE *yylval, YYLTYPE *yylloc, fastd_lex_t *lex) { /** Initializes a new scanner for the given file */ -fastd_lex_t* fastd_lex_init(FILE *file) { +fastd_lex_t * fastd_lex_init(FILE *file) { fastd_lex_t *lex = fastd_new0(fastd_lex_t); lex->file = file; |