Skip to content

Commit cf3116e

Browse files
Rename cborconstants_p.h to cborinternal_p.h
I'm going to add functions to it, so it won't be just constants. Signed-off-by: Thiago Macieira <[email protected]>
1 parent 588948d commit cf3116e

File tree

6 files changed

+32
-7
lines changed

6 files changed

+32
-7
lines changed

src/cborencoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
#include "cbor.h"
32-
#include "cborconstants_p.h"
32+
#include "cborinternal_p.h"
3333
#include "compilersupport_p.h"
3434

3535
#include <assert.h>

src/cborencoder_close_container_checked.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
#include "cbor.h"
32-
#include "cborconstants_p.h"
32+
#include "cborinternal_p.h"
3333
#include "compilersupport_p.h"
3434
#include "extract_number_p.h"
3535

src/cborconstants_p.h renamed to src/cborinternal_p.h

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
1-
#ifndef CBORCONSTANTS_P_H
2-
#define CBORCONSTANTS_P_H
1+
/****************************************************************************
2+
**
3+
** Copyright (C) 2017 Intel Corporation
4+
**
5+
** Permission is hereby granted, free of charge, to any person obtaining a copy
6+
** of this software and associated documentation files (the "Software"), to deal
7+
** in the Software without restriction, including without limitation the rights
8+
** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
** copies of the Software, and to permit persons to whom the Software is
10+
** furnished to do so, subject to the following conditions:
11+
**
12+
** The above copyright notice and this permission notice shall be included in
13+
** all copies or substantial portions of the Software.
14+
**
15+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
** THE SOFTWARE.
22+
**
23+
****************************************************************************/
24+
25+
#ifndef CBORINTERNAL_P_H
26+
#define CBORINTERNAL_P_H
327

428
/*
529
* CBOR Major types
@@ -49,4 +73,4 @@ enum {
4973
BreakByte = (unsigned)Break | (SimpleTypesType << MajorTypeShift)
5074
};
5175

52-
#endif /* CBORCONSTANTS_P_H */
76+
#endif /* CBORINTERNAL_P_H */

src/cborparser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#endif
3030

3131
#include "cbor.h"
32-
#include "cborconstants_p.h"
32+
#include "cborinternal_p.h"
3333
#include "compilersupport_p.h"
3434
#include "extract_number_p.h"
3535

src/cborpretty.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#endif
3030

3131
#include "cbor.h"
32+
#include "cborinternal_p.h"
3233
#include "compilersupport_p.h"
3334
#include "math_support_p.h"
3435

src/extract_number_p.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define _BSD_SOURCE 1
2626
#define _DEFAULT_SOURCE 1
2727
#include "cbor.h"
28-
#include "cborconstants_p.h"
28+
#include "cborinternal_p.h"
2929
#include "compilersupport_p.h"
3030
#include <stdlib.h>
3131

0 commit comments

Comments
 (0)