Kaydet (Commit) 0ecab579 authored tarafından Colomban Wendling's avatar Colomban Wendling

Use gsize instead of C99 type size_t in Geany's core

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5899 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 079b1689
...@@ -110,7 +110,7 @@ static void auto_multiline(GeanyEditor *editor, gint pos); ...@@ -110,7 +110,7 @@ static void auto_multiline(GeanyEditor *editor, gint pos);
static void auto_close_chars(ScintillaObject *sci, gint pos, gchar c); static void auto_close_chars(ScintillaObject *sci, gint pos, gchar c);
static void close_block(GeanyEditor *editor, gint pos); static void close_block(GeanyEditor *editor, gint pos);
static void editor_highlight_braces(GeanyEditor *editor, gint cur_pos); static void editor_highlight_braces(GeanyEditor *editor, gint cur_pos);
static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t wordlen, static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen,
const gchar *wc, gboolean stem); const gchar *wc, gboolean stem);
static gsize count_indent_size(GeanyEditor *editor, const gchar *base_indent); static gsize count_indent_size(GeanyEditor *editor, const gchar *base_indent);
static const gchar *snippets_find_completion_by_name(const gchar *type, const gchar *name); static const gchar *snippets_find_completion_by_name(const gchar *type, const gchar *name);
...@@ -1609,7 +1609,7 @@ static void close_block(GeanyEditor *editor, gint pos) ...@@ -1609,7 +1609,7 @@ static void close_block(GeanyEditor *editor, gint pos)
* NULL terminated in any case, even when the word is truncated because wordlen is too small. * NULL terminated in any case, even when the word is truncated because wordlen is too small.
* position can be -1, then the current position is used. * position can be -1, then the current position is used.
* wc are the wordchars to use, if NULL, GEANY_WORDCHARS will be used */ * wc are the wordchars to use, if NULL, GEANY_WORDCHARS will be used */
static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t wordlen, static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen,
const gchar *wc, gboolean stem) const gchar *wc, gboolean stem)
{ {
gint line, line_start, startword, endword; gint line, line_start, startword, endword;
...@@ -1661,7 +1661,7 @@ static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t ...@@ -1661,7 +1661,7 @@ static void read_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t
* NULL terminated in any case, even when the word is truncated because wordlen is too small. * NULL terminated in any case, even when the word is truncated because wordlen is too small.
* position can be -1, then the current position is used. * position can be -1, then the current position is used.
* wc are the wordchars to use, if NULL, GEANY_WORDCHARS will be used */ * wc are the wordchars to use, if NULL, GEANY_WORDCHARS will be used */
void editor_find_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t wordlen, void editor_find_current_word(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen,
const gchar *wc) const gchar *wc)
{ {
read_current_word(editor, pos, word, wordlen, wc, FALSE); read_current_word(editor, pos, word, wordlen, wc, FALSE);
......
...@@ -237,7 +237,7 @@ const GeanyEditorPrefs *editor_get_prefs(GeanyEditor *editor); ...@@ -237,7 +237,7 @@ const GeanyEditorPrefs *editor_get_prefs(GeanyEditor *editor);
/* General editing functions */ /* General editing functions */
void editor_find_current_word(GeanyEditor *editor, gint pos, gchar *word, size_t wordlen, void editor_find_current_word(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen,
const gchar *wc); const gchar *wc);
void editor_find_current_word_sciwc(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen); void editor_find_current_word_sciwc(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen);
......
...@@ -152,7 +152,7 @@ br_locate (void *symbol) ...@@ -152,7 +152,7 @@ br_locate (void *symbol)
if (symbol >= (void *) start && symbol < (void *) end) if (symbol >= (void *) start && symbol < (void *) end)
{ {
char *tmp; char *tmp;
size_t len; gsize len;
/* Extract the filename; it is always an absolute path */ /* Extract the filename; it is always an absolute path */
path = strchr (line, '/'); path = strchr (line, '/');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment