Skip to content

Commit bdf9706

Browse files
INI: don't expose "ini_valueobj.h" API
1 parent 0f8a35b commit bdf9706

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ini/ini_configobj.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#include <unistd.h>
3030
#include <limits.h>
3131
#include <stdio.h>
32-
#include "ini_valueobj.h"
32+
#include "ref_array.h"
33+
34+
struct value_obj;
3335

3436
#ifndef DING_ATTR_FORMAT
3537
# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))

ini/ini_get_array_valueobj.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "collection_tools.h"
3333
#include "ini_defines.h"
3434
#include "ini_configobj.h"
35+
#include "ini_valueobj.h"
3536

3637
/*
3738
* Internal contants to indicate how
@@ -93,7 +94,7 @@ static char **get_str_cfg_array(struct value_obj *vo,
9394

9495
/* Allocate memory for the copy of the string */
9596
TRACE_INFO_NUMBER("Length to allocate is :", dlen);
96-
/* Always reserve one more byte
97+
/* Always reserve one more byte
9798
* for the case when the string consist of delimeters */
9899
copy = malloc(dlen + 1);
99100
if (copy == NULL) {

0 commit comments

Comments
 (0)