-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
1570 lines (1231 loc) · 53.6 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2019-11-08 Jose E. Marchesi <[email protected]>
* HACKING (Writing poke Tests): New section.
2019-11-08 Jose E. Marchesi <[email protected]>
* src/pkl-tab.y: Handle compound statements in the parser
destructor.
2019-11-07 Jose E. Marchesi <[email protected]>
* src/pk-repl.h: New file.
* src/pk-repl.c: Likewise.
* src/Makefile.am (poke_SOURCES): Add pk-repl.c and pk-repl.h
* HACKING (Appendix): Add src/pk-repl.h and src/pk-repl.c to the
list of sources.
* src/poke.c: Include pk-repl.h
(repl): Remove function.
(main): Use pk_repl.
2019-11-06 Darshit Shah <[email protected]>
* bootstrap.conf: Exit out if jitter's bootstrap fails
2019-11-06 Jose E. Marchesi <[email protected]>
* src/pk-term.c (pk_term_hyperlink): Fix guard.
(pk_term_end_hyperlink): Likewise.
2019-11-06 Jose E. Marchesi <[email protected]>
* HACKING (Write After Approval): Add Darshit Shah to the list of
commiters.
2019-11-05 Jose E. Marchesi <[email protected]>
* testsuite/poke.pkl/union-diag-7.pk: New test.
* src/pkl-tab.y (struct_type_field): Adjust location for $$ when
the first token in the rule is empty.
2019-11-05 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Field Endianness): New section.
2019-11-05 Jose E. Marchesi <[email protected]>
* src/pkl-gen.h (struct pkl_gen_payload): New field endian.
* src/pkl-gen.pks (struct_field_mapper): Handle field endianness.
* src/pkl-gen.c (pkl_gen_ps_type_integral): Likewise.
* src/pkl-asm.c (pkl_asm_insn): Handle PKL_INSN_POKE.
(pkl_asm_insn_poke): New function.
* src/pkl-insn.def: Define PKL_INSN_POKE.
* testsuite/poke.map/maps-structs-endian-1.pk: New test.
2019-11-05 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (PKL_AST_STRUCT_TYPE_FIELD_ENDIAN): Define.
(enum pkl_ast_endian): New entry PKL_AST_DFL.
(struct pkl_ast_struct_type_field): New field endian.
* src/pkl-ast.c (pkl_ast_make_struct_type_field): Handle the
`endian' attribute.
(pkl_ast_dup_type): Likewise.
(pkl_ast_print_1): Likewise.
* src/pkl-typify.c (pkl_typify1_ps_struct): Likewise.
* src/pkl-lex.l: Tokens BIG and LITTLE.
* src/pkl-tab.y (struct_type_field): handle endianness in fields.
(endianness): New rule.
* src/pkl-anal.c (pkl_anal2_ps_struct_type_field): New handler.
(pkl_phase_anal2): Register handler.
* testsuite/poke.pkl/struct-endian-diag-1.pk: New test.
* testsuite/poke.pkl/struct-types-endian-diag-2.pk: Likewise.
2019-11-05 Jose E. Marchesi <[email protected]>
* testsuite/Makefile.am (POKESTYLESDIR): Define when invoking
dejagnu.
* testsuite/lib/poke-dg.exp (dg-require): Mark the test as
unsupported if appropriate.
* testsuite/poke.pkl/printf-class-1.pk: Require libtextstyle.
* testsuite/poke.pkl/printf-class-4.pk: Likewise.
* testsuite/poke.pkl/printf-class-3.pk: Likewise.
* testsuite/poke.pkl/printf-class-2.pk: Likewise.
2019-11-05 Jose E. Marchesi <[email protected]>
* HACKING (Building): it is no longer necessary to pass
--with-jitter to configure.
2019-11-05 Luca Saiu <[email protected]>
* HACKING: Replace "program" to "routine". Update data
structure description. Update debugging and configuration
information as related to Jitter. Minor rewording and grammar
fixes.
* TODO: Change "program" to "routine".
* Makefile.am (SUBDIRS): Add jitter.
* acinclude.m4: Remove file.
* bootstrap.conf (bootstrap_post_import_hook): New function.
* configure.ac: Include m4/jitter.m4, now copied from jitter by
bootstrap.
(AC_JITTER): Remove along with checks. Replace with
AC_JITTER_SUBPACKAGE, which includes tests.
(--enable-debug, --disable-debug): Remove options.
(ENABLE_DEBUG): Remove variable. Remove substitution.
(POKE_DEBUG): Remove Automake conditional.
* src/Makefile.am (poke_CPPFLAGS, poke_CFLAGS, poke_LDADD)
(poke_LDFLAGS): Unconditionalize.
* src/pvm-val.h: Change to Jitter unified routine API.
Include jitter/jitter-routine.h to break dependency cycle.
Add comments.
(struct pvm_cls): Rename field program to routine, type
from struct jitter_program * to jitter_routine.
Change type for field entry_point from void * to
jitter_program_point.
(pvm_program): Remove typedef. Now the include cycle breaking works
differently.
* src/pvm-val.c: Change to Jitter unified routine API.
* src/pk-cmd.c: Change to Jitter unified routine API.
* src/pk-cmd.h: Change to Jitter unified routine API.
* src/pk-print.c: Change to Jitter unified routine API.
* src/pkl-asm.c: Change to Jitter unified routine API.
* src/pkl-gen.c: Change to Jitter unified routine API.
* src/pkl-gen.h: Change to Jitter unified routine API.
* src/pkl.c: Change to Jitter unified routine API.
* src/pkl.h: Change to Jitter unified routine API.
* src/pvm-alloc.c: Change to Jitter unified routine API.
* src/pvm-env.h: Change to Jitter unified routine API.
* src/pvm.c: Change to Jitter unified routine API.
* src/pvm.h: Change to Jitter unified routine API.
* src/ras: Change to Jitter unified routine API.
2019-11-04 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Structs): New chapter.
(Struct Literals): New section.
(Struct Types): Likewise.
(Unions): Likewise.
(Pinned Structs): Likewise.
(Struct Attributes): Likewise.
(Methods): Likewise.
(Declarations in Structs): Likewise.
2019-11-04 Jose E. Marchesi <[email protected]>
* src/pkl-asm.pks (remap): Do not check for a null value.
2019-11-04 Jose E. Marchesi <[email protected]>
* src/pkl-asm.pks (bconc): New macro.
* src/pkl-asm.c (pkl_asm_insn_bconc): Use bconc macro.
* src/pkl-fold.c (pkl_fold_bconc): New handler.
* testsuite/poke.pkl/bconc-1.pk: New file.
* testsuite/poke.pkl/bconc-2.pk: Likewise.
* testsuite/poke.pkl/bconc-3.pk: Likewise.
* testsuite/poke.pkl/bconc-4.pk: Likewise.
* testsuite/poke.pkl/bconc-5.pk: Likewise.
* testsuite/poke.pkl/bconc-6.pk: Likewise.
2019-11-04 Jose E. Marchesi <[email protected]>
* etc/poke-ras-mode.el (poke-ras-mode): Indent labels properly.
2019-11-04 Jose E. Marchesi <[email protected]>
* src/pkl-asm.pks (ais): Remove unused argument atype.
* src/pkl-asm.c (pkl_asm_insn_ais): Adjust accordintly.
2019-11-04 Jose E. Marchesi <[email protected]>
* HACKING: Add information about maintainers.
2019-11-03 Darshit Shah <[email protected]>
* m4/libtextstyle-hyperlink.m4: New file with autoconf macro to
test for hyperlink support in libtextstyle
* configure.ac: Invoke new macro AX_LIBTEXTSTYLE_HYPERLINK
* src/pk-term.c (pk_term_hyperlink): Conditionally invoke the
function styled_ostream_set_hyperlink based on whether
libtextstyle supports it
(pk_term_end_hyperlink): Same
2019-11-03 Luca Saiu <[email protected]>
* src/Makefile.am (.pks.pkc): Do not rely on GNU Make extension.
2019-11-03 Egeyar Bagcioglu <[email protected]>
* src/ios.c (ios_read_int): Rewrite.
(ios_read_uint): Move the common functionality between read_ios_int
and read_ios_uint from here ...
(ios_read_int_common): ... to here.
2019-11-03 Darshit Shah <[email protected]>
* bootstrap.conf (MSGID_BUGS_ADDRESS): Fix bug reporting address
(buildreq): Add a list of build prerequisites
(gnulib_modules): Sort and split list into separate lines. Also
deduplicate list (readline, getopt-gnu)
Remove gendocs-template which is not a gnulib module
2019-11-03 Jose E. Marchesi <[email protected]>
* src/pkl-insn.def: New instruction ais.
* src/pkl-asm.c (pkl_asm_insn): Handle AIS.
(pkl_asm_insn_ais): New function.
* src/pkl-asm.pks (ais): New macro.
* src/pkl-gen.c (pkl_gen_ps_op_in): Use PKL_INSN_AIS.
* doc/poke.texi (Array Elements): New section.
2019-11-02 Jose E. Marchesi <[email protected]>
* src/pkl-ops.def: Define IN operator.
* src/pkl-tab.y: Rule for the IN binary operator.
* src/pkl-typify.c (pkl_typify1_ps_op_in): New handler.
(pkl_phase_typify1): Register handler.
* src/pkl-promo.c (pkl_promo_ps_op_in): New handler.
(pkl_phase_promo): Register handler.
* src/pkl-asm.c (pkl_asm_insn_cmp): Add support for offsets.
* src/pkl-gen.c (pkl_gen_ps_op_rela): Adjust accordingly.
* src/pkl-gen.c (pkl_gen_ps_op_in): New handler.
(pkl_phase_gen): Register handler.
* testsuite/poke.pkl/in-diag-1.pk: New test.
* testsuite/poke.pkl/in-diag-2.pk: Likewise.
* testsuite/poke.pkl/in-diag-3.pk: Likewise.
* testsuite/poke.pkl/in-diag-4.pk: Likewise.
* testsuite/poke.pkl/in-3.pk: Likewise.
* testsuite/poke.pkl/in-2.pk: Likewise.
* testsuite/poke.pkl/in-1.pk: Likewise.
2019-11-02 Egeyar Bagcioglu <[email protected]>
* src/ios.c (ios_read_uint): Fix the fast track for 40 bit integers.
* testsuite/poke.map/maps-uint-41.pk: New test.
* testsuite/poke.map/maps-uint-42.pk: Likewise.
* testsuite/poke.map/maps-uint-43.pk: Likewise.
* testsuite/poke.map/maps-uint-44.pk: Likewise.
* testsuite/poke.map/maps-uint-45.pk: Likewise.
* testsuite/poke.map/maps-uint-46.pk: Likewise.
* testsuite/poke.map/maps-uint-47.pk: Likewise.
* testsuite/poke.map/maps-uint-48.pk: Likewise.
* testsuite/poke.map/maps-uint-49.pk: Likewise.
* testsuite/poke.map/maps-uint-50.pk: Likewise.
* testsuite/poke.map/maps-uint-51.pk: Likewise.
* testsuite/poke.map/maps-uint-52.pk: Likewise.
* testsuite/poke.map/maps-uint-53.pk: Likewise.
* testsuite/poke.map/maps-uint-54.pk: Likewise.
2019-11-02 Egeyar Bagcioglu <[email protected]>
* testsuite/poke.map/maps-uint-1.pk: New test.
* testsuite/poke.map/maps-uint-2.pk: Likewise.
* testsuite/poke.map/maps-uint-3.pk: Likewise.
* testsuite/poke.map/maps-uint-4.pk: Likewise.
* testsuite/poke.map/maps-uint-5.pk: Likewise.
* testsuite/poke.map/maps-uint-6.pk: Likewise.
* testsuite/poke.map/maps-uint-7.pk: Likewise.
* testsuite/poke.map/maps-uint-8.pk: Likewise.
* testsuite/poke.map/maps-uint-9.pk: Likewise.
* testsuite/poke.map/maps-uint-10.pk: Likewise.
* testsuite/poke.map/maps-uint-11.pk: Likewise.
* testsuite/poke.map/maps-uint-12.pk: Likewise.
* testsuite/poke.map/maps-uint-13.pk: Likewise.
* testsuite/poke.map/maps-uint-14.pk: Likewise.
* testsuite/poke.map/maps-uint-15.pk: Likewise.
* testsuite/poke.map/maps-uint-16.pk: Likewise.
* testsuite/poke.map/maps-uint-17.pk: Likewise.
* testsuite/poke.map/maps-uint-18.pk: Likewise.
* testsuite/poke.map/maps-uint-19.pk: Likewise.
* testsuite/poke.map/maps-uint-20.pk: Likewise.
* testsuite/poke.map/maps-uint-21.pk: Likewise.
* testsuite/poke.map/maps-uint-22.pk: Likewise.
* testsuite/poke.map/maps-uint-23.pk: Likewise.
* testsuite/poke.map/maps-uint-24.pk: Likewise.
* testsuite/poke.map/maps-uint-25.pk: Likewise.
* testsuite/poke.map/maps-uint-26.pk: Likewise.
* testsuite/poke.map/maps-uint-27.pk: Likewise.
* testsuite/poke.map/maps-uint-28.pk: Likewise.
* testsuite/poke.map/maps-uint-29.pk: Likewise.
* testsuite/poke.map/maps-uint-30.pk: Likewise.
* testsuite/poke.map/maps-uint-31.pk: Likewise.
* testsuite/poke.map/maps-uint-32.pk: Likewise.
* testsuite/poke.map/maps-uint-33.pk: Likewise.
* testsuite/poke.map/maps-uint-34.pk: Likewise.
* testsuite/poke.map/maps-uint-35.pk: Likewise.
* testsuite/poke.map/maps-uint-36.pk: Likewise.
* testsuite/poke.map/maps-uint-37.pk: Likewise.
* testsuite/poke.map/maps-uint-38.pk: Likewise.
* testsuite/poke.map/maps-uint-39.pk: Likewise.
* testsuite/poke.map/maps-uint-40.pk: Likewise.
* testsuite/poke.map/maps-uint-diag-1.pk: Likewise.
2019-11-02 Jose E. Marchesi <[email protected]>
* src/pkl-fold.c (EMUL_UUU): For cdiv.
(EMUL_III): Likewise.
(pkl_fold_cdiv): New handler.
* src/pkl-asm.pks (cdiv): New macro.
(cdivo): New macro.
* src/pkl-asm.c (pkl_asm_insn_cdivo, pvm_make_integral): New
function.
(pkl_asm_insn_cdiv): Likewise.
(pkl_asm_insn_cdivo): Likewise.
(pkl_asm_insn): Call pkl_asm_insn_cdiv and pkl_asm_insn_cdivo.
* src/pkl-insn.def (PKL_INSN_CDIV): New instruction.
(PKL_INSN_CDIVO): Likewise.
* src/pkl-gen.c (pkl_gen_ps_op_ceildiv): New handler.
(pkl_phase_gen): Register the handler.
* src/pkl-promo.c (pkl_phase_promo): Register pkl_promo_ps_op_div
to promote ceildiv nodes.
* src/pkl-typify.c (pkl_typify1_ps_op_ceildiv): New handler.
(pkl_phase_typify1): Register handler.
(CASE_OFFSET): Handle ceildiv.
* src/pkl-ops.def (PKL_AST_OP_CEILDIV): Define.
* src/pkl-tab.y: New token CEILDIV.
* src/pkl-lex.l: Rule for CEILDIV.
* testsuite/poke.pkl/cdiv-offsets-2.pk: Likewise.
* testsuite/poke.pkl/cdiv-offsets-1.pk: Likewise.
* testsuite/poke.pkl/cdiv-integers-2.pk: Likewise.
* testsuite/poke.pkl/cdiv-integers-1.pk: New test.
* doc/poke.texi (Offset Operations): Document /^ for offsets.
(Arithmetic Operators): Likewise for integers.
2019-11-02 Jose E. Marchesi <[email protected]>
* doc/poke.texi (.set): The default endianness is big endian, not
host endian.
2019-10-30 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Shebang): New section.
(Scripts): Likewise.
(Invoking poke): Likewise.
2019-10-30 Jose E. Marchesi <[email protected]>
* src/pvm.jitter (pvm_literal_printer): Use poke_obase.
(pvm_literal_printer_lo): Likewise.
(strace): Likewise.
2019-10-29 Jose E. Marchesi <[email protected]>
* pickles/bpf.pk (BPF_Insn_Offset): New type.
(BPF_Insn): Use BPF_Insn_Offset.
2019-10-29 Jose E. Marchesi <[email protected]>
* pickles/btf.pk (btf_types): New function.
(btf_strings): Likewise.
2019-10-29 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Commanding poke): New chapter.
(The REPL): New section.
(Evaluation): New section.
(Commands): Likewise.
(Scripts): Likewise.
(Shebang): Likewise.
(.load): New chapter.
2019-10-29 Jose E. Marchesi <[email protected]>
* doc/poke.texi (.vm): New chapter.
(.vm disassemble): New section.
2019-10-29 Jose E. Marchesi <[email protected]>
* src/pkl-fold.c (pkl_fold_pr_type): New handler.
(pkl_phase_fold): Register handler.
* src/pkl-promo.c (pkl_promo_pr_type): New handler.
(pkl_phase_promo): Register handler.
* src/pkl-typify.c (pkl_typify_pr_type): New handler.
(pkl_phase_typify1): Register handler.
Likewise.
* src/pkl-anal.c: Do not define nor use a pkl_anal_ps_type
handler. It is unneccessary.
* src/pkl-trans.c: Set the `compiled' flag of types AST nodes only
in trans4.
2019-10-29 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (struct pkl_ast_type): New field `compiled'.
(PKL_AST_TYPE_COMPILED): Define.
* src/pkl-anal.c (pkl_anal_pr_type): Define.
(pkl_anal_ps_type): Define.
(pkl_phase_anal1): Registers the handlers.
(pkl_phase_anal2): Likewise.
(pkl_phase_analf): Likewise.
* src/pkl-trans.c (pkl_trans_pr_type): Define.
(pkl_trans_ps_type): Define.
(pkl_phase_trans1): Registers the handlers.
(pkl_phase_trans2): Likewise.
(pkl_phase_trans3): Likewise.
(pkl_phase_trans4): Likewise.
2019-10-29 Jose E. Marchesi <[email protected]>
* src/pkl-gen.c (pkl_gen_pr_decl): Avoid recompiling type closures
(mapper, writer, constructor, etc) again and again.
2019-10-29 Jose E. Marchesi <[email protected]>
* src/pkl-gen.pks (struct_constructor): Set/clear
payload->in_constructor and not payload->in_mapper.
* testsuite/poke.pkl/struct-types-6.pk: New test.
2019-10-29 Jose E. Marchesi <[email protected]>
* doc/poke.texi (.set): New section.
(.exit): Likewise.
(.file): Likewise.
(.info): Likewise.
2019-10-29 Jose E. Marchesi <[email protected]>
* src/pkl-lex.l: Remove token TRIMOP.
* src/pkl-tab.y: Use ':' instead of TRIMOP in trimmers rules.
* src/std.pk (substr): Adapt to the new syntax.
* trim.pk: Remove.
* testsuite/poke.pkl/trim-1.pk: From trim.pk and adapted to new
syntax.
* testsuite/poke.pkl/trim-24.pk: Likewise.
* testsuite/poke.pkl/trim-23.pk: Likewise.
* testsuite/poke.pkl/trim-22.pk: Likewise.
* testsuite/poke.pkl/trim-21.pk: Likewise.
* testsuite/poke.pkl/trim-20.pk: Likewise.
* testsuite/poke.pkl/trim-19.pk: Likewise.
* testsuite/poke.pkl/trim-18.pk: Likewise.
* testsuite/poke.pkl/trim-17.pk: Likewise.
* testsuite/poke.pkl/trim-16.pk: Likewise.
* testsuite/poke.pkl/trim-15.pk: Likewise.
* testsuite/poke.pkl/trim-14.pk: Likewise.
* testsuite/poke.pkl/trim-13.pk: Likewise.
* testsuite/poke.pkl/trim-12.pk: Likewise.
* testsuite/poke.pkl/trim-11.pk: Likewise.
* testsuite/poke.pkl/trim-10.pk: Likewise.
* testsuite/poke.pkl/trim-9.pk: Likewise.
* testsuite/poke.pkl/trim-8.pk: Likewise.
* testsuite/poke.pkl/trim-7.pk: Likewise.
* testsuite/poke.pkl/trim-6.pk: Likewise.
* testsuite/poke.pkl/trim-5.pk: Likewise.
* testsuite/poke.pkl/trim-4.pk: Likewise.
* testsuite/poke.pkl/trim-3.pk: Likewise.
* testsuite/poke.pkl/trim-2.pk: Likewise.
* testsuite/poke.map/trimmed-map.pk: Adapt to new syntax.
* testsuite/poke.map/trimmed-map-4.pk: Likewise.
* testsuite/poke.map/trimmed-map-3.pk: Likewise.
* testsuite/poke.map/trimmed-map-2.pk: Likewise.
2019-10-29 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Array Indexing): New section.
(Array Trimming): Likewise.
(Array Attributes): Likewise.
2019-10-28 Jose E. Marchesi <[email protected]>
* doc/poke.texi: New chapters and sections.
2019-10-28 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Integers): New chapter.
(Integer Literals): New section.
(Characters): Likewise.
* testsuite/poke.pkl/printf-value-2.pk: Remove empty line at EOF.
* testsuite/poke.pkl/printf-value-5.pk: Likewise.
2019-10-27 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Offsets): New chapter.
(Why offsets): New section.
(Offset values): Likewise.
(Offset operations): Likewise.
2019-10-27 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Endianness): New chapter.
(.set endian): New section.
(Endian built-ins): Likewise.
2019-10-27 Jose E. Marchesi <[email protected]>
* bootstrap.conf (gnulib_modules): Import the gendocs-template
gnulib module.
2019-10-27 Jose E. Marchesi <[email protected]>
* doc/poke.texi (Output): New chapter.
(print): New section.
(printf): Likewise.
(Styling): Likewise.
2019-10-27 Jose E. Marchesi <[email protected]>
* src/pkl-promo.c (pkl_promo_ps_print_stmt): Fix bug handling %v
printf arguments.
* pickles/bpf.pk: Use %v in imm64 pretty-printer.
* testsuite/poke.pkl/printf-value-5.pk: New test.
2019-10-27 Jose E. Marchesi <[email protected]>
* src/pvm.jitter (printv): Use the global poke_obase.
* testsuite/poke.pkl/printf-value-1.pk: .set obase.
* testsuite/poke.pkl/printf-value-2.pk: Likewise.
* testsuite/poke.pkl/printf-value-3.pk: Likewise.
* testsuite/poke.pkl/printf-value-4.pk: New file.
2019-10-26 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (PKL_AST_PRINT_STMT_ARG_PRINT_VALUE_P): Define.
* src/pkl-trans.c (pkl_trans1_ps_print_stmt): Handle %v tags in
format strings.
* src/pkl-typify.c (pkl_typify1_ps_print_stmt): Allow any type for
%v.
* src/pkl-asm.c (pkl_asm_insn_print): Issue a `printv' instruction
to print values in %v tags.
* src/pkl-insn.def: New instruction printv.
* src/pvm.jitter (printv): Implement.
* testsuite/poke.pkl/printf-value-1.pk: New test.
* testsuite/poke.pkl/printf-value-2.pk: Likewise.
* testsuite/poke.pkl/printf-value-3.pk: Likewise.
2019-10-26 Jose E. Marchesi <[email protected]>
* HACKING (Writing Poke): Recommend using the #<...> convention
for pretty-printed values.
2019-10-26 Jose E. Marchesi <[email protected]>
* pickles/bpf.pk (BPF_Reg): Use styling when printing register
names.
(BPF_Insn_Opcode): Likewise for instruction mnemonics.
* etc/poke-default.css (.insn-register): New class.
(.insn-mnemonic): Likewise.
2019-10-26 Jose E. Marchesi <[email protected]>
* pickles/bpf.pk (bpf_alu_opcodes): New variable.
(bpf_jmp_opcodes): Likewise.
(bpf_ldst_sizes): Likewise.
(BPF_Insn_Opcode): Pretty printers.
(BPF_Insn): Pretty printer for imm64.
2019-10-26 Jose E. Marchesi <[email protected]>
* src/pkl-gen.c (pkl_gen_pr_op_and): New handler.
(pkl_gen_pr_op_or): Likewise.
(pkl_gen_ps_op_and): Remove.
(pkl_gen_ps_op_or): Likewise.
* testsuite/poke.pkl/and-13.pk: New test.
* testsuite/poke.pkl/or-4.pk: Likewise.
2019-10-26 Jose E. Marchesi <[email protected]>
* pickles/bpf.pk: New file.
* pickles/btf.pk: Likewise.
* pickles/Makefile.am (dist_pkgdata_DATA): Add bpf.pk and btf.pk.
2019-10-26 Egeyar Bagcioglu <[email protected]>
* bootstrap.conf (gnulib_modules): Import the module byteswap from
gnulib.
* src/ios.c (IOS_GET_C_ERR_CHCK): Define.
(IOS_READ_INTO_CHARRAY_1BYTE): Likewise.
(IOS_READ_INTO_CHARRAY_2BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_3BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_4BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_5BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_6BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_7BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_8BYTES): Likewise.
(IOS_READ_INTO_CHARRAY_9BYTES): Likewise.
(ios_mask_first_byte): New function.
(ios_mask_last_byte): Likewise.
(ios_read_uint): Rewrite.
2019-10-25 Jose E. Marchesi <[email protected]>
* HACKING (Writing RAS): New section.
2019-10-25 Jose E. Marchesi <[email protected]>
* src/ras: Recognize empty .c lines without a trailing whitespace.
2019-10-25 Jose E. Marchesi <[email protected]>
* pickles/future/bson.pk: Syntax-check fixes.
* src/pkl.c: Likewise.
* testsuite/poke.map/maps-structs-methods-5.pk: Likewise.
* src/pkl-trans.c: Likewise.
* src/pkl-gen.pks: Likewise.
* src/pkl-gen.c: Likewise.
* src/pkl-ast.c: Likewise.
* src/pkl-anal.c: Likewise.
* src/ios.c: Likewise.
* pickles/leb128.pk: Likewise.
* etc/poke-ras-mode.el: Likewise.
* testsuite/poke.map/maps-unions-8.pk: Likewise.
* testsuite/poke.pkl/struct-pretty-print-3.pk: Likewise.
* testsuite/poke.pkl/struct-pretty-print-1.pk: Likewise.
* testsuite/poke.pkl/printf-class-2.pk: Likewise.
* testsuite/poke.pkl/printf-class-1.pk: Likewise.
* testsuite/poke.map/maps-structs-methods-7.pk: Likewise.
* testsuite/poke.map/maps-structs-methods-6.pk: Likewise.
2019-10-25 Jose E. Marchesi <[email protected]>
* src/pvm.jitter (PVM_PEEK): Raise exceptionspa in case of IO
end-of-file and generic IO error.
(PVM_POKE): Likewise.
(peeks): Likewise.
* src/pkl-gen.c (pkl_gen_pr_map): Do not handle EOF.
* src/pkl-rt.pk (_pkl_exception_handler): Handle E_io.
* src/pkl-gen.pks (array_mapper): Adjust to the new handling of
EOF.
* testsuite/poke.map/maps-unions-7.pk: New test.
* testsuite/poke.map/maps-unions-8.pk: Likewise.
2019-10-25 Jose E. Marchesi <[email protected]>
* src/pkl-anal.c (pkl_anal1_ps_type_struct): Do not allow
declarations after union fields.
* testsuite/poke.map/maps-unions-6.pk: Likewise.
* testsuite/poke.pkl/union-diag-6.pk: Likewise.
* testsuite/poke.pkl/union-diag-5.pk: Likewise.
* testsuite/poke.pkl/union-diag-4.pk: New test.
2019-10-24 Jose E. Marchesi <[email protected]>
* HACKING (Dejagnu): Mention as a dependency.
2019-10-24 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (PKL_AST_BUILTIN_GET_ENDIAN): Define.
(PKL_AST_BUILTIN_SET_ENDIAN): Likewise.
* src/pkl-tab.y (BUILTIN_GET_ENDIAN): New token.
(BUILTIN_SET_ENDIAN): Likewise.
(builtins): New rule.
(comp_stmt): Use rule `builtins'.
* src/pkl-lex.l: Tokens for get_endian and set_endian built-ins.
* src/pvm.jitter (pushend): New instruction.
(popend): Likewise.
* src/pkl-insn.def (PKL_INSN_PUSHEND): Define.
(PKL_INSN_POPEND): Likewise.
* src/pkl-rt.pk (get_endian): Define.
(set_endian): Likewise.
(ENDIAN_LITTLE): New variable.
(ENDIAN_BIG): Likewise.
* src/pkl-gen.c (pkl_gen_ps_comp_stmt): Generate code for
PKL_AST_BUILTIN_GET_ENDIAN and PKL_AST_BUILTIN_SET_ENDIAN
builtins.
* testsuite/poke.pkl/get-endian-1.pk: New test.
* testsuite/poke.pkl/set-endian-1.pk: Likewise.
2019-10-24 Jose E. Marchesi <[email protected]>
* src/ios.c (ios_read_uint): Add support for reading 4-bit
unsigned integers from addresses aligned to 8 or 4 bytes.
2019-10-23 Jose E. Marchesi <[email protected]>
* pickles/Makefile.am (dist_pkgdata_DATA): Add leb128.pk
2019-10-22 Jose E. Marchesi <[email protected]>
* testsuite/poke.pkl/struct-types-diag-8.pk: New file.
* testsuite/poke.map/maps-structs-methods-6.pk: Likewise.
* testsuite/poke.map/maps-structs-methods-7.pk: Likewise.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pkl-typify.c (pkl_typify1_ps_struct_ref): fix compile-time
detection of invalid fields in struct references.
2019-10-22 Jose E. Marchesi <[email protected]>
* pickles/leb128.pk: Rewritten and moved from future/.
* etc/poke-default.css (.leb128): New class.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (struct pkl_ast_print_stmt): New field
fmt_processed_p.
(PKL_AST_PRINT_STMT_FMT_PROCESSED_P): Define.
* src/pkl-trans.c (pkl_trans1_ps_print_stmt): Handle
fmt_processed_p.
* HACKING (Middle End Handlers should be Re-executable): New
section.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pkl-gen.pks (struct_mapper): Fix bug in method handling.
* testsuite/poke.map/maps-structs-methods-5.pk: New file.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pvm.h: Prototypes for pvm_pretty_print and
pvm_set_pretty_print.
* src/pvm.c (pvm_pretty_print): New function.
(pvm_set_pretty_print): Likewise.
(PVM_STATE_PRETTY_PRINT): Define.
* src/pvm.jitter (state-struct-runtime-c): Add pretty_print.
(state-initialization-c): Initialize pretty_print to 0.
* src/pk-set.c (pk_cmd_set_pretty_print): New function.
(set_pretty_print_cmd): New struct.
(set_cmds): Add set-pretty_print_cmd.
* src/pvm-val.h: Prototype for pvm_get_struct_method.
Prototype for pvm_call_cls.
* src/pvm-val.c (pvm_get_struct_method): New function.
(pvm_call_pretty_printer): Likewise.
* testsuite/poke.pkl/struct-pretty-print-1.pk: New file.
* testsuite/poke.pkl/struct-pretty-print-2.pk: New file.
* testsuite/poke.pkl/struct-pretty-print-3.pk: Likewise.
* testsuite/poke.pkl/struct-pretty-print-4.pk: Likewise.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pkl-typify.c (pkl_typify1_ps_struct_ref): Allow using dot
notation to refer to struct methods.
* src/pkl-trans.c (pkl_trans2_ps_struct_ref): Turn struct
references to parameterless methods into funcalls.
* src/pvm-val.c (pvm_ref_struct): Allow referencing to methods by
name.
* testsuite/poke.map/maps-structs-18.pk: New test.
* testsuite/poke.map/maps-structs-methods-1.pk: Likewise.
* testsuite/poke.map/maps-structs-methods-2.pk: Likewise.
* testsuite/poke.map/maps-structs-methods-3.pk: Likewise.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pvm.jitter (mksct): Change instruction to get a list of
methods.
* src/pkl-gen.pks (struct_mapper): Adapt to the new form of mksct.
(struct_constructor): Likewise.
* testsuite/poke.map/maps-structs-14.pk: New test.
* testsuite/poke.map/maps-structs-15.pk: Likewise.
* testsuite/poke.map/maps-structs-16.pk: Likewise.
* testsuite/poke.map/maps-structs-17.pk: Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pvm-val.h (PVM_VAL_SCT_METHOD): Define.
(PVM_VAL_SCT_NMETHODS): Likewise.
(pvm_make_struct): Add argument nmethods.
(struct pvm_struct_method): New struct.
(PVM_VAL_SCT_METHOD_NAME): Define.
(PVM_VAL_SCT_METHOD_VALUE): Likewise.
* src/pvm-val.c (pvm_make_struct): Likewise.
* src/pvm.jitter (mksct): pass the number of methods to
pvm_make_struct.
2019-10-22 Darkstar <[email protected]>
* src/poke.c: Several typos in comments fixed.
(pk_print_version): Likewise.
(initialize_user): Likewise.
2019-10-22 Jose E. Marchesi <[email protected]>
* src/pkl-trans.c (pkl_trans1_ps_print_stmt): Avoid adding an
empty suffix to the last arg when a %- tag finished the format
string.
2019-10-22 Jose E. Marchesi <[email protected]>
* configure.ac: Warn the user about not finding a full-fledged
readline.
2019-10-21 Jose E. Marchesi <[email protected]>
* src/poke.c (repl): print a newline when the user does Ctrl-D.
2019-10-21 Jose E. Marchesi <[email protected]>
* src/Makefile.am (AM_YFLAGS): Do not pass -y to bison, as we are
using non-POSIX capabilities.
2019-10-21 Jose E. Marchesi <[email protected]>
* src/std.pk (catos): New function.
* testsuite/poke.std/catos-1.pk: New file.
* testsuite/poke.pkl/catos-2.pk: Likewise.
2019-10-21 Jose E. Marchesi <[email protected]>
* src/pkl-lex.l (SHEBANG_COMMENT): New context.
Rules to support multi-line #! ... !# comments.
* src/poke.c (LOAD_AND_QUIT_ARG): Define.
(print_help): Document -L.
(parse_args): Implement -L.
2019-10-21 Jose E. Marchesi <[email protected]>
* etc/poke-default.css (.error): Bold.
2019-10-21 Jose E. Marchesi <[email protected]>
* testsuite/poke.cmd/set-error-on-warning.pk: New test.
2019-10-21 Jose E. Marchesi <[email protected]>
* src/pkl.h: Make pkl_error and pkl_warning to get a `compiler'
option.
* src/pkl.c (pkl_error_internal): New function.
(pkl_error): Rewrite to be a wrapper for pkl_error_internal.
* src/pkl-pass.h (PKL_ERROR): Define.
(PKL_WARNING): Likewise.
* src/pkl-anal.c (pkl_anal2_ps_type_struct): Use PKL_WARNING.
* src/pkl-parser.h (struct pkl_parser): New field `compiler'.
Make pkl_parse_file and pkl_parse_buffer get a new argument
`compiler'.
* src/pkl-parser.c (pkl_parse_file): Get a `compiler' option.
(pkl_parse_buffer): Likewise.
* src/pkl.c (pkl_compile_file): Pass `compiler' to pkl_parse_file.
(pkl_compile_expression): Pass `compiler' to pkl_parse_buffer.
(pkl_compile_buffer): Likewise.
(pkl_compile_statement): Likewise.
* src/pkl-tab.y: Pass pkl_parser->compiler to pkl_error calls.
* src/pkl-anal.c: Use PKL_ERROR instead of pkl_error for
diagnostics.
* src/pkl-fold.c: Likewise.
* src/pkl-trans.c: Likewise.
* src/pkl-typify.c: Likewise.
2019-10-20 Jose E. Marchesi <[email protected]>
* etc/poke-default.css (.dump-ruler): New class.
(.dump-address): Likewise.
(.dump-ascii): Likewise.
* src/pk-dump.pk (dump): Stylize output.
2019-10-20 Jose E. Marchesi <[email protected]>
* testsuite/Makefile.am (check-DEJAGNU): Set POKESTYLESDIR.
* testsuite/poke.pkl/printf-class-1.pk: New test.
* testsuite/poke.pkl/printf-class-4.pk: Likewise.
* testsuite/poke.pkl/printf-class-3.pk: Likewise.
* testsuite/poke.pkl/printf-class-2.pk: Likewise.
2019-10-20 Jose E. Marchesi <[email protected]>
* src/pkl-trans.c (pkl_trans1_ps_print_stmt): Fix diagnostic for
unclosed styling class tags.
* testsuite/poke.pkl/printf-diag-6.pk: New file.
* testsuite/poke.pkl/printf-diag-7.pk: Likewise.
* testsuite/poke.pkl/printf-diag-8.pk: Likewise.
2019-10-20 Jose E. Marchesi <[email protected]>
* src/pkl-promo.c (pkl_promo_ps_print_stmt): Skip arguments
without associated values.
* src/pkl-typify.c (pkl_typify1_ps_print_stmt): Likewise.
* src/pkl-gen.c (pkl_gen_pr_print_stmt): Generate code for styling
class format directives.
* src/pkl-trans.c (pkl_trans1_ps_print_stmt): Support %<class: and
%> format directives.
2019-10-19 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (struct pkl_ast_print_stmt_arg): New fields
begin_sc and end_sc.
(PKL_AST_PRINT_STMT_ARG_BEGIN_SC): Define.
(PKL_AST_PRINT_STMT_ARG_END_SC): Likewise.
* src/pkl-ast.c (pkl_ast_node_free): Dispose the memory of
begin_sc and end_sc.
(pkl_ast_print_1): Print begin_sc and end_sc fields.
2019-10-19 Jose E. Marchesi <[email protected]>
* src/pvm.jitter (wrapped-functions): Add pk_term_class and
pk_term_end_class.
(begsc): New instruction.
(endsc): Likewise.
* src/pkl-insn.def: Define instructions begsc and endsc.
2019-10-19 Jose E. Marchesi <[email protected]>
* src/pkl-pass.h (PKL_PASS_COMPILER): Define.
(PKL_PASS_SUBPASS): Pass compiler to pkl_do_subpass.
(PKL_PHASE_BEGIN_HANDLER): The node handler gets a compiler.
(pkl_do_pass): Get a compiler argument.
* src/pkl-pass.c (pkl_do_subpass): Handle new argument compiler.
(pkl_do_pass): Likewise.
(pkl_call_node_handlers): Likewise.
(pkl_do_pass_1): Likewise.
(PKL_CALL_PHASES): Pass `compiler' to pkl_do_pass_1.
(PKL_CALL_PHASES_SINGLE): Likewise.
(PKL_PASS): Likewise.
(PKL_PASS_CHAIN): Likewise.
(pkl_do_pass_1): Likewise.
(pkl_do_subpass): Likewise.
* src/pkl.c (rest_of_compilation): Pass poke_compiler to
pkl_do_pass.
2019-10-19 Jose E. Marchesi <[email protected]>
* src/pkl.c (struct pkl_compiler): New field error_on_warning.
(pkl_error_on_warning): New function.
(pkl_set_error_on_warning): Likewise.
* src/pkl.h: Prototypes for pkl_error_on_warning and
pkl_set_error_on_warning.
* src/pk-cmd.c (pk_cmd_exec_1): Support `-' characters in command
names.
* src/pk-set.c (set_error_on_warning_cmd): New variable.
(pk_cmd_set_error_on_warning): New function.
(set_cmds): Add set_error_on_warning_cmd.
2019-10-19 Jose E. Marchesi <[email protected]>
* TODO (#B0 remove hard limit in PKL_AST_MAX_POINTERS): New todo
entry.
(#A1 fold "isa" expressions): Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* testsuite/poke.map/maps-unions-5.pk: New file.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-gen.pks (struct_mapper): Generate code for declarations.
(struct_constructor): Likewise.
* testsuite/poke.pkl/struct-types-2.pk: New file.
* testsuite/poke.map/maps-structs-11.pk: Likewise.
* testsuite/poke.pkl/struct-types-3.pk: Likewise.
* testsuite/poke.pkl/struct-types-4.pk: Likewise.
* testsuite/poke.map/maps-structs-12.pk: Likewise.
* testsuite/poke.pkl/struct-types-5.pk: Likewise.
* testsuite/poke.map/maps-structs-13.pk: Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h (struct pkl_ast_type): Add nelem and ndecl fields
to struct types.
* src/pkl-trans.c (pkl_trans1_ps_type_struct): Count number of
fields and declarations.
* src/pkl-ast.c (pkl_ast_print_1): Print nfield and ndecl of
struct types.
(pkl_ast_dup_type): Copy ndecl and nfield when
duplicating struct types.
(pkl_ast_make_struct_type): Get nfield and ndecl arguments.
* src/pkl-typify.c (pkl_typify1_ps_struct): Pass extra arguments
to pkl_ast_make_struct_type.
* src/pkl-gen.c (pkl_gen_ps_type_struct): Use
PKL_AST_TYPE_S_NFIELD.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-tab.y (struct_field_type): Fix location of diagnostic
for duplicated struct elements.
* src/pkl-anal.c (pkl_anal1_ps_struct): Improve diagnostic.
* testsuite/poke.pkl/struct-types-diag-5.pk: New test.
* testsuite/poke.pkl/struct-types-diag-6.pk: Likewise.
* testsuite/poke.pkl/struct-types-diag-7.pk: Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-anal.c (pkl_nala1_ps_type_struct): Fix typo in variable
names.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-gen.c (pkl_gen_pr_decl): Rename type_struct_fields to
type_struct_elems.
(pkl_gen_pr_type_struct): Likewise.
* src/pkl-gen.pks: Adapt to the fact struct type elements can be
either struct type fields or declarations.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-ast.c (pkl_ast_dup_type): Adapt to the fact struct type
elements can be either struct type fields or declarations.
(pkl_ast_sizeof_type): Likewise.
(pkl_print_type): Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-typify.c (pkl_typify1_ps_struct_ref): Adapt to the fact
struct type elements can be either struct type fields or
declarations.
(pkl_typify1_ps_scons): Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-anal.c (pkl_anal1_ps_type_struct): Adapt to the fact
struct type elements can be either struct type fields or
declarations.
(pkl_anal2_ps_type_struct): Likewise.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-ast.h: Document that struct elements can be fields or
declarations.
* src/pkl-tab.y: Rename the struct_type_field_list rule to
struct_type_elem_list.
(struct_type_elem_list): Add declarations.
2019-10-18 Jose E. Marchesi <[email protected]>
* src/pkl-anal.c (pkl_anal1_ps_type_struct): Rename
struct_field_type to struct_type_field.
(pkl_anal2_ps_type_struct): Likewise.