Search
lxdream.org :: lxdream/src/gui/dump_win.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/dump_win.c
changeset 430:467519b050f4
prev31:495e480360d7
next435:7a5d71e8560b
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/gui/dump_win.c Sun Dec 25 08:24:11 2005 +0000
1.2 +++ b/src/gui/dump_win.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: dump_win.c,v 1.2 2005-12-25 08:24:11 nkeynes Exp $
1.6 + * $Id: dump_win.c,v 1.3 2007-10-08 12:06:01 nkeynes Exp $
1.7 *
1.8 * Implements the memory dump window.
1.9 *
1.10 @@ -32,7 +32,7 @@
1.11 uint32_t start;
1.12 uint32_t end;
1.13 int flags;
1.14 - char *data;
1.15 + unsigned char *data;
1.16
1.17 GtkEntry *fromInput, *toInput;
1.18 GtkTextView *textArea;
1.19 @@ -46,7 +46,7 @@
1.20 gboolean on_dump_win_delete_event( GtkWidget *widget, GdkEvent *event,
1.21 gpointer user_data );
1.22 void on_dump_win_button_view_clicked( GtkWidget *widget, gpointer user_data );
1.23 -void dump_win_set_text( dump_data_t data, char *old_data, char *new_data );
1.24 +void dump_win_set_text( dump_data_t data, unsigned char *old_data, unsigned char *new_data );
1.25
1.26
1.27 void dump_window_new( void ) {
1.28 @@ -143,7 +143,7 @@
1.29 {
1.30 if( data->data == NULL )
1.31 return;
1.32 - char tmp[data->end-data->start];
1.33 + unsigned char tmp[data->end-data->start];
1.34 int length = data->end-data->start;
1.35 memcpy( tmp, data->data, length );
1.36 mem_copy_from_sh4( data->data, data->start, length );
1.37 @@ -159,7 +159,7 @@
1.38 }
1.39 }
1.40
1.41 -void dump_win_set_text( dump_data_t data, char *old_data, char *new_data )
1.42 +void dump_win_set_text( dump_data_t data, unsigned char *old_data, unsigned char *new_data )
1.43 {
1.44 GtkTextBuffer *buf = data->textBuffer;
1.45 GtkTextTag *changedTag = data->changedTag;
.