Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Behnke
graphicsframework
Commits
f5f1ebfa
Commit
f5f1ebfa
authored
17 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Using explicit linkage
parent
56b4abbb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
ResourceFactory.h
+3
-3
3 additions, 3 deletions
ResourceFactory.h
Starsphere.h
+6
-6
6 additions, 6 deletions
Starsphere.h
orc/ResourceCompiler.cpp
+3
-3
3 additions, 3 deletions
orc/ResourceCompiler.cpp
with
12 additions
and
12 deletions
ResourceFactory.h
+
3
−
3
View file @
f5f1ebfa
...
...
@@ -64,7 +64,7 @@ private:
* \todo Does this need to be global?
* Maybe we should wrap a class around the generated resources?
*/
extern
const
string
c_ResourceIdentifiers
[];
extern
"C++"
const
string
c_ResourceIdentifiers
[];
/**
* \brief Declaration of the external list of resource indices
...
...
@@ -78,7 +78,7 @@ extern const string c_ResourceIdentifiers[];
* \todo Does this need to be global?
* Maybe we should wrap a class around the generated resources?
*/
extern
const
unsigned
int
c_ResourceIndex
[][
2
];
extern
"C++"
const
unsigned
int
c_ResourceIndex
[][
2
];
/**
* \brief Declaration of the external resource storage container
...
...
@@ -90,6 +90,6 @@ extern const unsigned int c_ResourceIndex[][2];
* \todo Does this need to be global?
* Maybe we should wrap a class around the generated resources?
*/
extern
const
unsigned
char
c_ResourceStorage
[];
extern
"C++"
const
unsigned
char
c_ResourceStorage
[];
#endif
/*RESOURCEFACTORY_H_*/
This diff is collapsed.
Click to expand it.
Starsphere.h
+
6
−
6
View file @
f5f1ebfa
...
...
@@ -216,15 +216,15 @@ private:
};
/* Constellation & star coordinates are in starlist.C */
extern
float
star_info
[][
2
];
extern
int
Nstars
;
extern
"C"
float
star_info
[][
2
];
extern
"C"
int
Nstars
;
/* Pulsar coordinates are in pulsar_list.C */
extern
float
pulsar_info
[][
2
];
extern
int
Npulsars
;
extern
"C"
float
pulsar_info
[][
2
];
extern
"C"
int
Npulsars
;
/* SNR coordinates are in snr_list.C */
extern
float
SNR_info
[][
2
];
extern
int
NSNRs
;
extern
"C"
float
SNR_info
[][
2
];
extern
"C"
int
NSNRs
;
#endif
/*STARSPHERE_H_*/
This diff is collapsed.
Click to expand it.
orc/ResourceCompiler.cpp
+
3
−
3
View file @
f5f1ebfa
...
...
@@ -64,17 +64,17 @@ void ResourceCompiler::compile()
// write code file contents (remove trailing commas)
string
output
=
resourceIdentifierInitializer
.
str
();
outputFile
<<
"std::string c_ResourceIdentifiers[] = {"
<<
endl
;
outputFile
<<
"
extern
\"
C++
\"
const
std::string c_ResourceIdentifiers[] = {"
<<
endl
;
outputFile
<<
output
.
substr
(
0
,
output
.
length
()
-
1
);
outputFile
<<
endl
<<
"};"
<<
endl
<<
endl
;
output
=
resourceIndexInitializer
.
str
();
outputFile
<<
"unsigned int c_ResourceIndex[][2] = {"
<<
endl
;
outputFile
<<
"
extern
\"
C++
\"
const
unsigned int c_ResourceIndex[][2] = {"
<<
endl
;
outputFile
<<
output
.
substr
(
0
,
output
.
length
()
-
1
);
outputFile
<<
endl
<<
"};"
<<
endl
<<
endl
;
output
=
resourceStorageInitializer
.
str
();
outputFile
<<
"unsigned char c_ResourceStorage[] = {"
<<
endl
;
outputFile
<<
"
extern
\"
C++
\"
const
unsigned char c_ResourceStorage[] = {"
<<
endl
;
outputFile
<<
output
.
substr
(
0
,
output
.
length
()
-
1
);
outputFile
<<
endl
<<
"};"
<<
endl
<<
endl
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment