diff options
author | Michele Calgaro <[email protected]> | 2023-12-01 12:38:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-01 12:38:43 +0900 |
commit | b67b7f2b784c7105e88a5e639d9d84736ae2cbc1 (patch) | |
tree | 0fd16d439c681c07d57d7f0d544c7582e04c3a31 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h | |
parent | c0a6f1b84c84749908961579b84513fd9f9d9eac (diff) | |
download | extra-dependencies-b67b7f2b784c7105e88a5e639d9d84736ae2cbc1.tar.gz extra-dependencies-b67b7f2b784c7105e88a5e639d9d84736ae2cbc1.zip |
uncrustify-trinity: updated based on upstream version 0.78.1
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h new file mode 100644 index 00000000..3b839060 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/uncrustify.h @@ -0,0 +1,69 @@ +/** + * @file uncrustify.h + * prototypes for uncrustify.cpp + * + * @author Ben Gardner + * @license GPL v2+ + */ + +#ifndef UNCRUSTIFY_H_INCLUDED +#define UNCRUSTIFY_H_INCLUDED + +#include "uncrustify_types.h" + +#include <stdio.h> + +int load_header_files(); + + +void uncrustify_file(const file_mem &fm, FILE *pfout, const char *parsed_file, const char *dump_filename, bool is_quiet, bool defer_uncrustify_end = false); + + +void uncrustify_end(); + + +const char *get_token_name(E_Token token); + + +/** + * Grab the token id for the text. + * + * @return token, will be CT_NONE on failure to match + */ +E_Token find_token_name(const char *text); + + +/** + * Replace the brain-dead and non-portable basename(). + * Returns a pointer to the character after the last '/'. + * The returned value always points into path, unless path is nullptr. + * + * Input Returns + * nullptr => "" + * "/some/path/" => "" + * "/some/path" => "path" + * "afile" => "afile" + * + * @param path The path to look at + * + * @return Pointer to the character after the last path separator + */ +const char *path_basename(const char *path); + + +/** + * Returns the length of the directory part of the filename. + * + * @param filename filename including full path + * + * @return character size of path + */ +int path_dirname_len(const char *filename); + + +void usage(const char *argv0); + + +void usage_error(const char *msg = nullptr); + +#endif /* UNCRUSTIFY_H_INCLUDED */ |