[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/9] pkl: change `pkl_ast_format_loc' function
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [PATCH 6/9] pkl: change `pkl_ast_format_loc' function |
Date: |
Thu, 28 Dec 2023 16:09:39 +0100 |
On Thu, Dec 28, 2023 at 03:22:22PM +0100, Jose E. Marchesi wrote:
>
> > diff --git a/libpoke/pkl-ast.h b/libpoke/pkl-ast.h
> > index 0146977c..3eb0b1c2 100644
> > --- a/libpoke/pkl-ast.h
> > +++ b/libpoke/pkl-ast.h
> > @@ -2203,6 +2203,10 @@ pkl_ast_node pkl_ast_reverse (pkl_ast_node ast);
> > char *pkl_ast_format (pkl_ast_node ast);
> > void pkl_ast_print (FILE *fp, pkl_ast_node ast);
> >
> > -char *pkl_ast_format_loc (pkl_ast ast, pkl_ast_loc loc);
> > +/* Format location as a string.
> > +
> > + Null FILENAME is equal to passing "<stdin>" as the FILENAME. */
>
> I find that comment confusing.
>
> What about:
>
> "FILENAME is the name of whatever source the Poke program is read from,
> usually the name of a file. If it is NULL, then the source part of
> the location is formatted assuming <stdint>."
>
> Given that, OK.
Applied and pushed!
- Re: [PATCH 2/9] pkl: report location of constraint definition, (continued)
- [PATCH 6/9] pkl: change `pkl_ast_format_loc' function, Mohammad-Reza Nabipoor, 2023/12/27
- [PATCH 5/9] pkl: keep track of current filename in codgen, Mohammad-Reza Nabipoor, 2023/12/27
- [PATCH 8/9] pkl: report evaluation location in E_constraint exception, Mohammad-Reza Nabipoor, 2023/12/27
- [PATCH 9/9] pkl: fix location info for unary/binary/ternary exp, Mohammad-Reza Nabipoor, 2023/12/27
- Re: [PATCH 1/9] utils: fix build and distribution of `pk-jojopatch', Jose E. Marchesi, 2023/12/28