diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-10-26 00:38:58 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-10-26 00:39:10 +0200 |
| commit | 6d5021c00e71db7d0bc36c8622cb256fd5088cd6 (patch) | |
| tree | 5074e3fe2e28e481ce183219e0de8d61f1bb0e72 /fluid/code.h | |
| parent | 06d12892f90233c4ec50109fc2d2f06c5ae14432 (diff) | |
FLUID: Adds initial MergeBack feature.
Diffstat (limited to 'fluid/code.h')
| -rw-r--r-- | fluid/code.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fluid/code.h b/fluid/code.h index 4374ac585..7d0eee140 100644 --- a/fluid/code.h +++ b/fluid/code.h @@ -31,6 +31,17 @@ struct Fd_Pointer_Tree; int is_id(char c); int write_strings(const Fl_String &filename); +const int FD_TAG_GENERIC = 0; +const int FD_TAG_CODE = 1; +const int FD_TAG_MENU_CALLBACK = 2; +const int FD_TAG_WIDGET_CALLBACK = 3; +const int FD_TAG_LAST = 3; + +const int FD_MERGEBACK_CHECK = 0; +const int FD_MERGEBACK_INTERACTIVE = 1; +const int FD_MERGEBACK_GO = 2; +const int FD_MERGEBACK_GO_SAFE = 3; + class Fd_Code_Writer { protected: @@ -41,6 +52,16 @@ protected: Fd_Text_Tree *text_in_code; Fd_Pointer_Tree *ptr_in_code; + unsigned long block_crc_; + char *block_buffer_; + int block_buffer_size_; + bool block_line_start_; + void crc_add(const void *data, int n=-1); + int crc_printf(const char *format, ...); + int crc_vprintf(const char *format, va_list args); + int crc_puts(const char *text); + int crc_putc(int c); + public: int indentation; bool write_sourceview; @@ -74,6 +95,10 @@ public: Fl_Type* write_code(Fl_Type* p); int write_code(const char *cfile, const char *hfile, bool to_sourceview=false); void write_public(int state); // writes pubic:/private: as needed + + void tag(int type, unsigned short uid); + int merge_back(const char *s, int task); + }; #endif // _FLUID_CODE_H |
