diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-08-19 13:43:20 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:45:20 -0300 |
commit | 5e602f18d5f619f7dba6d9fccefacdb991db391d (patch) | |
tree | d72cbc763c7dcd27022b223f1daf6dcb5ac8bcb6 | |
parent | f2c053a88497f3ad5ae786c16ecf1275212c13be (diff) |
Rename String to StringUtils.
Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>.
From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001
From: David Hunt <dhunt@iolanthe.attlocal.net>
Date: Sat, 11 Jul 2015 20:56:31 -0500
Subject: [PATCH 1/8] Rename String to StringUtils
-rw-r--r-- | Action.c | 2 | ||||
-rw-r--r-- | BatteryMeter.c | 2 | ||||
-rw-r--r-- | CRT.c | 2 | ||||
-rw-r--r-- | ColumnsPanel.c | 2 | ||||
-rw-r--r-- | Header.c | 2 | ||||
-rw-r--r-- | IncSet.c | 2 | ||||
-rw-r--r-- | ListItem.c | 2 | ||||
-rw-r--r-- | Makefile.am | 12 | ||||
-rw-r--r-- | Meter.c | 2 | ||||
-rw-r--r-- | OpenFilesScreen.c | 2 | ||||
-rw-r--r-- | Panel.c | 2 | ||||
-rw-r--r-- | Process.c | 2 | ||||
-rw-r--r-- | ProcessList.c | 2 | ||||
-rw-r--r-- | Settings.c | 2 | ||||
-rw-r--r-- | StringUtils.c (renamed from String.c) | 2 | ||||
-rw-r--r-- | StringUtils.h (renamed from String.h) | 4 | ||||
-rw-r--r-- | TraceScreen.c | 2 | ||||
-rw-r--r-- | linux/Battery.c | 2 | ||||
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
19 files changed, 25 insertions, 25 deletions
@@ -17,7 +17,7 @@ in the source distribution for its full text. #include "Process.h" #include "ScreenManager.h" #include "SignalsPanel.h" -#include "String.h" +#include "StringUtils.h" #include "TraceScreen.h" #include "Platform.h" diff --git a/BatteryMeter.c b/BatteryMeter.c index cea77866..5fda38b1 100644 --- a/BatteryMeter.c +++ b/BatteryMeter.c @@ -12,7 +12,7 @@ This meter written by Ian P. Hands (iphands@gmail.com, ihands@redhat.com). #include "Battery.h" #include "ProcessList.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "Platform.h" #include <string.h> @@ -7,7 +7,7 @@ in the source distribution for its full text. #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "RichString.h" #include <stdio.h> diff --git a/ColumnsPanel.c b/ColumnsPanel.c index 918ee320..a7856b41 100644 --- a/ColumnsPanel.c +++ b/ColumnsPanel.c @@ -8,7 +8,7 @@ in the source distribution for its full text. #include "ColumnsPanel.h" #include "Platform.h" -#include "String.h" +#include "StringUtils.h" #include "ListItem.h" #include <assert.h> @@ -8,7 +8,7 @@ in the source distribution for its full text. #include "Header.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "Platform.h" #include <assert.h> @@ -6,7 +6,7 @@ in the source distribution for its full text. */ #include "IncSet.h" -#include "String.h" +#include "StringUtils.h" #include "Panel.h" #include "ListItem.h" #include "CRT.h" @@ -8,7 +8,7 @@ in the source distribution for its full text. #include "ListItem.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "RichString.h" #include <string.h> diff --git a/Makefile.am b/Makefile.am index d47f755a..46377fc3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,7 @@ applications_DATA = htop.desktop pixmapdir = $(datadir)/pixmaps pixmap_DATA = htop.png -htop_CFLAGS = -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(my_htop_platform)" +htop_CFLAGS = -pedantic -Wall $(wextra_flag) -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"$(sysconfdir)\" -I"$(top_srcdir)/$(my_htop_platform)" AM_CPPFLAGS = -DNDEBUG myhtopsources = AvailableMetersPanel.c CategoriesPanel.c CheckItem.c \ @@ -20,8 +20,8 @@ ClockMeter.c ColorsPanel.c ColumnsPanel.c CPUMeter.c CRT.c MainPanel.c \ DisplayOptionsPanel.c FunctionBar.c Hashtable.c Header.c htop.c ListItem.c \ LoadAverageMeter.c MemoryMeter.c Meter.c MetersPanel.c Object.c Panel.c \ BatteryMeter.c Process.c ProcessList.c RichString.c ScreenManager.c Settings.c \ -SignalsPanel.c String.c SwapMeter.c TasksMeter.c UptimeMeter.c TraceScreen.c \ -UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \ +SignalsPanel.c StringUtils.c SwapMeter.c TasksMeter.c UptimeMeter.c \ +TraceScreen.c UsersTable.c Vector.c AvailableColumnsPanel.c AffinityPanel.c \ HostnameMeter.c OpenFilesScreen.c Affinity.c IncSet.c Action.c myhtopheaders = AvailableColumnsPanel.h AvailableMetersPanel.h \ @@ -29,9 +29,9 @@ CategoriesPanel.h CheckItem.h ClockMeter.h ColorsPanel.h ColumnsPanel.h \ CPUMeter.h CRT.h MainPanel.h DisplayOptionsPanel.h FunctionBar.h \ Hashtable.h Header.h htop.h ListItem.h LoadAverageMeter.h MemoryMeter.h \ BatteryMeter.h Meter.h MetersPanel.h Object.h Panel.h ProcessList.h RichString.h \ -ScreenManager.h Settings.h SignalsPanel.h String.h SwapMeter.h TasksMeter.h \ -UptimeMeter.h TraceScreen.h UsersTable.h Vector.h Process.h AffinityPanel.h \ -HostnameMeter.h OpenFilesScreen.h Affinity.h IncSet.h Action.h +ScreenManager.h Settings.h SignalsPanel.h StringUtils.h SwapMeter.h \ +TasksMeter.h UptimeMeter.h TraceScreen.h UsersTable.h Vector.h Process.h \ +AffinityPanel.h HostnameMeter.h OpenFilesScreen.h Affinity.h IncSet.h Action.h if HTOP_LINUX htop_CFLAGS += -rdynamic @@ -10,7 +10,7 @@ in the source distribution for its full text. #include "RichString.h" #include "Object.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "ListItem.h" #include "Settings.h" diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c index 296fdaf7..86eb3f8e 100644 --- a/OpenFilesScreen.c +++ b/OpenFilesScreen.c @@ -11,7 +11,7 @@ in the source distribution for its full text. #include "ProcessList.h" #include "ListItem.h" #include "IncSet.h" -#include "String.h" +#include "StringUtils.h" #include "FunctionBar.h" #include <string.h> @@ -10,7 +10,7 @@ in the source distribution for its full text. #include "CRT.h" #include "RichString.h" #include "ListItem.h" -#include "String.h" +#include "StringUtils.h" #include <math.h> #include <stdbool.h> @@ -9,7 +9,7 @@ in the source distribution for its full text. #include "Settings.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include "RichString.h" #include "Platform.h" diff --git a/ProcessList.c b/ProcessList.c index 050b74fa..e9bff680 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -9,7 +9,7 @@ in the source distribution for its full text. #include "Platform.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include <stdlib.h> #include <string.h> @@ -8,7 +8,7 @@ in the source distribution for its full text. #include "Settings.h" #include "Platform.h" -#include "String.h" +#include "StringUtils.h" #include "Vector.h" #include "CRT.h" diff --git a/String.c b/StringUtils.c index cbfd6877..5d1cc165 100644 --- a/String.c +++ b/StringUtils.c @@ -5,7 +5,7 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#include "String.h" +#include "StringUtils.h" #include "config.h" diff --git a/String.h b/StringUtils.h index cb7f1acc..5f8cb927 100644 --- a/String.h +++ b/StringUtils.h @@ -1,7 +1,7 @@ /* Do not edit this file. It was automatically generated. */ -#ifndef HEADER_String -#define HEADER_String +#ifndef HEADER_StringUtils +#define HEADER_StringUtils /* htop - String.h (C) 2004-2011 Hisham H. Muhammad diff --git a/TraceScreen.c b/TraceScreen.c index 197a0fd1..48107438 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -11,7 +11,7 @@ in the source distribution for its full text. #include "ProcessList.h" #include "ListItem.h" #include "IncSet.h" -#include "String.h" +#include "StringUtils.h" #include "FunctionBar.h" #include <stdio.h> diff --git a/linux/Battery.c b/linux/Battery.c index 532c118b..ebf20372 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -18,7 +18,7 @@ Linux battery readings written by Ian P. Hands (iphands@gmail.com, ihands@redhat #include <fcntl.h> #include <time.h> #include "BatteryMeter.h" -#include "String.h" +#include "StringUtils.h" #define SYS_POWERSUPPLY_DIR "/sys/class/power_supply" diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index d532c4c3..299cb861 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -8,7 +8,7 @@ in the source distribution for its full text. #include "LinuxProcessList.h" #include "LinuxProcess.h" #include "CRT.h" -#include "String.h" +#include "StringUtils.h" #include <errno.h> #include <sys/time.h> #include <sys/utsname.h> |