summaryrefslogtreecommitdiff
path: root/generateversionscript.awk
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-07-15 21:08:09 (GMT)
committerJan Vorlicek <janvorli@microsoft.com>2015-07-16 19:47:36 (GMT)
commit441a97709757ec1b6edcaadb733941e64af8fb60 (patch)
tree201d0ac6ee252f936ec6d3df1bec6d8566694b58 /generateversionscript.awk
parentbff51f77734b6eca0cf31d823687c167fcfc7d57 (diff)
downloadcoreclr-441a97709757ec1b6edcaadb733941e64af8fb60.zip
coreclr-441a97709757ec1b6edcaadb733941e64af8fb60.tar.gz
coreclr-441a97709757ec1b6edcaadb733941e64af8fb60.tar.bz2
Extend the Unix hosting API
This change modifies the Unix hosting API so that the hosting app can create as many managed delegates as it needs and execute them as many times it wants. The new API contains separate functions to initialize and shutdown CoreCLR and a function to create a delegate. The current ExecuteAssembly function behavior stays unmodified for now to ensure that dnx that uses that API and that pulls the binary libcoreclr is not broken. After the dnx is updated to use the new coreclr_create_delegate API, I'll remove the ExecuteAssembly. Also done: 1) Added support for comments and skipping empty lines in the mscorwks_unixexports.src. 2) Restructured the mscorwks_unixexports.src 3) Added coreclr_execute_assembly to the unixinterface.cpp / exports 4) Modified coreruncommon.cpp to use the new hosting API
Diffstat (limited to 'generateversionscript.awk')
-rw-r--r--generateversionscript.awk7
1 files changed, 6 insertions, 1 deletions
diff --git a/generateversionscript.awk b/generateversionscript.awk
index 2aa1f4f..d1c294b 100644
--- a/generateversionscript.awk
+++ b/generateversionscript.awk
@@ -6,7 +6,12 @@ BEGIN {
# Remove the CR character in case the sources are mapped from
# a Windows share and contain CRLF line endings
gsub(/\r/,"", $0);
- print " " $0 ";";
+
+ # Skip empty lines and comment lines starting with semicolon
+ if (NF && !match($0, /^[:space:]*;/))
+ {
+ print " " $0 ";";
+ }
}
END {
print " local: *;"