c2nim: bugfix: less picky about newlines in preprocessor defines

This commit is contained in:
Araq 2011-01-19 00:27:38 +01:00
commit 408eb6bbe7
4 changed files with 16 additions and 3 deletions

View file

@ -16,7 +16,7 @@ proc eatNewLine(p: var TParser, n: PNode) =
if p.tok.xkind == pxLineComment: if p.tok.xkind == pxLineComment:
skipCom(p, n) skipCom(p, n)
if p.tok.xkind == pxNewLine: getTok(p) if p.tok.xkind == pxNewLine: getTok(p)
else: elif p.tok.xkind == pxNewLine:
eat(p, pxNewLine) eat(p, pxNewLine)
proc skipLine(p: var TParser) = proc skipLine(p: var TParser) =

View file

@ -9,6 +9,15 @@ extern "C" {
# endif # endif
#endif #endif
typedef void (*callback_t) (int rc);
int aw_callback_set (AW_CALLBACK c, callback_t callback );
int aw_instance_callback_set (AW_CALLBACK c, callback_t callback);
#define AW_BUILD 85 // AW 5.0
// Limits
#define AW_MAX_AVCHANGE_PER_SECOND 10
#private expatDll #private expatDll
#if !defined(expatDll) #if !defined(expatDll)

View file

@ -1,11 +1,13 @@
- built-in serialization
- thread support: threadvar on Windows seems broken; - thread support: threadvar on Windows seems broken;
add --deadlock_prevention:on|off switch add --deadlock_prevention:on|off switch
- ban ``nil`` from the AST. This might also fix bugs concerning macros.
- we need a way to disable tests - we need a way to disable tests
- deprecate ^ and make it available as operator - deprecate ^ and make it available as operator
- test branch coverage - test branch coverage
- checked exceptions - checked exceptions
- built-in serialization
- do not ambiguity error for methods if ambiguity only affects the same - do not ambiguity error for methods if ambiguity only affects the same
dispatcher anyway dispatcher anyway
- slicing - slicing
@ -26,6 +28,7 @@ Bugs
- proc (x: int) is passable to proc (x: var int) !? - proc (x: int) is passable to proc (x: var int) !?
- detected by pegs module 64bit: p(result, result) should use a temporary! - detected by pegs module 64bit: p(result, result) should use a temporary!
- the parser allows empty object case branches - the parser allows empty object case branches
- Exception matching needs to take subclasses into account
To implement To implement

View file

@ -24,13 +24,14 @@ file: ticker
doc: "endb;intern;apis;lib;manual;tut1;tut2;nimrodc;overview" doc: "endb;intern;apis;lib;manual;tut1;tut2;nimrodc;overview"
doc: "tools;c2nim;niminst" doc: "tools;c2nim;niminst"
pdf: "manual;lib;tut1;tut2;nimrodc;c2nim;niminst" pdf: "manual;lib;tut1;tut2;nimrodc;c2nim;niminst"
srcdoc: "core/macros;core/threads;core/marshal"
srcdoc: "impure/graphics;pure/sockets" srcdoc: "impure/graphics;pure/sockets"
srcdoc: "system.nim;pure/os;pure/strutils;pure/math" srcdoc: "system.nim;pure/os;pure/strutils;pure/math"
srcdoc: "pure/complex;pure/times;pure/osproc;pure/pegs;pure/dynlib" srcdoc: "pure/complex;pure/times;pure/osproc;pure/pegs;pure/dynlib"
srcdoc: "pure/parseopt;pure/hashes;pure/strtabs;pure/lexbase" srcdoc: "pure/parseopt;pure/hashes;pure/strtabs;pure/lexbase"
srcdoc: "pure/parsecfg;pure/parsexml;pure/parsecsv;pure/parsesql" srcdoc: "pure/parsecfg;pure/parsexml;pure/parsecsv;pure/parsesql"
srcdoc: "pure/streams;pure/terminal;pure/cgi;impure/web;pure/unicode" srcdoc: "pure/streams;pure/terminal;pure/cgi;impure/web;pure/unicode"
srcdoc: "impure/zipfiles;pure/xmlgen;pure/macros;pure/parseutils;pure/browsers" srcdoc: "impure/zipfiles;pure/xmlgen;pure/parseutils;pure/browsers"
srcdoc: "impure/db_postgres;impure/db_mysql;impure/db_sqlite" srcdoc: "impure/db_postgres;impure/db_mysql;impure/db_sqlite"
srcdoc: "pure/httpserver;pure/httpclient;pure/stmp;impure/ssl" srcdoc: "pure/httpserver;pure/httpclient;pure/stmp;impure/ssl"
srcdoc: "pure/ropes;pure/unidecode/unidecode;pure/xmldom;pure/xmldomparser" srcdoc: "pure/ropes;pure/unidecode/unidecode;pure/xmldom;pure/xmldomparser"