summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fixes #794Araq2015-03-072-18/+23
|
* Fixing import path support inconsitency.Hans Raaf2015-03-071-1/+1
|
* fixes #2229Araq2015-03-052-181/+177
|
* fixes #2250Araq2015-03-051-242/+242
|
* Merge pull request #2249 from flaviut/fix-nimcheckAndreas Rumpf2015-03-051-0/+3
|\ | | | | Fix #2247
| * Fix #2247Flaviu Tamas2015-03-041-0/+3
| | | | | | | | Thanks @Araq for the suggestion
* | prevent name mangling for C++ DLLsAraq2015-03-051-29/+29
| |
* | fixes #2252Araq2015-03-043-45/+47
| |
* | cleaned up whitespaceAraq2015-03-041-22/+22
| |
* | Replaced deprecated repeatStr() with repeat().Hans Raaf2015-03-041-1/+1
| |
* | Replaced deprecated repeatChar() with repeat() or spaces().Hans Raaf2015-03-046-29/+29
| |
* | makes Aporia build for 64bit archsAraq2015-03-032-178/+173
|/
* test tsets2.nim compiles againAraq2015-03-011-3/+3
|
* some love for the testsuite; fixed regressionsAraq2015-03-012-3/+6
|
* minor cleanupsAraq2015-03-013-5/+4
|
* Make reading from stdin work again.def2015-03-012-2/+2
| | | | Bootstrapping tested on Linux from csources.
* bootstrapping works again on WindowsAraq2015-03-011-1/+1
|
* fixes #2233Araq2015-02-281-68/+80
|
* Merge pull request #2202 from def-/compile-stdinAndreas Rumpf2015-02-285-4/+15
|\ | | | | Make compiler read files from stdin
| * When compiling from stdin write binary to stdinfiledef2015-02-283-2/+4
| |
| * Rename stdin fake module name to stdinFiledef2015-02-281-1/+1
| |
| * Make compiler read files from stdindef2015-02-223-3/+12
| | | | | | | | Special "-" file as stdin.
* | fixes #2169Araq2015-02-284-5/+13
| |
* | don't use stdout for nimsuggest server modeAraq2015-02-277-25/+29
| |
* | reprocess pragmas after macro annotation for SqueakNimAraq2015-02-271-4/+10
| |
* | improved --debugger switch; updated release planAraq2015-02-271-5/+15
| |
* | added a commentAraq2015-02-261-2/+2
| |
* | fixes #2216Araq2015-02-264-16/+20
| |
* | tsigtypeop.nim works againAraq2015-02-253-3/+3
| |
* | fixes #2215Araq2015-02-252-11/+12
| |
* | tester reports ignored tests and supports 'nimout'; fixes #2211Araq2015-02-251-1/+2
| |
* | Merge pull request #2184 from oderwat/feat-caseofwhenAndreas Rumpf2015-02-241-2/+6
|\ \ | | | | | | Allow empty sets in case/of branches.
| * | Allow empty sets in case/of branches.Hans Raaf2015-02-241-2/+6
| | | | | | | | | | | | | | | | | | | | | Added support for conditional compilation using 'when' with empty sets and arrays in 'case of' branches. Please enter the commit message for your changes. Lines starting
* | | fixes #2199, fixes #2197Araq2015-02-243-24/+29
| | |
* | | Fixes NimSuggest's socket mode.Dominik Picheta2015-02-241-3/+7
|/ /
* | types API: now works for proc():voidAraq2015-02-241-1/+5
| |
* | implements a type API for macrosAraq2015-02-245-22/+163
| |
* | small cleanup of ast.nimAraq2015-02-241-150/+106
| |
* | macros.PNimrodNode is now NimNodeAraq2015-02-245-5/+9
|/
* Allow ranges with unsigned integer ordinals to be used as parameter types ↵Varriount2015-02-211-1/+1
| | | | for procedures.
* fixes #2134Araq2015-02-201-1/+1
|
* fixes #1902Araq2015-02-201-4/+5
|
* fixes #2167Araq2015-02-203-5/+12
|
* Merge pull request #2180 from oderwat/fix-nimfix-compileAndreas Rumpf2015-02-201-1/+1
|\ | | | | Changed paths so that it nimfix compiles from prominent dirs.
| * Changed project relative path to include the right directory.Hans Raaf2015-02-201-1/+1
| |
* | fixes #2051Araq2015-02-202-1/+5
|/
* make huge.nim urhonimo example compileAraq2015-02-181-1/+1
|
* fixes #2125Araq2015-02-184-15/+39
|
* Merge pull request #2155 from def-/warningsAndreas Rumpf2015-02-183-5/+5
|\ | | | | Fix a few more warnings
| * Fix a few more warningsdef2015-02-173-5/+5
| |
n">text, unsigned int len) { XRectangle r; if(dc.font.set) { XmbTextExtents(dc.font.set, text, len, NULL, &r); return r.width; } return XTextWidth(dc.font.xfont, text, len); } unsigned int textw(char *text) { return textnw(text, strlen(text)); } void initfont(const char *fontstr) { char **missing, *def; int i, n; missing = NULL; setlocale(LC_ALL, ""); if(dc.font.set) XFreeFontSet(dpy, dc.font.set); dc.font.set = XCreateFontSet(dpy, fontstr, &missing, &n, &def); if(missing) { while(n--) fprintf(stderr, "missing fontset: %s\n", missing[n]); XFreeStringList(missing); if(dc.font.set) { XFreeFontSet(dpy, dc.font.set); dc.font.set = NULL; } } if(dc.font.set) { XFontSetExtents *font_extents; XFontStruct **xfonts; char **font_names; dc.font.ascent = dc.font.descent = 0; font_extents = XExtentsOfFontSet(dc.font.set); n = XFontsOfFontSet(dc.font.set, &xfonts, &font_names); for(i = 0, dc.font.ascent = 0, dc.font.descent = 0; i < n; i++) { if(dc.font.ascent < (*xfonts)->ascent) dc.font.ascent = (*xfonts)->ascent; if(dc.font.descent < (*xfonts)->descent) dc.font.descent = (*xfonts)->descent; xfonts++; } } else { if(dc.font.xfont) XFreeFont(dpy, dc.font.xfont); dc.font.xfont = NULL; dc.font.xfont = XLoadQueryFont(dpy, fontstr); if (!dc.font.xfont) dc.font.xfont = XLoadQueryFont(dpy, "fixed"); if (!dc.font.xfont) error("error, cannot init 'fixed' font\n"); dc.font.ascent = dc.font.xfont->ascent; dc.font.descent = dc.font.xfont->descent; } dc.font.height = dc.font.ascent + dc.font.descent; }