[vala] codegen: Add C11 keywords
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Add C11 keywords
- Date: Thu, 15 Sep 2016 07:42:46 +0000 (UTC)
commit e0075707ec6db95f66fcef7b95dc44ba2d8cf10e
Author: Steven Oliver <oliver steven gmail com>
Date: Sat Feb 22 14:22:17 2014 -0500
codegen: Add C11 keywords
https://bugzilla.gnome.org/show_bug.cgi?id=724967
codegen/valaccodebasemodule.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 72aeed7..0e3a606 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -403,6 +403,15 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
reserved_identifiers.add ("volatile");
reserved_identifiers.add ("while");
+ // C11 keywords
+ reserved_identifiers.add ("_Alignas");
+ reserved_identifiers.add ("_Alignof");
+ reserved_identifiers.add ("_Atomic");
+ reserved_identifiers.add ("_Generic");
+ reserved_identifiers.add ("_Noreturn");
+ reserved_identifiers.add ("_Static_assert");
+ reserved_identifiers.add ("_Thread_local");
+
// MSVC keywords
reserved_identifiers.add ("cdecl");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]