Re: [PATCH 02/25] Define structure

2017-03-11 Thread Dmitry Bogatov
[2017-03-10 05:46] Thien-Thi Nguyen > () Dmitry Bogatov > () Mon, 18 Jul 2016 20:59:03 +0300 > >> > +(define-module (system foreign declarative) >> > +  #:export (make-foreign-type) >> > +  #:export (define-foreign-type)) >> > +(use-m

Re: [PATCH 18/25] write documentation for (system foreign declarative)

2016-07-19 Thread Dmitry Bogatov
> > Seems that 'scheme-bytestructures' can be used to implement something like > > `define-foreign-struct', but since it is not currently part of Guile, I, > > sure, > > can't depend on it. > > > > Also, 'parse-c-struct' provides similiar functionality. > > I was keeping an eye on this thread bec

Re: [PATCH 18/25] write documentation for (system foreign declarative)

2016-07-18 Thread Dmitry Bogatov
[2016-07-18 21:41] Amirouche Boubekki > > On 2016-07-18 17:17, kact...@gnu.org wrote: > > From: Dmitry Bogatov > > > > Document '' record type and 'define-foreign-type' > > procedure. > > Can you compare this 'foreign-type' libra

Re: [PATCH 02/25] Define structure

2016-07-18 Thread Dmitry Bogatov
> > +(define-module (system foreign declarative) > > +  #:export (make-foreign-type) > > +  #:export (define-foreign-type)) > > +(use-modules (srfi srfi-9)) > You don't have to write #:export several times, one just enough > #:export (make-foreign-type define-foreign-type) Thanks for review. I kn

Autoconf guile.m4 improvement

2014-08-12 Thread Dmitry Bogatov
regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D From d91eb9293bea7783afa8270c1826dc558c7380da Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Wed, 13 Aug 2014 10:13:25 +0400 Subject: [PATCH] Improve guile-site handling in autoconf * meta

Re: [PATCH 1/2] Fix memory leak on `realloc' failure

2014-04-12 Thread Dmitry Bogatov
* Dmitry Bogatov [2014-04-10 20:52:43+0400] > > > + { > > > + free (nargv); > > > return 0L; > > > + } > > > else > > > nargv[nargi++] = narg; > > I don't understand this. In both c

Re: [PATCH 1/2] Fix memory leak on `realloc' failure

2014-04-10 Thread Dmitry Bogatov
void *new_ptr = realloc(old_ptr, new_size); if (!new_ptr) free(old_ptr); return new_ptr; } Suggestions, maybe more conventional name? -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. git://kaction.name/rc-files.git GPG: 54B7F00D

Re: Fwd: Guile interpeter crash

2013-10-02 Thread Dmitry Bogatov
-9/curried-definitions.scm;h=fa369906ccd222b6aa2f3692f17638ca02eb2a41;hb=HEAD Thanks! I already found working solution, but your is cleaner. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F0

Guile interpeter crash

2013-10-01 Thread Dmitry Bogatov
`(vm-run "VM: Stack overflow" ())'. aborted -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments are forwarded to /dev/null.

Re: [PATCH] Implement doctest utility as guild script

2013-09-29 Thread Dmitry Bogatov
ssible to separate actual english documentation string and doctests. Displaying them in (help function-name) may be turned off or, imho (since I like examples in documentation), better, made optional. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian.

[code] Quoted-printable decoding.

2013-08-10 Thread Dmitry Bogatov
of Guile. If it possible, I would like to put my code to public domain to avoid legal issues. Code review is welcome. quoted-printable.scm Description: code -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git

Guile lisp code style (was: [guile] Re: Guile and Swig)

2013-04-18 Thread Dmitry Bogatov
I do not have to create a lot of foo-make-thing, foo-make-other functions with, essentially, elisp or C naming conventions. I still do not have feeling of functionality paradigm of Lisp, so I am trying to use object-oriented paradigm. Probably, it is aganist spirit of language. -- Best regards,

Guile and Swig

2013-04-16 Thread Dmitry Bogatov
most common style is `(action object arg1 ...)` and I find making object callable is more elegant: `(object #:action arg1 ...)`. Is it discouraged? 1. http://www.swig.org/ 2. http://www.ulduzsoft.com/linux/libircclient/ -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette

Re: [texinfo] Re: TeXInfo-related build failure

2013-03-24 Thread Dmitry Bogatov
* Mark H Weaver [2013-03-23 13:53:42-0400] > Dmitry Bogatov writes: > > Hello, list. I encountered following error, trying to build guile > > from git with `makeinfo (GNU texinfo) 5.1`. > > I believe these problems have been fixed on the stable-2.0 branch of the > Guile

TeXInfo-related build failure

2013-03-22 Thread Dmitry Bogatov
2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/share/arch-illusionoflife/build/guile-git/src/guile-build/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/share/arch-illusionoflife/build/guile-git/src/guile-build' make: ***