aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ecex.h5
-rw-r--r--include/path.h1
-rw-r--r--include/types.h8
3 files changed, 14 insertions, 0 deletions
diff --git a/include/ecex.h b/include/ecex.h
index a7d4b24..ec08bd0 100644
--- a/include/ecex.h
+++ b/include/ecex.h
@@ -302,6 +302,8 @@ void ecex_draw_stat_i(ecex_draw_context_t *ctx, int x, int y, int label_id, int
void ecex_draw_tetris_preview_i(ecex_draw_context_t *ctx, int piece, int x, int y, int cell, int alpha);
int ecex_find_file(ecex_t *ed, const char *path);
+int ecex_find_file_at(ecex_t *ed, const char *path, size_t line, size_t column);
+int ecex_find_project_file(ecex_t *ed, const char *from_file, const char *path);
int ecex_save_current_buffer(ecex_t *ed);
int ecex_write_current_buffer(ecex_t *ed, const char *path);
int ecex_compile(ecex_t *ed, const char *command);
@@ -311,6 +313,9 @@ int ecex_rerun_grep(ecex_t *ed);
int ecex_next_interactive_action(ecex_t *ed);
int ecex_previous_interactive_action(ecex_t *ed);
int ecex_indent_line_to(buffer_t *buffer, int target_cols);
+int ecex_clangd_jump_to_definition(ecex_t *ed);
+int ecex_c_mode_set_tab_width(int spaces);
+int ecex_c_mode_tab_width(void);
int ecex_comment_region(ecex_t *ed);
int ecex_uncomment_region(ecex_t *ed);
void ecex_request_prompt(ecex_t *ed, ecex_prompt_request_t request, const char *message);
diff --git a/include/path.h b/include/path.h
index e76a654..4debbad 100644
--- a/include/path.h
+++ b/include/path.h
@@ -9,6 +9,7 @@ char *ecex_path_join(const char *dir, const char *name);
char *ecex_path_dirname(const char *path);
char *ecex_path_basename_dup(const char *path);
char *ecex_path_normalize(const char *path);
+char *ecex_project_root_for_file(const char *path);
int ecex_path_is_dir(const char *path);
int ecex_path_is_file(const char *path);
int ecex_path_exists(const char *path);
diff --git a/include/types.h b/include/types.h
index c950bbb..129acb5 100644
--- a/include/types.h
+++ b/include/types.h
@@ -271,6 +271,11 @@ typedef struct ecex_major_mode {
char *name;
} ecex_major_mode_t;
+typedef struct ecex_eval_module {
+ char *key;
+ void *module;
+} ecex_eval_module_t;
+
struct ecex_window {
buffer_t *buffer;
float x;
@@ -343,6 +348,9 @@ struct ecex {
char *last_eval_source;
char *last_eval_filename;
int last_eval_wrap_as_statements;
+ ecex_eval_module_t *eval_modules;
+ size_t eval_module_cap;
+ size_t eval_module_count;
char *last_compile_command;
char *last_grep_command;