Fix trailing whitespaces.

This commit is contained in:
Tomasz Moń
2012-11-12 21:09:40 +01:00
parent 7691323989
commit c927b075a7
10 changed files with 5354 additions and 5358 deletions

View File

@@ -3533,7 +3533,7 @@ static XmlLabel xml_amp_cab_labels[] = {
static XmlLabel xml_noisegate_labels[] = {
{NOISEGATE_GATE, "Gate"},
{NOISEGATE_SWELL, "Swell"},
};
};
static XmlLabel xml_chorus_pre_post_labels[] = {
{CHORUSFX_PRE, "Pre"},
@@ -3646,7 +3646,7 @@ static XmlLabel xml_ips_scale_labels[] = {
{IPS_SCALE_LYDIAN, "Lydian"},
{IPS_SCALE_HMINOR, "HMinor"},
};
static XmlLabel xml_delay_labels[] = {
{DELAY_TYPE_ANALOG, "Analog"},
@@ -3972,7 +3972,7 @@ XmlSettings xml_settings[] = {
{REVERB_PREDELAY, REVERB_POSITION, "Reverb Predelay", &values_0_to_15,},
{PRESET_LEVEL, VOLUME_PRE_FX_POSITION, "Volume Pre FX", &values_0_to_99,},
{PRESET_LEVEL, VOLUME_POST_FX_POSITION, "Volume Post FX", &values_0_to_99,},
{PRESET_LEVEL, VOLUME_POST_FX_POSITION, "Volume Post FX", &values_0_to_99,},
{WAH_TYPE, WAH_POSITION, "Wah Type", &values_wah_type, xml_wah_labels, G_N_ELEMENTS(xml_wah_labels)},
{WAH_ON_OFF, WAH_POSITION, "Wah Enable", &values_on_off, xml_on_off_labels, G_N_ELEMENTS(xml_on_off_labels)},

View File

@@ -105,7 +105,7 @@ enum product_id {
RP255 = 8,
RP355 = 9,
};
typedef struct {
gchar *name;
unsigned char family_id;

18
gdigi.c
View File

@@ -52,7 +52,7 @@ gboolean set_debug_flags (const gchar *option_name, const gchar *value,
{
if (strchr(value, 'd')) {
DebugFlags |= DEBUG_MSG2DEV;
}
}
if (strchr(value, 'h')) {
DebugFlags |= DEBUG_MSG2HOST;
}
@@ -91,7 +91,7 @@ debug_msg (debug_flags_t flags, char *fmt, ...)
va_start(ap, fmt);
vsnprintf(buf, 1024, fmt, ap);
va_end(ap);
fprintf(stderr, "%s\n", buf);
}
}
@@ -172,7 +172,7 @@ format_value (XmlSettings *xml, gint value)
}
return buf;
}
}
GString *
format_ipv (guint id, guint pos, guint val)
@@ -458,7 +458,7 @@ void push_message(GString *msg)
"%d from bank %d",
str[10], str[9]);
} else {
debug_msg(DEBUG_MSG2HOST,
debug_msg(DEBUG_MSG2HOST,
"Receive RECEIVE_DEVICE_NOTIFICATION: %d %d moved to "
"%d %d",
str[9], str[10],
@@ -476,7 +476,7 @@ void push_message(GString *msg)
}
printf("\n");
}
debug_msg(DEBUG_MSG2HOST,
debug_msg(DEBUG_MSG2HOST,
"Receive NOTIFY_MODIFIER_GROUP_CHANGED: Modifier group "
"id %d changed",
(str[9] << 8) | (str[10]));
@@ -515,7 +515,7 @@ void push_message(GString *msg)
param->position, param->value, "XXX");
setting_param_free(param);
} while ( (x < msg->len) && n < tot);
g_string_free(msg, TRUE);
return;
}
@@ -535,7 +535,7 @@ void push_message(GString *msg)
}
modifier_linkable_list(msg);
g_string_free(msg, TRUE);
return;
}
@@ -1403,7 +1403,7 @@ static void request_device_configuration()
static GOptionEntry options[] = {
{"device", 'd', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &device_port, "MIDI device port to use", NULL},
{"debug-flags <flags>", 'D', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_CALLBACK, set_debug_flags,
{"debug-flags <flags>", 'D', G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_CALLBACK, set_debug_flags,
"<flags> any of a, d, g, h, m, s, x, v:\n"
" "
"a: Everything.\n"
@@ -1420,7 +1420,7 @@ static GOptionEntry options[] = {
" "
"x: Debug xml parsing/writing.\n"
" "
"v: Additional verbosity.\n" ,
"v: Additional verbosity.\n" ,
NULL},
{NULL}
};

11
gdigi.h
View File

@@ -28,7 +28,7 @@ typedef enum {
DEBUG_STARTUP = (1 << 2),
DEBUG_GROUP = (1 << 3), // Modifier group
DEBUG_HEX = (1 << 4), // Dump message contents in hex.
DEBUG_XML = (1 << 5),
DEBUG_XML = (1 << 5),
DEBUG_VERBOSE = (1 << 6),
} debug_flags_t;
@@ -742,7 +742,7 @@ enum {
IPS_SCALE_LYDIAN = 4,
IPS_SCALE_HMINOR = 5,
};
#define OCTAVER_OCTAVE1 1746
#define OCTAVER_OCTAVE2 1747
#define OCTAVER_DRY_LEVEL 1748
@@ -853,7 +853,7 @@ enum {
#define EXP_POSITION 19
#define EXP_VOLUME_PRE_FX 854594
#define EXP_VOLUME_POST_FX 1116738
#define EXP_VOLUME_POST_FX 1116738
#define EXP_MIN 8195
#define EXP_MAX 8196
@@ -866,7 +866,7 @@ enum {
#define LFO_WAVEFORM_TRI 0
#define LFO_WAVEFORM_SINE 1
#define LFO_WAVEFORM_SQUARE 2
#define LFO_WAVEFORM_SQUARE 2
#define LFO1_POSITION 22
#define LFO2_POSITION 23
@@ -875,7 +875,7 @@ enum {
#define LFO_ASSIGN_NONE 0
#define LFO_ASSIGN_PICKUP_ON 131137
#define LFO_ASSIGN_COMP_ON 262337
#define LFO_ASSIGN_SUSTAN 262352
#define LFO_ASSIGN_SUSTAN 262352
#define VSWITCH_ASSIGN 8384
#define VSWITCH_MIN 8385
@@ -899,7 +899,6 @@ enum {
#define FX_LIB_LEVEL 8706 // This influences pitch shift mix, delay level,
// and reverb level, in proportion, as
// specified by FX_LIB_LEVEL_MAX1,2,3.
//
#define FX_LIB_LEVEL_MAX1 8708
#define FX_LIB_LEVEL_MAX2 8710
#define FX_LIB_LEVEL_MAX3 8712

View File

@@ -368,7 +368,7 @@ gtk_knob_get_preferred_width(GtkWidget *widget,
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_KNOB (widget));
*minimum_width = *natural_width = GTK_KNOB(widget)->width;
*minimum_width = *natural_width = GTK_KNOB(widget)->width;
}
static void
@@ -379,7 +379,7 @@ gtk_knob_get_preferred_height(GtkWidget *widget,
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_KNOB (widget));
*minimum_height = *natural_height = GTK_KNOB(widget)->height;
*minimum_height = *natural_height = GTK_KNOB(widget)->height;
}

View File

@@ -50,7 +50,7 @@ typedef enum
gint height; /* derived from image height. */
gint frame_width; /* derived from pixbuf (width / height) or provided override for rectangular frames */
};
struct _GtkKnob {
GtkWidget widget;
@@ -68,7 +68,7 @@ typedef enum
/* knob animation */
GtkKnobAnim *anim;
gint width, height;
/* Old values from adjustment stored so we know when something changes */
gdouble old_value;
gdouble old_lower;

7
gui.c
View File

@@ -87,7 +87,7 @@ get_message_name(MessageID msgid)
}
return "Unknown";
}
typedef struct {
@@ -964,7 +964,7 @@ SupportedFileTypes file_types[] = {
static guint n_file_types = G_N_ELEMENTS(file_types);
gchar *
gchar *
get_preset_filename (int prod_id)
{
return file_types[prod_id].name;
@@ -1011,7 +1011,6 @@ static void action_open_preset_cb(GtkAction *action)
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog), current_filter);
if (x == product_id) {
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), current_filter);
}
@@ -1365,7 +1364,6 @@ void gui_create(Device *device)
gtk_widget_show_all(window);
g_signal_connect(G_OBJECT(window), "delete_event", G_CALLBACK(gtk_main_quit), NULL);
}
/**
@@ -1445,7 +1443,6 @@ gboolean unsupported_device_dialog(Device **device)
**/
gint select_device_dialog (GList *devices)
{
GtkWidget *dialog;
GtkWidget *label;
GtkWidget *combo_box;

10644
knob.h

File diff suppressed because it is too large Load Diff

View File

@@ -308,7 +308,7 @@ Preset *create_preset_from_data(GList *list)
modified = (unsigned char)data->str[11+strlen(name)];
if ((bank == PRESETS_EDIT_BUFFER) && (number == 0)) {
debug_msg(DEBUG_MSG2HOST,
debug_msg(DEBUG_MSG2HOST,
"RECEIVE_PRESET_START: current edit buffer");
} else {
debug_msg(DEBUG_MSG2HOST,

View File

@@ -59,11 +59,11 @@ map_xml_value (XmlSettings *xml, gint value)
if ((xml->values == &values_on_off) && (value > 1)) {
g_warning("Skipping modifier->label %s\n", xml->label);
return NULL;
}
}
if (value > xml->values->max || value < xml->values->min) {
g_warning("%s value %d out of range %0.1f %0.1f",
xml->label, value, xml->values->min, xml->values->max);
}
}
{
XmlLabel *labels = xml->xml_labels;
guint labels_amt = xml->xml_labels_amt;
@@ -110,7 +110,7 @@ write_preset_to_xml(Preset *preset, gchar *filename)
return;
}
/*
/*
* Start the document with the xml default for the version,
* encoding and the default for the standalone declaration.
*/
@@ -129,7 +129,7 @@ write_preset_to_xml(Preset *preset, gchar *filename)
rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "SchemaVersion",
BAD_CAST "1.2");
rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xmlns",
BAD_CAST "http://www.digitech.com/xml/preset");
@@ -141,7 +141,7 @@ write_preset_to_xml(Preset *preset, gchar *filename)
while (iter_params) {
XmlSettings *xml;
SettingParam *param = (SettingParam *) iter_params->data;
if (param->id == last_id && param->position == last_position) {
g_warning("Skipping duplicate parameter id %d position %d",
last_id, last_position);
@@ -223,7 +223,7 @@ write_preset_to_xml(Preset *preset, gchar *filename)
double value = (param->value + offset) * step;
rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "Text",
"%0.2f%s", value, suffix);
} else {
} else {
gint value = (param->value + offset) * step;
rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "Text",
"%d%s", value, suffix);
@@ -241,7 +241,7 @@ write_preset_to_xml(Preset *preset, gchar *filename)
break;
}
}
rc = xmlTextWriterEndElement(writer);
iter_params = iter_params->next;