diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-03-07 13:22:49 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-03-07 13:22:49 +0000 |
commit | 94f1a410a3d257124c3131b41ccaa883ccabb9c3 (patch) | |
tree | a5ba5d6805fb556194553df761754b640e600d2b /tests/test6-main.c | |
parent | 9e1a6d35382841cbbaaca9779fe21c3123cc367f (diff) | |
download | libcroco-94f1a410a3d257124c3131b41ccaa883ccabb9c3.tar.gz |
re-indented the source files to make'em comply with gnome indentation
2004-03-07 Dodji Seketeli <dodji@gnome.org>
* src/*.c: re-indented the source files to make'em comply
with gnome indentation rules.
* libcroco-indent: added this indentation script.
Diffstat (limited to 'tests/test6-main.c')
-rw-r--r-- | tests/test6-main.c | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/tests/test6-main.c b/tests/test6-main.c index 4e534bf..f9dd1c3 100644 --- a/tests/test6-main.c +++ b/tests/test6-main.c @@ -30,13 +30,11 @@ #include "libcroco.h" #include "cr-test-utils.h" -const guchar * gv_cssbuf = -".str0 {stroke:#007844;stroke-width:44}" -".fil0 {fill:url(#id0)}" ; +const guchar *gv_cssbuf = + ".str0 {stroke:#007844;stroke-width:44}" ".fil0 {fill:url(#id0)}"; static enum CRStatus -test_cr_parser_parse (void) ; - + test_cr_parser_parse (void); /** *The test of the cr_input_read_byte() method. @@ -50,40 +48,37 @@ test_cr_parser_parse (void) ; static enum CRStatus test_cr_parser_parse (void) { - enum CRStatus status = CR_OK ; - CROMParser *parser = NULL ; - CRStyleSheet *stylesheet = NULL ; + enum CRStatus status = CR_OK; + CROMParser *parser = NULL; + CRStyleSheet *stylesheet = NULL; - parser = cr_om_parser_new (NULL) ; - status = cr_om_parser_parse_buf (parser, (guchar*)gv_cssbuf, - strlen (gv_cssbuf), - CR_ASCII, - &stylesheet) ; + parser = cr_om_parser_new (NULL); + status = cr_om_parser_parse_buf (parser, (guchar *) gv_cssbuf, + strlen (gv_cssbuf), + CR_ASCII, &stylesheet); - if (status == CR_OK && stylesheet) - { - cr_stylesheet_dump (stylesheet, stdout) ; - cr_stylesheet_destroy (stylesheet) ; - } - cr_om_parser_destroy (parser) ; + if (status == CR_OK && stylesheet) { + cr_stylesheet_dump (stylesheet, stdout); + cr_stylesheet_destroy (stylesheet); + } + cr_om_parser_destroy (parser); - return status ; + return status; } /** *The entry point of the testing routine. */ int -main (int argc, char ** argv) +main (int argc, char **argv) { - enum CRStatus status = CR_OK ; + enum CRStatus status = CR_OK; - status = test_cr_parser_parse () ; + status = test_cr_parser_parse (); - if (status != CR_OK) - { - g_print ("\nKO\n") ; + if (status != CR_OK) { + g_print ("\nKO\n"); } - return 0 ; + return 0; } |