Skip to content
Browse files

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
  • Loading branch information...
1 parent 079b168 commit 0ecab5791f6698fbad13a60cf460570e935b79b1 @b4n b4n committed
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/editor.c
  2. +1 −1 src/editor.h
  3. +1 −1 src/prefix.c
View
6 src/editor.c
@@ -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 close_block(GeanyEditor *editor, gint 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);
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);
@@ -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.
* position can be -1, then the current position is 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)
{
gint line, line_start, startword, endword;
@@ -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.
* position can be -1, then the current position is 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)
{
read_current_word(editor, pos, word, wordlen, wc, FALSE);
View
2 src/editor.h
@@ -237,7 +237,7 @@ const GeanyEditorPrefs *editor_get_prefs(GeanyEditor *editor);
/* 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);
void editor_find_current_word_sciwc(GeanyEditor *editor, gint pos, gchar *word, gsize wordlen);
View
2 src/prefix.c
@@ -152,7 +152,7 @@ br_locate (void *symbol)
if (symbol >= (void *) start && symbol < (void *) end)
{
char *tmp;
- size_t len;
+ gsize len;
/* Extract the filename; it is always an absolute path */
path = strchr (line, '/');

0 comments on commit 0ecab57

Please sign in to comment.
Something went wrong with that request. Please try again.