Mercurial > mxe-octave
changeset 2358:14b3f5ea78ae
Cleanup coding style via "make cleanup-style"
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Thu, 29 Mar 2012 13:02:06 +0200 |
parents | 5a0c2bf69e55 |
children | 1726cefccf0c |
files | src/freeglut-test.c src/gsl-test.c src/libffi-test.c src/libical-test.c src/libpng-test.c src/vigra-test.cpp tools/create-screenshot-for-doc tools/patch-tool-mxe |
diffstat | 8 files changed, 19 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/src/freeglut-test.c Thu Mar 29 13:00:17 2012 +0200 +++ b/src/freeglut-test.c Thu Mar 29 13:02:06 2012 +0200 @@ -13,10 +13,10 @@ glutInitWindowSize(640,480); glutInitWindowPosition(10,10); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); - + glutCreateWindow("FreeGLUT Shapes"); glutMainLoop(); - + return(0); }
--- a/src/gsl-test.c Thu Mar 29 13:00:17 2012 +0200 +++ b/src/gsl-test.c Thu Mar 29 13:02:06 2012 +0200 @@ -6,7 +6,7 @@ #include <stdio.h> #include <gsl/gsl_sf_bessel.h> -int main(int argc, char *argv[]) +int main(int argc, char *argv[]) { double x, y;
--- a/src/libffi-test.c Thu Mar 29 13:00:17 2012 +0200 +++ b/src/libffi-test.c Thu Mar 29 13:02:06 2012 +0200 @@ -13,7 +13,7 @@ void *values[1]; char *s; int rc; - + (void)argc; (void)argv;
--- a/src/libical-test.c Thu Mar 29 13:00:17 2012 +0200 +++ b/src/libical-test.c Thu Mar 29 13:02:06 2012 +0200 @@ -8,11 +8,11 @@ int main(int argc, char *argv[]) { - icalvalue *v; + icalvalue *v; char *str; (void)argc; (void)argv; - + v = icalvalue_new_caladdress("cap://value/1"); str = icalvalue_as_ical_string_r(v); printf("String: %s\n", str);
--- a/src/libpng-test.c Thu Mar 29 13:00:17 2012 +0200 +++ b/src/libpng-test.c Thu Mar 29 13:02:06 2012 +0200 @@ -11,28 +11,28 @@ #include <unistd.h> #include <string.h> #include <png.h> - + int main(int argc, char *argv[]) { (void)argc; (void)argv; - + /* PNG structs and types */ png_byte color_type; png_byte bit_depth; png_structp png_ptr; png_infop info_ptr; png_bytep *row_pointers; - + int height, width; FILE *fp; - + width = 640; height = 480; - + color_type = PNG_COLOR_TYPE_RGB; bit_depth = 8; /* Number of bits per color, not per pixel */ - + /* Dynamic 2D array in C */ row_pointers = (png_bytep *)malloc( sizeof(png_bytep) * height); int i; @@ -47,7 +47,7 @@ row_pointers[i][2+3*j] = (i * j) % 255; /* B */ } } - + /* Write the data out to the PNG file */ fp = fopen("test.png","wb"); png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING,NULL,NULL,NULL); @@ -59,13 +59,13 @@ png_write_info(png_ptr, info_ptr); png_write_image(png_ptr, row_pointers); png_write_end(png_ptr, NULL); - + /* Free up memory after use */ for(i = 0; i < height; i++) { free(row_pointers[i]); } free(row_pointers); - + return 0; }
--- a/src/vigra-test.cpp Thu Mar 29 13:00:17 2012 +0200 +++ b/src/vigra-test.cpp Thu Mar 29 13:02:06 2012 +0200 @@ -12,8 +12,8 @@ int main(int argc, char *argv[]) { std::string formats = vigra::impexListFormats(); - + std::cout << "Supported formats: " << formats << std::endl; - + return formats.length() > 0; }