summaryrefslogtreecommitdiff
path: root/src/c_fl_text_buffer.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-16 14:21:05 +1300
commitdbf6f4db24aee7315b2782a87e127367887e2036 (patch)
tree91f5af52dbdf6be9e1f5026bcf354a6455dd411d /src/c_fl_text_buffer.h
parentba1719013e5bab82a2accb4aadfd8451c3ebc931 (diff)
Changed reinterpret_cast to static_cast where applicable
Diffstat (limited to 'src/c_fl_text_buffer.h')
-rw-r--r--src/c_fl_text_buffer.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/c_fl_text_buffer.h b/src/c_fl_text_buffer.h
index 1e55bc1..ce4c262 100644
--- a/src/c_fl_text_buffer.h
+++ b/src/c_fl_text_buffer.h
@@ -8,20 +8,14 @@
#define FL_TEXT_BUFFER_GUARD
-
-
typedef void* TEXTBUFFER;
-
-
extern "C" TEXTBUFFER new_fl_text_buffer(int rs, int pgs);
extern "C" void upref_fl_text_buffer(TEXTBUFFER tb);
extern "C" void free_fl_text_buffer(TEXTBUFFER tb);
-
-
extern "C" void fl_text_buffer_add_modify_callback(TEXTBUFFER tb, void * cb, void * ud);
extern "C" void fl_text_buffer_add_predelete_callback(TEXTBUFFER tb, void * cb, void * ud);
extern "C" void fl_text_buffer_call_modify_callbacks(TEXTBUFFER tb);
@@ -76,10 +70,14 @@ extern "C" char * fl_text_buffer_highlight_text(TEXTBUFFER tb);
extern "C" void fl_text_buffer_unhighlight(TEXTBUFFER tb);
-extern "C" int fl_text_buffer_findchar_forward(TEXTBUFFER tb, int start, unsigned int item, int * found);
-extern "C" int fl_text_buffer_findchar_backward(TEXTBUFFER tb, int start, unsigned int item, int * found);
-extern "C" int fl_text_buffer_search_forward(TEXTBUFFER tb, int start, const char * item, int * found, int mcase);
-extern "C" int fl_text_buffer_search_backward(TEXTBUFFER tb, int start, const char * item, int * found, int mcase);
+extern "C" int fl_text_buffer_findchar_forward(TEXTBUFFER tb, int start,
+ unsigned int item, int * found);
+extern "C" int fl_text_buffer_findchar_backward(TEXTBUFFER tb, int start,
+ unsigned int item, int * found);
+extern "C" int fl_text_buffer_search_forward(TEXTBUFFER tb, int start,
+ const char * item, int * found, int mcase);
+extern "C" int fl_text_buffer_search_backward(TEXTBUFFER tb, int start,
+ const char * item, int * found, int mcase);
extern "C" int fl_text_buffer_word_start(TEXTBUFFER tb, int p);
@@ -99,3 +97,4 @@ extern "C" int fl_text_buffer_utf8_align(TEXTBUFFER tb, int p);
#endif
+