summaryrefslogtreecommitdiff
path: root/csslint
diff options
context:
space:
mode:
authorGaël CHAMOULAUD <strider@src.gnome.org>2003-03-23 22:34:06 +0000
committerGaël CHAMOULAUD <strider@src.gnome.org>2003-03-23 22:34:06 +0000
commit707595232fce772e196bd41d4e7e247fab23a624 (patch)
treef09a81d17e0f8bb9892248a35f885bd8c373639f /csslint
parent028da71ab08e7fc5d2da2eac8d8e2f72bc8a32c9 (diff)
downloadlibcroco-707595232fce772e196bd41d4e7e247fab23a624.tar.gz
Re-indentation
Diffstat (limited to 'csslint')
-rw-r--r--csslint/csslint.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/csslint/csslint.c b/csslint/csslint.c
index c5b96cf..8bea2d2 100644
--- a/csslint/csslint.c
+++ b/csslint/csslint.c
@@ -28,7 +28,8 @@
*@param a_argc the argc variable passed to the main function.
*@param a_argv the argv variable passed to the main function.
*/
-static void showVersion (const char *name) {
+static void showVersion (const char *name)
+{
fprintf(stderr, "%s: using libcroco version %s\n", name, VERSION);
fprintf(stderr, " compiled with: ");
#ifdef HAVE_LIBXML2
@@ -48,7 +49,8 @@ static void showVersion (const char *name) {
*@param a_argc the argc variable passed to the main function.
*@param a_argv the argv variable passed to the main function.
*/
-static void usage(const char *name) {
+static void usage(const char *name)
+{
printf("Usage : %s [options] CSS2files ...\n", name);
printf("\tParse the CSS2 files and output the result of the parsing\n");
printf("\t--version : display the version of the CSS2 library used\n");
@@ -57,16 +59,18 @@ static void usage(const char *name) {
}
int
-main (int argc, char **argv) {
+main (int argc, char **argv)
+{
int i;
- if (argc <= 1) {
+ if (argc <= 1)
+ {
usage(argv[0]);
return(1);
}
- for (i = 1; i < argc ; i++) {
-
+ for (i = 1; i < argc ; i++)
+ {
if (!strcmp(argv[i], "-"))
break;
@@ -74,9 +78,12 @@ main (int argc, char **argv) {
continue;
if ((!strcmp(argv[i], "-version")) ||
- (!strcmp(argv[i], "--version"))) {
+ (!strcmp(argv[i], "--version")))
+ {
showVersion (argv[0]);
- } else {
+ }
+ else
+ {
fprintf(stderr, "Unknown option %s\n", argv[i]);
usage(argv[0]);
return(1);