Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: chrome/installer/mini_installer/decompress.h

Issue 1133613002: Revert of mini_installer: Change to use _countof rather than base's arraysize macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
6 #define CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ 6 #define CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
7 7
8 // arraysize borrowed from basictypes.h
9 template <typename T, size_t N>
10 char (&ArraySizeHelper(T (&array)[N]))[N];
11 #define arraysize(array) (sizeof(::ArraySizeHelper(array)))
12
8 namespace mini_installer { 13 namespace mini_installer {
9 14
10 // Same as the tool, expand.exe. Decompresses a file that was compressed 15 // Same as the tool, expand.exe. Decompresses a file that was compressed
11 // using Microsoft's MSCF compression algorithm. 16 // using Microsoft's MSCF compression algorithm.
12 // |source| is the full path of the file to decompress and |destination| 17 // |source| is the full path of the file to decompress and |destination|
13 // is the full path of the target file. 18 // is the full path of the target file.
14 bool Expand(const wchar_t* source, const wchar_t* destination); 19 bool Expand(const wchar_t* source, const wchar_t* destination);
15 20
16 } // namespace mini_installer 21 } // namespace mini_installer
17 22
18 #endif // CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_ 23 #endif // CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
OLDNEW
« no previous file with comments | « chrome/installer/mini_installer/configuration_test.cc ('k') | chrome/installer/mini_installer/decompress.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698