All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] [PATCH] remove csstoh.c
@ 2013-02-01  7:26 Sergey Senozhatsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Senozhatsky @ 2013-02-01  7:26 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 2592 bytes --]

Remove csstoh.c since we use csstoh.sh.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky(a)gmail.com>

---
 .gitignore   |  1 -
 src/csstoh.c | 69 ------------------------------------------------------------
 2 files changed, 70 deletions(-)

diff --git a/.gitignore b/.gitignore
index 96ffdba..35d41c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,7 +39,6 @@ po/*.gmo
 po/stamp-po
 src/powertop
 src/css.h
-src/csstoh
 src/Makefile.in
 src/.deps/
 src/Makefile
diff --git a/src/csstoh.c b/src/csstoh.c
deleted file mode 100644
index 28858f5..0000000
--- a/src/csstoh.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright 2010, Intel Corporation
- *
- * This file is part of PowerTOP
- *
- * This program file is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program in a file named COPYING; if not, write to the
- * Free Software Foundation, Inc,
- * 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301 USA
- * or just google for it.
- *
- * Authors:
- *	Arjan van de Ven <arjan(a)linux.intel.com>
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <string.h>
-
-int main(int argc, char **argv)
-{
-	FILE *in, *out;
-	char line[4096];
-
-	if (argc < 2) {
-		printf("Usage:  csstoh cssfile header.h \n");
-		exit(0);
-	}
-	in = fopen(argv[1], "rm");
-	if (!in) {
-		printf("Failed to open input file %s (%s) \n", argv[1], strerror(errno));
-		return EXIT_FAILURE;
-	}
-	out = fopen(argv[2], "wm");
-	if (!out) {
-		printf("Failed to open output file %s (%s) \n", argv[1], strerror(errno));
-		return EXIT_FAILURE;
-	}
-
-	fprintf(out, "#ifndef __INCLUDE_GUARD_CCS_H\n");
-	fprintf(out, "#define __INCLUDE_GUARD_CCS_H\n");
-	fprintf(out, "\n");
-	fprintf(out, "const char css[] = \n");
-
-	while (!feof(in)) {
-		char *c;
-		if (fgets(line, 4095, in) == NULL)
-			break;
-		c = strchr(line, '\n');
-		if (c) *c = 0;
-		fprintf(out, "\t\"%s\\n\"\n", line);
-	}	
-	fprintf(out, ";\n");	
-	fprintf(out, "#endif\n");
-	fclose(out);
-	fclose(in);
-	return EXIT_SUCCESS;
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Powertop] [PATCH] remove csstoh.c
@ 2013-02-04 19:39 Kristen Carlson Accardi
  0 siblings, 0 replies; 2+ messages in thread
From: Kristen Carlson Accardi @ 2013-02-04 19:39 UTC (permalink / raw)
  To: powertop

[-- Attachment #1: Type: text/plain, Size: 3059 bytes --]

On Fri, 1 Feb 2013 10:26:34 +0300
Sergey Senozhatsky <sergey.senozhatsky(a)gmail.com> wrote:

> Remove csstoh.c since we use csstoh.sh.
> 
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky(a)gmail.com>
> 
> ---
>  .gitignore   |  1 -
>  src/csstoh.c | 69 ------------------------------------------------------------
>  2 files changed, 70 deletions(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 96ffdba..35d41c2 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -39,7 +39,6 @@ po/*.gmo
>  po/stamp-po
>  src/powertop
>  src/css.h
> -src/csstoh
>  src/Makefile.in
>  src/.deps/
>  src/Makefile
> diff --git a/src/csstoh.c b/src/csstoh.c
> deleted file mode 100644
> index 28858f5..0000000
> --- a/src/csstoh.c
> +++ /dev/null
> @@ -1,69 +0,0 @@
> -/*
> - * Copyright 2010, Intel Corporation
> - *
> - * This file is part of PowerTOP
> - *
> - * This program file is free software; you can redistribute it and/or modify it
> - * under the terms of the GNU General Public License as published by the
> - * Free Software Foundation; version 2 of the License.
> - *
> - * This program is distributed in the hope that it will be useful, but WITHOUT
> - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
> - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
> - * for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program in a file named COPYING; if not, write to the
> - * Free Software Foundation, Inc,
> - * 51 Franklin Street, Fifth Floor,
> - * Boston, MA 02110-1301 USA
> - * or just google for it.
> - *
> - * Authors:
> - *	Arjan van de Ven <arjan(a)linux.intel.com>
> - */
> -
> -#include <stdio.h>
> -#include <stdlib.h>
> -#include <errno.h>
> -#include <string.h>
> -
> -int main(int argc, char **argv)
> -{
> -	FILE *in, *out;
> -	char line[4096];
> -
> -	if (argc < 2) {
> -		printf("Usage:  csstoh cssfile header.h \n");
> -		exit(0);
> -	}
> -	in = fopen(argv[1], "rm");
> -	if (!in) {
> -		printf("Failed to open input file %s (%s) \n", argv[1], strerror(errno));
> -		return EXIT_FAILURE;
> -	}
> -	out = fopen(argv[2], "wm");
> -	if (!out) {
> -		printf("Failed to open output file %s (%s) \n", argv[1], strerror(errno));
> -		return EXIT_FAILURE;
> -	}
> -
> -	fprintf(out, "#ifndef __INCLUDE_GUARD_CCS_H\n");
> -	fprintf(out, "#define __INCLUDE_GUARD_CCS_H\n");
> -	fprintf(out, "\n");
> -	fprintf(out, "const char css[] = \n");
> -
> -	while (!feof(in)) {
> -		char *c;
> -		if (fgets(line, 4095, in) == NULL)
> -			break;
> -		c = strchr(line, '\n');
> -		if (c) *c = 0;
> -		fprintf(out, "\t\"%s\\n\"\n", line);
> -	}	
> -	fprintf(out, ";\n");	
> -	fprintf(out, "#endif\n");
> -	fclose(out);
> -	fclose(in);
> -	return EXIT_SUCCESS;
> -}
> 
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop

Applied.

Kristen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-04 19:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01  7:26 [Powertop] [PATCH] remove csstoh.c Sergey Senozhatsky
  -- strict thread matches above, loose matches on Subject: below --
2013-02-04 19:39 Kristen Carlson Accardi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.