VirtualBox

source: vbox/trunk/src/bldprogs/scmdiff.h@ 74795

Last change on this file since 74795 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/* $Id: scmdiff.h 69500 2017-10-28 15:14:05Z vboxsync $ */
2/** @file
3 * IPRT Testcase / Tool - Source Code Massager Diff Code.
4 */
5
6/*
7 * Copyright (C) 2010-2017 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___scmdiff_h___
19#define ___scmdiff_h___
20
21#include <iprt/stream.h>
22#include "scmstream.h"
23
24RT_C_DECLS_BEGIN
25
26/**
27 * Diff state.
28 */
29typedef struct SCMDIFFSTATE
30{
31 size_t cDiffs;
32 const char *pszFilename;
33
34 PSCMSTREAM pLeft;
35 PSCMSTREAM pRight;
36
37 /** Whether to ignore end of line markers when diffing. */
38 bool fIgnoreEol;
39 /** Whether to ignore trailing whitespace. */
40 bool fIgnoreTrailingWhite;
41 /** Whether to ignore leading whitespace. */
42 bool fIgnoreLeadingWhite;
43 /** Whether to print special characters in human readable form or not. */
44 bool fSpecialChars;
45 /** The tab size. */
46 size_t cchTab;
47 /** Where to push the diff. */
48 PRTSTREAM pDiff;
49} SCMDIFFSTATE;
50/** Pointer to a diff state. */
51typedef SCMDIFFSTATE *PSCMDIFFSTATE;
52
53
54size_t ScmDiffStreams(const char *pszFilename, PSCMSTREAM pLeft, PSCMSTREAM pRight, bool fIgnoreEol,
55 bool fIgnoreLeadingWhite, bool fIgnoreTrailingWhite, bool fSpecialChars,
56 size_t cchTab, PRTSTREAM pDiff);
57
58RT_C_DECLS_END
59
60#endif
61
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette