59{
60
62
64 size_t BufLen1, BufLen2;
71 INT FileSizeFile1, FileSizeFile2;
72 INT NumberOfOptions = 0;
75
76
78
79
81 {
83 {
85 {
88 NumberOfOptions++;
89 break;
90
93 NumberOfOptions++;
94 break;
95
99
100 default:
104 }
105 }
106 }
107
108 if (
argc - NumberOfOptions == 3)
109 {
112 }
113 else
114 {
117 }
118
121 {
125 }
126
129 {
133 }
134
136 {
140 }
142 {
146 }
147
149
151 if (FileSizeFile1 == -1)
152 {
156 }
157
159 if (FileSizeFile2 == -1)
160 {
164 }
165
166 if (FileSizeFile1 != FileSizeFile2)
167 {
171 }
172
175 while (1)
176 {
179
181 {
185 }
186
187 if (!BufLen1 && !BufLen2)
188 break;
189
190 assert(BufLen1 == BufLen2);
191 for (
i = 0;
i < BufLen1;
i++)
192 {
193 if (Buff1[
i] != Buff2[
i])
194 {
195 FilesOK = 0;
196
197
198 if (bLineNos)
200 else
202
203 if (bAscii)
204 {
207 }
208 else
209 {
212 }
213 }
214
216
217 if (Buff1[
i] ==
'\n')
219 }
220 }
221
222 if (FilesOK)
224
226 if (fp2)
228 if (fp1)
230
231 if (Buff2)
233 if (Buff1)
235
237}
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
#define IDS_FILESIZEERROR
#define IDS_HEXADECIMALDIFF
#define IDS_INVALIDSWITCH
#define IDS_MISMATCHOFFSET
size_t GetBuff(PBYTE buff, FILE *in)
void ConPuts(FILE *fp, LPCWSTR psz)
#define ConInitStdStreams()
void ConResPrintf(FILE *fp, UINT nID,...)
void ConResPuts(FILE *fp, UINT nID)
int CDECL fclose(FILE *file)
FILE *CDECL _wfopen(const wchar_t *path, const wchar_t *mode)
int CDECL ferror(FILE *file)
static const WCHAR Cleanup[]
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ ULONG _In_ ULONG Offset