Using AStyle of all the C and C++ source and header files - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-graph.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年10月15日 13:11:54 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年10月15日 13:11:54 +0200
commit137e4d264c73b3087a5d0968362c5b9ca3108f2d (patch)
treea80691d187615ec2e63f25182be7895b9a8a313f /agg-plot/lua-graph.cpp
parent7d157c5bd8ddf920094907a35c9329ce0688e3d4 (diff)
downloadgsl-shell-137e4d264c73b3087a5d0968362c5b9ca3108f2d.tar.gz
Using AStyle of all the C and C++ source and header files
Using default AStyle formatting, "allman" style.
Diffstat (limited to 'agg-plot/lua-graph.cpp')
-rw-r--r--agg-plot/lua-graph.cpp 34
1 files changed, 17 insertions, 17 deletions
diff --git a/agg-plot/lua-graph.cpp b/agg-plot/lua-graph.cpp
index 34f3cace..aa253298 100644
--- a/agg-plot/lua-graph.cpp
+++ b/agg-plot/lua-graph.cpp
@@ -43,36 +43,36 @@ pthread_mutex_t agg_mutex[1];
void
graph_close_windows (lua_State *L)
{
- window_index_apply_all (L, app_window_hooks->close);
+ window_index_apply_all (L, app_window_hooks->close);
}
void
register_graph (lua_State *L)
{
- pthread_mutex_init (agg_mutex, NULL);
+ pthread_mutex_init (agg_mutex, NULL);
- window_registry_prepare (L);
+ window_registry_prepare (L);
- luaL_register (L, MLUA_GRAPHLIBNAME, methods_dummy);
+ luaL_register (L, MLUA_GRAPHLIBNAME, methods_dummy);
- draw_register (L);
- text_register (L);
- app_window_hooks->register_module (L);
- plot_register (L);
+ draw_register (L);
+ text_register (L);
+ app_window_hooks->register_module (L);
+ plot_register (L);
- initialize_fonts (L);
+ initialize_fonts (L);
- lua_pop(L, 1);
+ lua_pop(L, 1);
}
void
gsl_shell_close_with_graph (struct gsl_shell_state* gs)
{
- pthread_mutex_lock (&gs->shutdown_mutex);
- gs->is_shutting_down = 1;
- pthread_mutex_lock(&gs->exec_mutex);
- graph_close_windows(gs->L);
- lua_close(gs->L);
- pthread_mutex_unlock(&gs->shutdown_mutex);
- pthread_mutex_unlock(&gs->exec_mutex);
+ pthread_mutex_lock (&gs->shutdown_mutex);
+ gs->is_shutting_down = 1;
+ pthread_mutex_lock(&gs->exec_mutex);
+ graph_close_windows(gs->L);
+ lua_close(gs->L);
+ pthread_mutex_unlock(&gs->shutdown_mutex);
+ pthread_mutex_unlock(&gs->exec_mutex);
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月22日 09:37:52 +0000

AltStyle によって変換されたページ (->オリジナル) /