Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede committed Mar 16, 2023
1 parent f7d054f commit cbe6d11
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/t8_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
*
* Source: https://github.com/arnavyc/getdelim/blob/0129a33c182b46e62b3137623a5569449fd3cc94/include/ay/getdelim.h
*/
static ssize_t
getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream)
static ssize_t
getdelim (char **lineptr, size_t *n, int delimiter, FILE *stream)
{
int initial_buffer_size = 1024;
int c;
size_t pos;
size_t new_size;
char *new_ptr;
int initial_buffer_size = 1024;
int c;
size_t pos;
size_t new_size;
char *new_ptr;

if (lineptr == NULL || stream == NULL || n == NULL) {
return -1;
Expand Down Expand Up @@ -81,7 +81,7 @@ getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream)
*lineptr = new_ptr;
}

((unsigned char *)(*lineptr))[pos++] = c;
((unsigned char *) (*lineptr))[pos++] = c;
if (c == delimiter) {
break;
}
Expand All @@ -102,21 +102,21 @@ getdelim(char **lineptr, size_t *n, int delimiter, FILE *stream)
*
* Source: https://github.com/arnavyc/getdelim/blob/0129a33c182b46e62b3137623a5569449fd3cc94/include/ay/getdelim.h
*/
static ssize_t
static ssize_t
getline (char **lineptr, size_t *n, FILE *stream)
{
return getdelim(lineptr, n, '\n', stream);
return getdelim (lineptr, n, '\n', stream);
}

/** Extract token from string up to a given delimiter.
*
* For a full description see https://linux.die.net/man/3/strsep
*/
static char *
static char *
strsep (char **stringp, const char *delim)
{
char *current;
char *original = *stringp;
char *current;
char *original = *stringp;

if (*stringp == NULL) {
return NULL;
Expand Down

0 comments on commit cbe6d11

Please sign in to comment.