diff options
-rwxr-xr-x | rod/c2nim/cparse.nim | 1 | ||||
-rw-r--r-- | rod/c2nim/tests/systest.c | 3 | ||||
-rwxr-xr-x | web/index.txt | 9 | ||||
-rwxr-xr-x | web/news.txt | 1 |
4 files changed, 10 insertions, 4 deletions
diff --git a/rod/c2nim/cparse.nim b/rod/c2nim/cparse.nim index b637bfa61..f5e6c95f8 100755 --- a/rod/c2nim/cparse.nim +++ b/rod/c2nim/cparse.nim @@ -583,6 +583,7 @@ proc otherTypeDef(p: var TParser, section, typ: PNode) = name = skipIdent(p) else: # typedef typ name; + t = typ name = skipIdent(p) t = parseTypeSuffix(p, t) addTypeDef(section, name, t) diff --git a/rod/c2nim/tests/systest.c b/rod/c2nim/tests/systest.c index 7983d9e1c..022bf8350 100644 --- a/rod/c2nim/tests/systest.c +++ b/rod/c2nim/tests/systest.c @@ -7,6 +7,9 @@ extern "C" { #endif +typedef char gchar; +typedef unsigned int gunsignedint; + point* newPoint(void) { for (int i = 0; i < 89; ++i) echo("test" " string " "concatenation"); for (; j < 54; j++) {} diff --git a/web/index.txt b/web/index.txt index c227c268a..09e18c5aa 100755 --- a/web/index.txt +++ b/web/index.txt @@ -22,9 +22,9 @@ Welcome to Nimrod import re for x in lines("myfile.txt"): - if x =~ r"(\w+)=(.*)": - echo "Key: ", matches[1], - " Value: ", matches[2] + if x =~ re"(\w+)=(.*)": + echo "Key: ", matches[0], + " Value: ", matches[1] **Nimrod** is a new statically typed, imperative programming language, that supports procedural, object oriented, functional @@ -93,7 +93,8 @@ Nimrod plays nice with others Porting to other platforms is easy. * **There are bindings to GTK2, the Windows API, the POSIX API, OpenGL, SDL, Cario, Python, Lua, TCL, X11, libzip, PRCE, ODBC, libcurl, mySQL and SQLite.** - New bindings are easily generated in a semi-automatic way. +* A C to Nimrod conversion utility: New bindings to C libraries are easily + generated by ``c2nim``. * A Pascal to Nimrod conversion utility: A large subset of Object Pascal can be translated to Nimrod automatically! diff --git a/web/news.txt b/web/news.txt index 27f37b374..dcb8cb144 100755 --- a/web/news.txt +++ b/web/news.txt @@ -36,6 +36,7 @@ Additions needs to be recompiled. - Added ``system.reopen``. - Added ``system.getCurrentException``. +- Added ``system.appType``. - Added ``times.epochTime`` and ``times.cpuTime``. - Implemented explicit type arguments for generics. - Implemented implicit type arguments for generics. |