diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-01 12:38:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-01 12:38:43 +0900 |
commit | b67b7f2b784c7105e88a5e639d9d84736ae2cbc1 (patch) | |
tree | 0fd16d439c681c07d57d7f0d544c7582e04c3a31 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.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 <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.h')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.h b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.h new file mode 100644 index 00000000..6cae2ff6 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/src/unc_tools.h @@ -0,0 +1,66 @@ +/** + * @file unc_tools.h + * + * @author Guy Maurel + * October 2015, 2023 + * @license GPL v2+ + */ + +#ifndef UNC_TOOLS_H_INCLUDED +#define UNC_TOOLS_H_INCLUDED + +#include "prototypes.h" + +#if defined DEBUG +#define PROT_THE_LINE prot_the_line(__func__, __LINE__, 0, 0); +#else +#define PROT_THE_LINE /* do nothing */; +#endif + +extern char dump_file_name[80]; + +void set_dump_file_name(const char *name); + + +void prot_the_line(const char *func_name, int theLine, unsigned int actual_line, size_t partNumber); + + +void prot_the_line_pc(Chunk *pc_sub, const char *func_name, int theLine, unsigned int actual_line, size_t partNumber); + + +void prot_all_lines(const char *func_name, int theLine); + + +void prot_the_source(int theLine); + + +void prot_the_columns(int theLine, unsigned int actual_line); + + +void prot_the_OrigCols(int theLine, unsigned int actual_line); + + +void rebuild_the_line(int theLine, unsigned int actual_line, bool increment = true); + + +void examine_Data(const char *func_name, int theLine, int what); + + +//! dump the chunk list to a file +void dump_out(unsigned int type); + + +//! create chunk list from a file +void dump_in(unsigned int type); + + +size_t get_A_Number(); + + +void dump_keyword_for_lang(size_t language_count, chunk_tag_t *keyword_for_lang); + +//! This save the next formatting step to a file +void dump_step(const char *filename, const char *description); + + +#endif /* UNC_TOOLS_H_INCLUDED */ |