summary refs log tree commit diff stats
path: root/lib/pure/marshal.nim
Commit message (Collapse)AuthorAgeFilesLines
* [backport] run nimpretty on the remaining filesnarimiran2019-09-301-1/+1
|
* remove stdlib case transitions (#11401)Jasper Jenkins2019-06-051-1/+1
|
* improve 'marshal' documentation, refs #10330 (#11398)Miran2019-06-041-16/+55
|
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-2/+2
|
* fixes #8916 by fixing typeinfo and marshal. (#9341)Vindaar2018-10-131-7/+5
| | | | | | | | | * fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo Need to check in `typeinfo` for nil of the underlying pointer. In marshal don't have to check for nil of seq anymore. * remove reference to string, sequence in `isNil` doc string
* document usage of marshal.to; fixes #3150Araq2018-09-031-0/+11
|
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-2/+1
|
* Update marshal.nimFederico Ceratto2018-06-131-0/+1
|
* Add hint on JSON serializationFederico Ceratto2018-06-131-0/+1
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-1/+0
|
* more replacements for the deprecated '<'Andreas Rumpf2017-10-291-1/+1
|
* Add marshal format warningFederico Ceratto2016-11-191-0/+1
|
* Add [un]marshalling examplesFederico Ceratto2016-11-191-0/+6
|
* Use array encoding for non-UTF-8 strings in marshal. Fixes #4779.Ruslan Mustakov2016-09-161-27/+23
|
* marshal now can handle binary data in stringsRuslan Mustakov2016-09-131-2/+26
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-1/+1
|
* Fixes example code in marshal module.Dominik Picheta2015-07-261-1/+1
|
* lib/pure/e-o - Dropped 'T' from typespdw2015-06-041-13/+15
|
* marshalling can be done at compile-timeAraq2015-04-251-21/+32
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* doc improvementsAraq2014-11-271-2/+2
|
* more modules updatedAraq2014-08-281-319/+319
|
* big renameAraq2014-08-271-5/+5
|
* bugfix: marshal supports unsigned numbersAraq2013-06-271-1/+1
|
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* bugfix: typeinfo.extendSeqAraq2013-01-271-1/+1
|
* made tests green againAraq2012-08-241-1/+1
|
* more uint related fixesZahary Karadjov2012-06-141-111/+111
|
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* got rid of akPureObjectAraq2011-09-241-2/+2
|
* bugfix: 'set' overloadable; further steps for multi threading supportAraq2011-07-081-1/+32
|
* code gen bugfixes; marshal.nim implementedAraq2011-06-261-0/+288
if(regcomp(reg, rule[i].tpattern, 0)) free(reg); else rreg[i].tregex = reg; } } } void settags(Client *c) { char prop[512]; unsigned int i, j; regmatch_t tmp; Bool matched = False; XClassHint ch; if(XGetClassHint(dpy, c->win, &ch)) { snprintf(prop, sizeof(prop), "%s:%s:%s", ch.res_class ? ch.res_class : "", ch.res_name ? ch.res_name : "", c->name); for(i = 0; !matched && i < len; i++) if(rreg[i].clregex && !regexec(rreg[i].clregex, prop, 1, &tmp, 0)) { c->isfloat = rule[i].isfloat; for(j = 0; rreg[i].tregex && j < ntags; j++) { if(!regexec(rreg[i].tregex, tags[j], 1, &tmp, 0)) { matched = True; c->tags[j] = True; } } } if(ch.res_class) XFree(ch.res_class); if(ch.res_name) XFree(ch.res_name); } if(!matched) for(i = 0; i < ntags; i++) c->tags[i] = seltag[i]; } void tag(Arg *arg) { unsigned int i; if(!sel) return; for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; settitle(sel); if(!isvisible(sel)) arrange(NULL); else drawstatus(); } void toggletag(Arg *arg) { unsigned int i; if(!sel) return; sel->tags[arg->i] = !sel->tags[arg->i]; for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags) sel->tags[arg->i] = True; settitle(sel); if(!isvisible(sel)) arrange(NULL); else drawstatus(); }