mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
d943e28bc6
Summary: This PR changes `#include <CSSLayout/*.h>` to `#include "*.h"` within the `CSSLayout` directory. Rationale: Quote includes are preferred for user (aka local/project) includes, whereas angle includes are preferred for standard libraries and external frameworks. In particular, XCode 7.1+ will not search user paths (even the current directory) when angle brackets are used unless "Always search user paths" is enabled - it is off by default and [Apple recommend](https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW110) that it is only enabled for backwards compatibility. I think this is the best fix for https://github.com/facebook/react-native/issues/9014, and seems like good practice in any case. Closes https://github.com/facebook/css-layout/pull/217 Reviewed By: majak Differential Revision: D3764132 Pulled By: emilsjolander fbshipit-source-id: c8a6e8d19db71455922e3ba8f6c72bd66018fa84
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <assert.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "CSSLayout.h"
|
|
#include "CSSMacros.h"
|
|
|
|
CSS_EXTERN_C_BEGIN
|
|
|
|
typedef struct CSSNodeList *CSSNodeListRef;
|
|
|
|
CSSNodeListRef CSSNodeListNew(const uint32_t initialCapacity);
|
|
void CSSNodeListFree(const CSSNodeListRef list);
|
|
uint32_t CSSNodeListCount(const CSSNodeListRef list);
|
|
void CSSNodeListAdd(const CSSNodeListRef list, const CSSNodeRef node);
|
|
void CSSNodeListInsert(const CSSNodeListRef list, const CSSNodeRef node, const uint32_t index);
|
|
CSSNodeRef CSSNodeListRemove(const CSSNodeListRef list, const uint32_t index);
|
|
CSSNodeRef CSSNodeListDelete(const CSSNodeListRef list, const CSSNodeRef node);
|
|
CSSNodeRef CSSNodeListGet(const CSSNodeListRef list, const uint32_t index);
|
|
|
|
CSS_EXTERN_C_END
|