poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Return NULL instead of calling exit in pkl_new


From: Jose E. Marchesi
Subject: Re: [PATCH] Return NULL instead of calling exit in pkl_new
Date: Fri, 10 Apr 2020 21:09:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Tim.

    2020-04-10  Tim Rühsen  <address@hidden>
    
            * lib/pkl.c (pkl_new): Return NULL instead of calling exit.
    ---
     ChangeLog | 4 ++++
     lib/pkl.c | 4 ++--
     2 files changed, 6 insertions(+), 2 deletions(-)


Nice, but please add a comment documenting the function in pkl.h right
before the prototype.  Something like this will do:

/* Create and return a new compiler.

   VM is the virtual machine that the compiler will use when it needs to
   run Poke programs.  This happens, for example, when the compiler
   bootstraps itself and loads libraries.

   RT_PATH should contain the name of a directory where the compiler can
   find its run-time support files.

   If there is an error creating the compiler this function returns
   NULL.  */

Please leave an empty line between the comment and the prototype.  I
try to follow that style in all the header files.

Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]