aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/scicore/exe.cpp
diff options
context:
space:
mode:
authorMax Horn2009-02-15 22:28:50 +0000
committerMax Horn2009-02-15 22:28:50 +0000
commit5ecfecd3bc795446581186eb7f0e04b1c0caa0e3 (patch)
treec69aa304b273dd26c3226c7d25be9890c163b886 /engines/sci/scicore/exe.cpp
parent57434d955fc6eaa77ab1ef5c408f733a59dabbcf (diff)
downloadscummvm-rg350-5ecfecd3bc795446581186eb7f0e04b1c0caa0e3.tar.gz
scummvm-rg350-5ecfecd3bc795446581186eb7f0e04b1c0caa0e3.tar.bz2
scummvm-rg350-5ecfecd3bc795446581186eb7f0e04b1c0caa0e3.zip
SCI: Run astyle to make the code be more compliant with our Code Formatting Guidelines: scicore dir
svn-id: r38318
Diffstat (limited to 'engines/sci/scicore/exe.cpp')
-rw-r--r--engines/sci/scicore/exe.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/engines/sci/scicore/exe.cpp b/engines/sci/scicore/exe.cpp
index 4e97f80ed5..e266fd9665 100644
--- a/engines/sci/scicore/exe.cpp
+++ b/engines/sci/scicore/exe.cpp
@@ -39,15 +39,13 @@ exe_decompressor_t *exe_decompressors[] = {
NULL
};
-struct _exe_file
-{
+struct _exe_file {
struct _exe_decompressor *decompressor;
struct _exe_handle *handle;
};
exe_file_t *
-exe_open(const char *filename)
-{
+exe_open(const char *filename) {
int i = 0;
exe_decompressor_t *dec;
@@ -58,7 +56,7 @@ exe_open(const char *filename)
exe_file_t *file = (exe_file_t*)sci_malloc(sizeof(exe_file_t));
sciprintf("Scanning '%s' with decompressor '%s'\n",
- filename, dec->name);
+ filename, dec->name);
file->handle = handle;
file->decompressor = dec;
@@ -72,14 +70,12 @@ exe_open(const char *filename)
}
int
-exe_read(exe_file_t *file, void *buf, int count)
-{
+exe_read(exe_file_t *file, void *buf, int count) {
return file->decompressor->read(file->handle, buf, count);
}
void
-exe_close(exe_file_t *file)
-{
+exe_close(exe_file_t *file) {
file->decompressor->close(file->handle);
sci_free(file);