| ceed-jit-tools.c (78a97f55f6a0b493f351ed551b9ecfb9c33a05ae) | ceed-jit-tools.c (ecc88aeb6e47c91d01ac230341895a796d10ab95) |
|---|---|
| 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8#include <ceed-impl.h> --- 186 unchanged lines hidden (view full) --- 195 @param[in] source_file_path Absolute path to source file 196 @param[out] buffer String buffer for source file contents 197 198 @return An error code: 0 - success, otherwise - failure 199 200 @ref Backend 201**/ 202int CeedLoadSourceToBuffer(Ceed ceed, const char *source_file_path, char **buffer) { | 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8#include <ceed-impl.h> --- 186 unchanged lines hidden (view full) --- 195 @param[in] source_file_path Absolute path to source file 196 @param[out] buffer String buffer for source file contents 197 198 @return An error code: 0 - success, otherwise - failure 199 200 @ref Backend 201**/ 202int CeedLoadSourceToBuffer(Ceed ceed, const char *source_file_path, char **buffer) { |
| 203 // Initalize buffer | 203 // Initialize buffer |
| 204 CeedCall(CeedCalloc(1, buffer)); 205 206 // Load to initalized buffer 207 CeedCall(CeedLoadSourceToInitializedBuffer(ceed, source_file_path, buffer)); 208 209 return CEED_ERROR_SUCCESS; 210} 211 --- 86 unchanged lines hidden --- | 204 CeedCall(CeedCalloc(1, buffer)); 205 206 // Load to initalized buffer 207 CeedCall(CeedLoadSourceToInitializedBuffer(ceed, source_file_path, buffer)); 208 209 return CEED_ERROR_SUCCESS; 210} 211 --- 86 unchanged lines hidden --- |