Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
girara
Commits
5857c591
Commit
5857c591
authored
Mar 17, 2013
by
Sebastian Ramacher
Browse files
Unbreak the ABI
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
28e62822
Changes
4
Hide whitespace changes
Inline
Side-by-side
config.mk
View file @
5857c591
...
...
@@ -11,8 +11,8 @@ VERSION = ${GIRARA_VERSION_MAJOR}.${GIRARA_VERSION_MINOR}.${GIRARA_VERSION_REV}
# * If any of the exported datastructures have changed in a incompatible way
# bump SOMAJOR and set SOMINOR to 0.
# * If a function has been added bump SOMINOR.
SOMAJOR
=
2
SOMINOR
=
0
SOMAJOR
=
1
SOMINOR
=
1
SOVERSION
=
${SOMAJOR}
.
${SOMINOR}
# paths
...
...
session.c
View file @
5857c591
...
...
@@ -79,7 +79,8 @@ girara_session_create()
(
girara_free_function_t
)
girara_argument_mapping_free
);
/* command history */
session
->
global
.
command_history
=
girara_input_history_new
(
NULL
);
session
->
command_history
=
girara_input_history_new
(
NULL
);
session
->
global
.
command_history
=
girara_get_command_history
(
session
);
/* load default values */
girara_config_load_default
(
session
);
...
...
@@ -408,8 +409,8 @@ girara_session_destroy(girara_session_t* session)
session
->
settings
=
NULL
;
/* clean up input histry */
g_object_unref
(
session
->
global
.
command_history
);
session
->
global
.
command_history
=
NULL
;
g_object_unref
(
session
->
command_history
);
session
->
command_history
=
NULL
;
/* clean up statusbar items */
girara_list_free
(
session
->
elements
.
statusbar_items
);
...
...
@@ -623,5 +624,5 @@ girara_list_t*
girara_get_command_history
(
girara_session_t
*
session
)
{
g_return_val_if_fail
(
session
!=
NULL
,
FALSE
);
return
girara_input_history_list
(
session
->
global
.
command_history
);
return
girara_input_history_list
(
session
->
command_history
);
}
session.h
View file @
5857c591
...
...
@@ -117,7 +117,7 @@ struct girara_session_s
{
GString
*
buffer
;
/**< Buffer */
void
*
data
;
/**< User data */
G
irara
InputHistory
*
command_history
;
/**< Command history */
g
irara
_list_t
*
GIRARA_DEPRECATED
(
command_history
)
;
/**< Command history
(deprecated)
*/
bool
autohide_inputbar
;
/**< Auto-hide inputbar */
bool
hide_statusbar
;
/**< Hide statusbar */
}
global
;
...
...
@@ -142,6 +142,8 @@ struct girara_session_s
girara_list_t
*
shortcut_mappings
;
girara_list_t
*
argument_mappings
;
}
config
;
GiraraInputHistory
*
command_history
;
/**< Command history */
};
/**
...
...
utils.c
View file @
5857c591
...
...
@@ -168,7 +168,7 @@ girara_split_path_array(const char* patharray)
girara_list_t
*
res
=
girara_list_new2
(
g_free
);
char
**
paths
=
g_strsplit
(
patharray
,
":"
,
0
);
for
(
unsigned
in
t
i
=
0
;
paths
[
i
]
!=
'\0'
;
++
i
)
{
for
(
size_
t
i
=
0
;
paths
[
i
]
!=
NULL
;
++
i
)
{
girara_list_append
(
res
,
g_strdup
(
paths
[
i
]));
}
g_strfreev
(
paths
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment