c-preprocessor/include/utils.h

24 lines
483 B
C

#ifndef _utils_h
#define _utils_h
#include <stdio.h>
#define SKIP_UNTIL_CURR_BRANCH_END 1
#define SKIP_UNTIL_ENDIF_LINE 2
extern int write_line_to_file(FILE *out, char *line);
extern char *l_strdup(char *str);
extern void strip_spaces_in_def(char *def);
extern int a_strcat(char **dest, char *src);
extern int get_next_whitespace_idx(char *s);
extern char *skip_word(char *s);
extern int is_cond_null(char *cond_line);
extern int skip_until(FILE *f, int until);
#endif