Skip to content

Commit f591833

Browse files
committed
Update to version 1.1
1 parent d219cd2 commit f591833

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

XUiDesigner/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
NAME = XUiDesigner
2727
EXEC_NAME = $(shell echo $(NAME) | tr A-Z a-z)
2828
BUILD_DIR = build/
29-
VER = 1.0
29+
VER = 1.1
3030

3131
LIB_DIR := ../libxputty/libxputty/
3232
HEADER_DIR := $(LIB_DIR)include/
@@ -43,10 +43,10 @@
4343
# set compile flags
4444
LDFLAGS += -fPIC -Wl,-z,noexecstack -Wl,--no-undefined -I./include/ -I../libxputty/libxputty/include/ \
4545
`pkg-config --cflags --libs cairo x11 lilv-0` -lm -lpthread
46-
CXXFLAGS += -O3 -D_FORTIFY_SOURCE=2 -Wall -Wextra -fstack-protector -fno-ident -Wno-unused-result \
46+
MY_CFLAGS += -O3 $(CFLAGS) -D_FORTIFY_SOURCE=2 -Wall -Wextra -fstack-protector -fno-ident -Wno-unused-result \
4747
-fno-asynchronous-unwind-tables -s -DNDEBUG -DSHARE_DIR=\"$(SHARE_DIR)\"
4848
# -pedantic -Wextra -Wshadow -Wpadded -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
49-
DEBUG_CXXFLAGS += -g -D DEBUG -DSHARE_DIR=\"$(SHARE_DIR)\"
49+
DEBUG_MY_CFLAGS += -g -D DEBUG -DSHARE_DIR=\"$(SHARE_DIR)\"
5050
# invoke build files
5151
SOURCE = $(wildcard $(SOURCE_DIR)*.c)
5252
OBJECTS := $(addprefix $(BUILD_DIR),$(notdir $(patsubst %.c,%.o,$(SOURCE))))
@@ -67,7 +67,7 @@ all : check $(NAME)
6767
$(R_ECHO)"sorry, build failed$(reset)"; \
6868
fi
6969

70-
debug: CXXFLAGS = $(DEBUG_CXXFLAGS)
70+
debug: MY_CFLAGS = $(DEBUG_MY_CFLAGS)
7171
debug: all
7272

7373
nls: LDFLAGS += -DENABLE_NLS -DGETTEXT_PACKAGE=\"$(EXEC_NAME)\" -DLOCAL_DIR=\"$(LOCAL_DIR)\"
@@ -150,11 +150,11 @@ uninstall :
150150

151151
$(OBJECTS) : $(SOURCE)
152152
@$(ECHO) "Building object file $@ $(reset)"
153-
$(QUIET)$(CC) $(CXXFLAGS) -Wall -c $(addprefix $(SOURCE_DIR),$(notdir $(patsubst %.o,%.c,$@))) -o $@ $(LDFLAGS)
153+
$(QUIET)$(CC) $(MY_CFLAGS) -Wall -c $(addprefix $(SOURCE_DIR),$(notdir $(patsubst %.o,%.c,$@))) -o $@ $(LDFLAGS)
154154

155155
$(NAME) : $(OBJECTS)
156156
@$(B_ECHO) "Compile $(EXEC_NAME) $(reset)"
157-
$(QUIET)$(CC) $(CXXFLAGS) $(OBJECTS) -L. ../libxputty/libxputty/libxputty.a -o $(EXEC_NAME) $(LDFLAGS)
157+
$(QUIET)$(CC) $(MY_CFLAGS) $(OBJECTS) -L. ../libxputty/libxputty/libxputty.a -o $(EXEC_NAME) $(LDFLAGS)
158158

159159
doc:
160160
#pass

XUiDesigner/include/XUiDesigner.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ typedef struct {
143143
bool is_atom_output;
144144
bool is_atom_input;
145145
bool have_adjustment;
146+
char pad[4];
146147
} Controller;
147148

148149
/*---------------------------------------------------------------------

XUiDesigner/include/XUiTextInput.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typedef struct {
4848
int curser_mark2;
4949
int set_selection;
5050
bool in_double_click;
51+
char pad[7];
5152
} TextBox_t;
5253

5354

XUiDesigner/src/XUiTextInput.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static void box_entry_set_curser_pos(Widget_t *w, int s) {
251251
expose_widget(w);
252252
}
253253

254-
void remove_trailing_zeros(char* s) {
254+
static void remove_trailing_zeros(char* s) {
255255
unsigned int l = strlen(s)-1;
256256
for(;l>0;l--) {
257257
if (strstr(&s[l],"0")) {

XUiDesigner/src/XUiWriteJson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static void check_for_Widget_color(XUiDesigner *designer, Widget_t * wid) {
292292
}
293293
}
294294

295-
char *set_resource_path(XUiDesigner *designer, const char* image) {
295+
static char *set_resource_path(XUiDesigner *designer, const char* image) {
296296
char* tmp = strdup(image);
297297
char* xldl = strdup(basename(tmp));
298298
free(tmp);

XUiDesigner/src/XUiWriteUI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static void check_for_elem_colors(XUiDesigner *designer) {
343343
-----------------------------------------------------------------------
344344
----------------------------------------------------------------------*/
345345

346-
int format(float value) {
346+
static int format(float value) {
347347
float v = value - (int)value;
348348
char s[30] = {0};
349349
snprintf(s, 29, "%f", v);

0 commit comments

Comments
 (0)