summary refs log tree commit diff stats
path: root/lib/system
Commit message (Expand)AuthorAgeFilesLines
...
* Add the ability to pass a value with the -d flagJeff Ciesielski2016-07-041-1/+2
* Enhance values SIGNALS on more OS.cheatfate2016-06-161-1/+2
* Correction as I hadn't realised setvbuf had been renamed.A. S. Budden2016-06-131-3/+3
* Merged upstream/devel into this branch to resolve conflicts and ensure an eas...A. S. Budden2016-06-1317-238/+196
|\
| * Fixed emscripten compilationYuriy Glukhov2016-06-131-1/+1
| * fixes sysio/readChar regressionAndreas Rumpf2016-06-131-1/+1
| * disable StringStream for JS (needs copyMem)Jacek Sieka2016-06-081-1/+1
| * fix fgets typeJacek Sieka2016-06-081-1/+1
| * prefer consts to importing #defines from headersJacek Sieka2016-06-066-39/+65
| * remove system/ansi_c include from osJacek Sieka2016-06-054-30/+4
| * fix types of ansi_c/sysio to more closely match C ABIJacek Sieka2016-06-0511-167/+138
| * remove strange file types in ansi_cJacek Sieka2016-06-011-30/+17
* | Corrected setStdIoUnbuffered for systems without stdout, stderr or stdin decl...A. S. Budden2016-06-131-3/+6
* | Added setStdIoUnbuffered for unbuffered stdio (fixes #2146).A. S. Budden2016-06-121-0/+5
|/
* widestrs are always available for better interopAndreas Rumpf2016-05-281-2/+1
* Merge pull request #4216 from Parashurama/fix_4212Andreas Rumpf2016-05-251-2/+2
|\
| * fixes issue 4212 && add test for various valid zero floats.Parashurama2016-05-251-2/+2
* | gc:stack compiles with --threads:onAndreas Rumpf2016-05-251-7/+17
|/
* Merge pull request #4213 from oderwat/nimphpext-stack-gcAndreas Rumpf2016-05-252-3/+21
|\
| * Made nimphpext work with gc:stack.Hans Raaf2016-05-252-3/+21
* | fixes #4212Andreas Rumpf2016-05-251-5/+0
|/
* new GC listens to GC_ref/GC_unrefAndreas Rumpf2016-05-231-2/+21
* GC v2 compiles againAndreas Rumpf2016-05-231-0/+8
* Merge pull request #4199 from oderwat/oderwat-fix-pragmasAndreas Rumpf2016-05-221-2/+2
|\
| * Fixing pragmas (so syntax highligting works).Hans Raaf2016-05-201-2/+2
* | Merge branch 'prim-gc' into develAndreas Rumpf2016-05-222-185/+51
|\ \
| * | fixes #3184Andreas Rumpf2016-05-222-53/+45
| * | fixes #3793Andreas Rumpf2016-05-161-1/+1
| * | GC with primitive MSAndreas Rumpf2016-05-161-131/+5
* | | Fix toJSStr for control charactersnigredo-tori2016-05-201-1/+5
| |/ |/|
* | fixes some issues with underscores in float literals. add more tests.Parashurama2016-05-191-5/+7
* | fix issue 4181. add testcase.Parashurama2016-05-181-2/+5
* | Merge pull request #4173 from Parashurama/better_float_parsingAndreas Rumpf2016-05-171-37/+104
|\ \
| * | make float parsing locale independent.Parashurama2016-05-161-37/+104
| |/
* / fixes typo in system/timers.Parashurama2016-05-161-1/+1
|/
* PHP codegen improvementsAndreas Rumpf2016-05-131-1/+4
* Merge pull request #4142 from endragor/gc-allow-skip-stackAndreas Rumpf2016-05-122-2/+26
|\
| * Replaced ignoreStackAndRegisters with stackSize in GC_stepRuslan Mustakov2016-05-112-28/+48
| * Added ignoreStackAndRegisters parameter to GC_stepRuslan Mustakov2016-05-102-23/+27
* | PHP codegen array constructor hack.Hans Raaf2016-05-111-5/+8
|/
* JS target improvementsAndreas Rumpf2016-04-291-0/+2
* Merge remote-tracking branch 'origin/devel' into malloc-store-sizeJacek Sieka2016-04-2611-192/+734
|\
| * Fixed stacktrace errorYuriy Glukhov2016-04-261-0/+2
| * Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2016-04-191-0/+3
| |\
| | * Add `import sharedlist` when `hasThreadSupport`James Boyden2016-04-051-0/+3
| * | simple stuff works with --gc:stackAndreas Rumpf2016-04-183-212/+271
| |/
| * Merge branch 'devel' of github.com:nim-lang/Nim into develDominik Picheta2016-04-042-33/+53
| |\
| | * Use ``when insideRLocksModule`` instead of ``when compiles``Anatoly Galiulin2016-03-311-2/+2
| | * Fix ``XDeclaredButNotUsed`` warning when locks or rlocks module is usedAnatoly Galiulin2016-03-311-19/+16
| | * Merge pull request #4018 from cheatfate/dyncalls_changeAndreas Rumpf2016-03-311-2/+23
| | |\
pan> = self[context] except: self[context] = pointer = dict() if PY3: keys = keys.encode('utf-8').decode('latin-1') keys = list(parse_keybinding(keys)) if not keys: return last_key = keys[-1] for key in keys[:-1]: try: pointer = pointer[key] except: pointer[key] = pointer = dict() pointer[last_key] = leaf def use_keymap(self, keymap_name): self.keybuffer.keymap = self.get(keymap_name, dict()) if self.used_keymap != keymap_name: self.used_keymap = keymap_name self.keybuffer.clear() class KeyBuffer(object): any_key = ANYKEY passive_key = PASSIVE_ACTION quantifier_key = QUANT_KEY exclude_from_anykey = [27] def __init__(self, keymap=None): self.keymap = keymap self.clear() def clear(self): self.keys = [] self.wildcards = [] self.pointer = self.keymap self.result = None self.quantifier = None self.finished_parsing_quantifier = False self.finished_parsing = False self.parse_error = False if self.keymap and self.quantifier_key in self.keymap: if self.keymap[self.quantifier_key] == 'false': self.finished_parsing_quantifier = True def add(self, key): self.keys.append(key) self.result = None if not self.finished_parsing_quantifier and key in digits: if self.quantifier is None: self.quantifier = 0 self.quantifier = self.quantifier * 10 + key - 48 # (48 = ord(0)) else: self.finished_parsing_quantifier = True moved = True if key in self.pointer: self.pointer = self.pointer[key] elif self.any_key in self.pointer and \ key not in self.exclude_from_anykey: self.wildcards.append(key) self.pointer = self.pointer[self.any_key] else: moved = False if moved: if isinstance(self.pointer, dict): if self.passive_key in self.pointer: self.result = self.pointer[self.passive_key] else: self.result = self.pointer self.finished_parsing = True else: self.finished_parsing = True self.parse_error = True def __str__(self): return "".join("{0:c}".format(c) for c in self.keys)