forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OSGeo#10972 from rouault/embedded_resources
RFC102 implementation: embedded resources
- Loading branch information
Showing
90 changed files
with
2,387 additions
and
1,189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -370,6 +370,7 @@ cid | |
CInt | ||
circularstrings | ||
ClampRequests | ||
clang | ||
ClassificationCode | ||
Clayers | ||
CleanTimeout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright 2024, Even Rouault <even.rouault at spatialys.com> | ||
|
||
#include "embedded_resources.h" | ||
|
||
#include "embedded_resources_gen1.c" | ||
|
||
const char *GRIBGetCSVFileContent(const char* pszFilename) | ||
{ | ||
static const struct | ||
{ | ||
const char* pszFilename; | ||
const char* pszContent; | ||
} asResources[] = { | ||
#include "embedded_resources_gen2.c" | ||
}; | ||
for( size_t i = 0; i < sizeof(asResources) / sizeof(asResources[0]); ++i ) | ||
{ | ||
if( strcmp(pszFilename, asResources[i].pszFilename) == 0 ) | ||
return asResources[i].pszContent; | ||
} | ||
return NULL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright 2024, Even Rouault <even.rouault at spatialys.com> | ||
|
||
#include "cpl_port.h" | ||
|
||
CPL_C_START | ||
|
||
const char *GRIBGetCSVFileContent(const char* pszFilename); | ||
|
||
CPL_C_END |
Oops, something went wrong.