VirtualBox

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

Last change on this file since 78153 was 76585, checked in by vboxsync, 6 years ago

*: scm --fix-header-guard-endif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: scmdiff.h 76585 2019-01-01 06:31:29Z vboxsync $ */
2/** @file
3 * IPRT Testcase / Tool - Source Code Massager Diff Code.
4 */
5
6/*
7 * Copyright (C) 2010-2019 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 VBOX_INCLUDED_SRC_bldprogs_scmdiff_h
19#define VBOX_INCLUDED_SRC_bldprogs_scmdiff_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#include <iprt/stream.h>
25#include "scmstream.h"
26
27RT_C_DECLS_BEGIN
28
29/**
30 * Diff state.
31 */
32typedef struct SCMDIFFSTATE
33{
34 size_t cDiffs;
35 const char *pszFilename;
36
37 PSCMSTREAM pLeft;
38 PSCMSTREAM pRight;
39
40 /** Whether to ignore end of line markers when diffing. */
41 bool fIgnoreEol;
42 /** Whether to ignore trailing whitespace. */
43 bool fIgnoreTrailingWhite;
44 /** Whether to ignore leading whitespace. */
45 bool fIgnoreLeadingWhite;
46 /** Whether to print special characters in human readable form or not. */
47 bool fSpecialChars;
48 /** The tab size. */
49 size_t cchTab;
50 /** Where to push the diff. */
51 PRTSTREAM pDiff;
52} SCMDIFFSTATE;
53/** Pointer to a diff state. */
54typedef SCMDIFFSTATE *PSCMDIFFSTATE;
55
56
57size_t ScmDiffStreams(const char *pszFilename, PSCMSTREAM pLeft, PSCMSTREAM pRight, bool fIgnoreEol,
58 bool fIgnoreLeadingWhite, bool fIgnoreTrailingWhite, bool fSpecialChars,
59 size_t cchTab, PRTSTREAM pDiff);
60
61RT_C_DECLS_END
62
63#endif /* !VBOX_INCLUDED_SRC_bldprogs_scmdiff_h */
64
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