Skip to content

Commit

Permalink
Switch to gint/gchar in tmux_decode.c
Browse files Browse the repository at this point in the history
  • Loading branch information
apmasell committed Jul 3, 2014
1 parent a06e7a5 commit 9bee766
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions tmux_decode.c
Expand Up @@ -3,7 +3,7 @@

void tabbed_mux_decoder_init(
struct tabbed_mux_decoder *self,
char *str,
gchar *str,
gboolean command,
gchar split) {
self->str = str;
Expand Down Expand Up @@ -35,7 +35,7 @@ void tabbed_mux_decoder_pop(
}
}

int tabbed_mux_decoder_pop_id(
gint tabbed_mux_decoder_pop_id(
struct tabbed_mux_decoder *self) {
gchar *end;
gint result;
Expand All @@ -54,12 +54,12 @@ int tabbed_mux_decoder_pop_id(
return result;
}

char *tabbed_mux_decoder_get_command(
gchar *tabbed_mux_decoder_get_command(
struct tabbed_mux_decoder *self) {
return self->str;
}

char *tabbed_mux_decoder_get_remainder(
gchar *tabbed_mux_decoder_get_remainder(
struct tabbed_mux_decoder *self) {
const gchar *num_start;
gchar *dest;
Expand Down
14 changes: 7 additions & 7 deletions tmux_decode.h
Expand Up @@ -3,14 +3,14 @@
# include <glib.h>

struct tabbed_mux_decoder {
char *str;
char *rest;
char split;
gchar *str;
gchar *rest;
gchar split;
};

void tabbed_mux_decoder_init(
struct tabbed_mux_decoder *self,
char *str,
gchar *str,
gboolean command,
gchar split);
void tabbed_mux_decoder_destroy(
Expand All @@ -19,13 +19,13 @@ void tabbed_mux_decoder_destroy(
void tabbed_mux_decoder_pop(
struct tabbed_mux_decoder *self);

int tabbed_mux_decoder_pop_id(
gint tabbed_mux_decoder_pop_id(
struct tabbed_mux_decoder *self);

char *tabbed_mux_decoder_get_command(
gchar *tabbed_mux_decoder_get_command(
struct tabbed_mux_decoder *self);

char *tabbed_mux_decoder_get_remainder(
gchar *tabbed_mux_decoder_get_remainder(
struct tabbed_mux_decoder *self);

#endif

0 comments on commit 9bee766

Please sign in to comment.