X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=blobdiff_plain;f=NewQC.md;h=b2fd90d86f6ef9fe3d570b27a6deff7259406322;hp=07f15f36af5d3ad259e63f533068cc541db99b97;hb=d572a80a17089328603fc061c5d99e716a85fa2b;hpb=9d31c70f79e3c94c94c4cc1d0afa919c26bc8292
diff --git a/NewQC.md b/NewQC.md
index 07f15f3..b2fd90d 100644
--- a/NewQC.md
+++ b/NewQC.md
@@ -3,7 +3,10 @@ New QC Syntax
It is possible that at some point we decide to switch QC-compiler which requires some changes to the code.
-**For more information see** http://dev.xonotic.org/projects/bocc
+~~For more information see http://dev.xonotic.org/projects/bocc~~
+
+(Update: Blub's bocc compiler didn't make it, but someone else came along, both devs [joined forces](https://github.com/graphitemaster/gmqcc/graphs/contributors) and brought us [GMQCC](https://graphitemaster.github.io/gmqcc/doc.html).
+ This is now the QuakeC compiler used by the Xonotic project.)
Clean syntax:
-------------
@@ -13,16 +16,16 @@ A clean syntax is needed, the current implementation uses the following:
|definition|meaning|
|----------|-------|
-|float foo
|global variable|
-|float .foo
|entity field|
-|.float foo
|fieldpointer|
-|.float .foo
|entity field of type fieldpointer|
-|float foo(void)
|function|
-|float foo\*(void)
|function pointer|
-|.float foo(void)
|function returning a fieldpointer .float|
-|.float foo\*(void)
|function pointer, returning a fieldpointer .float|
-|float .foo(void)
|entity field of type function returning float|
-|.float .foo(void)
|entity field of type function returning fieldpointer|
+|`float foo`|global variable|
+|`float .foo`|entity field|
+|`.float foo`|fieldpointer|
+|`.float .foo`|entity field of type fieldpointer|
+|`float foo(void)`|function|
+|`float foo*(void)`|function pointer|
+|`.float foo(void)`|function returning a fieldpointer .float|
+|`.float foo*(void)`|function pointer, returning a fieldpointer .float|
+|`float .foo(void)`|entity field of type function returning float|
+|`.float .foo(void)`|entity field of type function returning fieldpointer|
Function definitions:
---------------------
@@ -95,5 +98,5 @@ Hereâs an example that assumes float parameters and prints them one after the
myprint(count-1, ...);
}
-So myprint(4, 1, 2, 3, 4)
would print â1, 2, 3, 4\\nâ
+So `myprint(4, 1, 2, 3, 4)` would print "1, 2, 3, 4\\n"