Author: hbelusca
Date: Wed Jan 7 18:25:21 2015
New Revision: 65996
URL:
http://svn.reactos.org/svn/reactos?rev=65996&view=rev
Log:
[HPP]: tab2space fixes.
Modified:
trunk/reactos/tools/hpp/hpp.c
Modified: trunk/reactos/tools/hpp/hpp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/hpp/hpp.c?rev=65996&…
==============================================================================
--- trunk/reactos/tools/hpp/hpp.c [iso-8859-1] (original)
+++ trunk/reactos/tools/hpp/hpp.c [iso-8859-1] Wed Jan 7 18:25:21 2015
@@ -38,30 +38,30 @@
char*
convert_path(const char* origpath)
{
- char* newpath;
- int i;
-
- newpath = strdup(origpath);
-
- i = 0;
- while (newpath[i] != 0)
- {
+ char* newpath;
+ int i;
+
+ newpath = strdup(origpath);
+
+ i = 0;
+ while (newpath[i] != 0)
+ {
#ifdef UNIX_PATHS
- if (newpath[i] == '\\')
- {
- newpath[i] = '/';
- }
+ if (newpath[i] == '\\')
+ {
+ newpath[i] = '/';
+ }
#else
#ifdef DOS_PATHS
- if (newpath[i] == '/')
- {
- newpath[i] = '\\';
- }
+ if (newpath[i] == '/')
+ {
+ newpath[i] = '\\';
+ }
#endif
#endif
- i++;
- }
- return newpath;
+ i++;
+ }
+ return newpath;
}
char*
@@ -73,18 +73,18 @@
void*
LoadFile(const char* pszFileName, size_t* pFileSize)
{
- FILE* file;
- void* pFileData = NULL;
- int iFileSize;
+ FILE* file;
+ void* pFileData = NULL;
+ int iFileSize;
trace("Loading file...");
- file = fopen(pszFileName, "rb");
- if (!file)
- {
- trace("Could not open file\n");
- return NULL;
- }
+ file = fopen(pszFileName, "rb");
+ if (!file)
+ {
+ trace("Could not open file\n");
+ return NULL;
+ }
fseek(file, 0L, SEEK_END);
iFileSize = ftell(file);
@@ -109,7 +109,7 @@
fclose(file);
- return pFileData;
+ return pFileData;
}