aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-09-05 21:21:59 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-09-05 21:21:59 -0400
commit6632d85e5f1120784b3eb0a7ab8be0792ba27b85 (patch)
treec9665957482dcb85e70ab9dd17954dfacb0d6961 /src/analyze.cpp
parent1d8b8ad687facd25a27b3ff6d083812b45cd529f (diff)
downloadzig-6632d85e5f1120784b3eb0a7ab8be0792ba27b85.tar.gz
zig-6632d85e5f1120784b3eb0a7ab8be0792ba27b85.zip
stage1: improve handling of generic fn proto type expr
closes #902
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 58fe9e7392..aa4fda7624 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1013,7 +1013,7 @@ bool calling_convention_does_first_arg_return(CallingConvention cc) {
return cc == CallingConventionUnspecified;
}
-static const char *calling_convention_name(CallingConvention cc) {
+const char *calling_convention_name(CallingConvention cc) {
switch (cc) {
case CallingConventionUnspecified: return "undefined";
case CallingConventionC: return "ccc";
@@ -1037,7 +1037,7 @@ static const char *calling_convention_fn_type_str(CallingConvention cc) {
zig_unreachable();
}
-static bool calling_convention_allows_zig_types(CallingConvention cc) {
+bool calling_convention_allows_zig_types(CallingConvention cc) {
switch (cc) {
case CallingConventionUnspecified:
case CallingConventionAsync: