-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
2288 lines (1382 loc) · 82.4 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
2008-05-17 Luca Bruno <lethalman88@gmail.com>
* doc/manual/varscope.texi: begun work
maybe complete for now
2008-05-16 Luca Bruno <lethalman88@gmail.com>
* doc/manual/blocks.texi (Loops): completed
2008-05-13 Luca Bruno <lethalman88@gmail.com>
* doc/manual/blocks.texi (Return value of blocks): added
(Conditions): added
* doc/manual/language.texi (Comments): added
2008-05-11 Luca Bruno <lethalman88@gmail.com>
* doc/manual/commonobjects.texi: filled in but not complete
* doc/manual/varscope.texi: added
* doc/manual/commonobjects.texi: added
* doc/manual/blocks.texi: added
* doc/manual/variables.texi: completed
* doc/manual/streference.texi (Dictionaries): added
* doc/manual/variables.texi: added
* doc/manual/methods.texi: added
* doc/manual/messages.texi: added
* doc/manual/objects.texi: added
* doc/manual/language.texi:
2008-05-10 Luca Bruno <lethalman88@gmail.com>
* doc/manual/language.texi: added
2008-05-07 Luca Bruno <lethalman88@gmail.com>
* doc/manual/introsyx.texi (Invoking syx): documented
2008-05-02 Luca Bruno <lethalman88@gmail.com>
* doc/manpage/syx.1: added
* doc/Makefile.am: added
add doc target
* configure.ac:
* doc/manual/introsyx.texi: splitted from syx.texi
* doc/manual/syx.texi (Introducing the Syx environment): basic Strings
(What is Smalltalk): Image concept
(Index): added Classes and Methods
2008-05-01 Luca Bruno <lethalman88@gmail.com>
Create reference to doc/reference.
Add doc/manual.
* doc/manual/syx.texinfo: added
* doc/manual/syx.texi: added license informations and a brief introduction, renamed from .texinfo
(Introducing the Syx environment): moved up
(Index): add menu and Concepts section
Added some concepts.
* doc/manual/fdl-1.2.texi: added
* doc/manual/syx.texi: added license informations and a brief introduction, renamed from .texinfo
(Introducing the Syx environment): moved up
(Index): add menu and Concepts section
Added some concepts.
(Programs): added
(Introducing the Syx environment): started some docs
* doc/manual/fdl-1.2.texi: added
Create reference to doc/reference.
Add doc/manual.
* doc/manual/syx.texinfo: added
* syx/syx-memory.c:
(syx_memory_save_image): only store the stack of each process
(_syx_memory_write_process_stack): fixed beginning and end of frames
* syx/syx-memory.c:
(_syx_memory_gc_mark): mark detached frames
* syx/syx-memory.c:
Fix lazy pointers.
Fix BOS/EOS sequence for writing and reading.
Store block closures that are not attached to any process.
Save processes before any other object.
2008-04-27 Luca Bruno <lethalman88@gmail.com>
* syx/syx-memory.c (_syx_memory_write_frame): only write arguments and temporaries for detached frames
(_syx_memory_write_process_stack): check for collected stacks, store the index of the frames
(_syx_memory_read_process_stack): seek back by one
* syx/syx-interp.c (syx_inter_push_block_closure): only copy arguments and temporaries
2008-04-26 Luca Bruno <lethalman88@gmail.com>
Do not seek the file, instead read frames as is: this makes the image smaller.
Mark beginning and end of whole stacks instead of single frames.
Fix reading of frame fields when loading the image.
* syx/syx-memory.c (_syx_memory_read): use _read_lazy_pointer and start using to read the process stack
(_syx_memory_write_process_stack): store everything in reverse order but saving the index of each frame
* syx/syx-memory.c (syx_memory_save_image): skip if object is marked
(_syx_memory_gc_sweep): unmark constants
* syx/syx-memory.c (_syx_memory_write_object_with_vars): added
(_syx_memory_write_lazy_pointer): added
(_syx_memory_write_frame): added
(_syx_memory_write_process_stack): added
(syx_memory_save_image): save the process state before doing any operation
(_syx_memory_read_lazy_pointer): added
(_syx_memory_read_process_stack): added
2008-04-25 Luca Bruno <lethalman88@gmail.com>
* syx/syx-memory.c (struct SyxMemoryLazyPointer): added
(enum SyxMemoryType): rename RAW to IMMEDIATE and FP to FRAME_POINTER
* syx/syx-memory.c (_syx_memory_read): read framePointer variables
(syx_memory_load_image): free lazy pointers
2008-04-23 Luca Bruno <lethalman88@gmail.com>
* syx/syx-memory.c (enum SyxMemoryType): added
(_syx_memory_write_vars_with_fp): added
(_syx_memory_read): added incomplete handler for frame pointers
(syx_memory_load_image):
* syx/syx-interp.h:
* syx/syx-interp.c (_syx_interp_context_update): removed
(syx_interp_frame_to_context): use frame pointer as an index
(_syx_interp_switch_process):
(syx_interp_frame_to_context): need the stack
* syx/syx-primitives.c (ContextPart_parent):
(ContextPart_parent):
* st/kernel/initialDecl.st (ContextPart): add process variable
* syx/syx-enums.h:
* syx/syx-signal.c (_syx_save_recovered_image):
* src/main.c (_do_recovery):
2008-04-22 Luca Bruno <lethalman88@gmail.com>
* tests/testinterp.c (main): added another ensure test
* st/kernel/Signal.st (handlerContextStartingFrom): added
(signal): use a more sane approach
(handlerContext):
* syx/syx-interp.c (syx_interp_do_special): fix block self return
(syx_interp_swap_context): implemented
2008-04-21 Luca Bruno <lethalman88@gmail.com>
* syx/syx-interp.c (_syx_interp_context_update): added
(syx_interp_push_block_closure): update this_context to point to the new detached frame
(syx_interp_frame_to_context): set arguments not accessible for now, not good for Smalltalk-side future debugging
This fixes basic of the exception handling.
2008-04-20 Luca Bruno <lethalman88@gmail.com>
* st/kernel/Number.st (to:by:do, to:by:reverseDo): slightly optimized
* syx/syx-primitives.c (Processor_enter): wrong argument
(Processor_swapWith): wrong argument
* syx/syx-interp.c (syx_interp_enter_context): missed saving this_context
(syx_interp_context_to_frame): added
* syx/syx-primitives.c (ContextPart_receiver): added
(BlockContext_outerContext): added
* st/kernel/BlockContext.st (outerContext, homeContext):
* st/kernel/ContextPart.st (tracebackString):
* syx/syx-interp.h (struct SyxInterpFrame): add closure
* syx/syx-object.h: updated accessors
All calls have been updated.
* syx/syx-enums.h (enum): add ContextPart enums
* st/kernel/initialDecl.st: move receiver to MethodContext and add framePointer to ContextPart
* syx/syx-interp.c (syx_interp_frame_to_context): made public
(syx_interp_frame_to_context): use closure
* syx/syx-primitives.c (_syx_primitive_entries):
(ContextPart_parent): added
* syx/syx-parser.c (_syx_parser_find_temporary_name): cleaned up, fixes the command line interactive interpreter
* st/kernel/Console.st (nextLine):
* syx/syx-interp.c (_syx_interp_switch_process): only switch if it's a different process
* syx/syx-interp.h (struct SyxInterpState): added process
All calls have been updated to use this new member.
All tests now works just like the trunk. Have to do more work on the scheduler, though.
* syx/syx-interp.h (struct SyxInterpState): removed process_frame
* syx/syx-object.c (syx_process_new): initialize bottome frame
* syx/syx-primitives.c: updated to match new interpreter internal API
* syx/syx-interp.c (_syx_interp_switch_process): fix fetching the frame
Refactor most of the functions to request state/process arguments to work concurrency
on different processes and execution states.
Claned up everything, yet another slightly speedup.
All calls have been updated.
2008-04-18 Luca Bruno <lethalman88@gmail.com>
* syx/syx-parser.c (_syx_parser_find_temporary_name): fixes issue #29
* tests/testinterp.c (main): test block recursion (see issue #29)
* syx/syx-interp.c (_syx_interp_switch_process): do not save the process state
* syx/syx-parser.c (_syx_parser_parse_optimized_block): fix memory leak
* syx/syx-interp.c (syx_interp_enter_context): save process state
(_syx_interp_switch_process): always switch process
* syx/syx-init.c (syx_initialize_system):
2008-04-16 Luca Bruno <lethalman88@gmail.com>
* syx/syx-primitives.c (BlockClosure_valueWithArguments): forgot part of the implementation
(Compiler_parse): fix memory leak
* syx/syx-interp.c (_syx_interp_frame_to_context): again do not copy because we have to reference the frame, not important if the context will die for now
* syx/syx-object.c (syx_process_new): reset frame pointer
* syx/syx-interp.c (_syx_interp_switch_process): really switch process
* syx/syx-parser.c (syx_parser_new): do not erase scopes
2008-04-15 Luca Bruno <lethalman88@gmail.com>
* syx/syx-interp.h (struct SyxInterpFrame): add detached_frame
* syx/syx-interp.c (_syx_interp_frame_to_context): copy the arguments
(syx_interp_push_block_closure): detach the current frame
* syx/syx-object.h (syx_string_new_unref): renamed from syx_string_new_ref
* configure.ac: use -g3 for info and full debug modes
* syx/syx-interp.h (SYX_PRIM_FAIL): a lot semplified
* syx/syx-parser.c (_syx_parser_find_temporary_name): fix variable name resolution for optimized blocks
* syx/syx-interp.c (syx_process_execute_scheduled): usually next instruction is not bigger than the bytecodes count until the end of the process
(syx_process_execute_blocked): same here
(syx_interp_leave_and_answer): clear the frame
* syx/syx-parser.c (_syx_parser_parse_optimized_block): do not create a new scope but share variables with the outer context
2008-04-14 Luca Bruno <lethalman88@gmail.com>
* syx/syx-parser.c (_syx_parser_parse_optimized_block): increase method temporary stack to hold optimized block temporaries
* syx/syx-interp.c (_syx_interp_find_temporary): forgot to change the code when copied find_argument
(_syx_interp_find_argument): fixed
* syx/syx-interp.h (syx_interp_stack_peek): fix
* syx/syx-parser.c (_syx_scope_free): added
(syx_parser_free): fix leak
Clear scope tops.
* syx/syx-interp.h (struct SyxInterpFrame): removed ensure_block
* st/kernel/Set.st: forgot header
* syx/syx-interp.c (_syx_interp_find_temporary): added
(_syx_interp_find_argument): added
(_syx_interp_state_update): obtain syx_uint16 bytecodes
(_syx_interp_frame_prepare_new): frame receiver not filled in
(syx_interp_do_special): get ensure block from the context, if available
2008-04-13 Luca Bruno <lethalman88@gmail.com>
* syx/syx-error.c (syx_signal_does_not_understand): stop being a macro
* tests/testparser.c (main): updated
* syx/syx-parser.c: fix argument and temporary search
* syx/syx-utils.c: more info on method lookup failure
* syx/syx-interp.c (_syx_interp_switch_process): wrong way to get the process frame bottom
(syx_interp_enter_context): be sure we have a frame
(_syx_interp_frame_prepare_new): be aware of null frames and null stack pointers
* syx/syx-enums.h: update VM-used variable names
* st/kernel/initialDecl.st: variables have been updated to match interpreter implementation
* syx/syx-primitives.c: incredibly cleaned up block messages
Lots of changes to the interpreter and the parser.
Arguments and temporaries of blocks won't be put into the same stack of the home method.
Changed the way of dealing with contexts and processes.
The interpreter won't create any context except the ones demanded outside of it.
All contexts informations are now kept inside the process stack.
>>>>>>> 82a09eb... 2008-05-01 Luca Bruno <lethalman88@gmail.com>:ChangeLog
2008-02-20 Luca Bruno <lethalman88@gmail.com>
* syx/syx-object.h (syx_string_new_ref): renamed from syx_string_new_unref
All calls have been updated
* plugins/readline/plugin-init.c (ReadLine_readline): reference the returned string instead of creatinga new one
* syx/syx-primitives.c (FileStream_fileOp): fixed possible memory leak
* st/kernel/Console.st: added ConsoleChunkReader to fix multiple statements handling
* syx/syx-object.h (syx_string_new): use SYX_VSPRINTF
* syx/syx-utils.h (SYX_VSPRINTF): added
* syx/syx-utils.c (syx_vsprintf): removed
(syx_sprintf): removed
2008-02-18 Luca Bruno <lethalman88@gmail.com>
* syx/syx-lexer.c (_syx_lexer_token_identifier): fix var:=val assignment
(_syx_lexer_token_number): fix D.! syntax, where D is a digit (issue #28)
* syx/syx-interp.h (syx_interp_is_initialized): removed, use syx_system_initialized instead
All calls have been updated.
* syx/syx-parser.c (_syx_parser_parse_term): raise a new error for bad expression starts
2008-01-25 Luca Bruno <lethalman88@gmail.com>
Replaced all occurrences of NotFound signal with #errorNotFound.
* st/kernel/initialDecl.st: (NotKeyed): added class
* st/kernel/Dictionary.st (printOn): stop after maxPrint
* st/kernel/ArrayedCollection.st (with:with:with): added
(with:with:with:with): added
* st/kernel/Interval.st (species): added
(copyClass): removed
(collectClass): removed
* st/kernel/Collection.st (copyEmptyForCollect):
(copyClass): removed
(collectClass): removed
(with:with:with): added
(with:with:with:with): added
(removeAll): added
(maxPrint): added
(printOn): stop after maxPrint
(notKeyed): added
* st/kernel/Object.st (species): added
(errorNotFound): added
2008-01-23 Luca Bruno <lethalman88@gmail.com>
* syx/syx-parser.c (_syx_parser_parse_term): fixed bug which allowed things such as [ * ]!
* syx/syx-object.h (syx_string_new): allow variadic arguments
* syx/syx-error.c (syx_signal): ensure the interpreter is running
* syx/syx-parser.c: use syx_signal instead of syx_error
* syx/syx-utils.c (syx_sprintf): added
(syx_vsprintf): added
2008-01-18 Luca Bruno <lethalman88@gmail.com>
* st/kernel/Number.st (to:by:reverseDo): added
* st/kernel/OrderedCollection.st (addAll): remove since implemented in Collection
(add:after): added
(add:before): added
(incrementLastIndex:): added
(shiftFrom:by): added
(addAllLast): added
(addAllFirst): added
(addLast): added
(addFirst): added
(removeLast): added
(removeFirst): added
(removeAtIndex): fixed
* st/kernel/String.st (basicAt): check for bounds
(basicAt:put): check for bounds
* st/kernel/SequenceableCollection.st (copyReplaceAll:with): fixed bug with String usage
2008-01-16 Luca Bruno <lethalman88@gmail.com>
* syx/syx-object.c (syx_dictionary_bind_if_absent): fixed read error
* syx/syx-types.h (syx_malloc0): do not alloc 0 size
(syx_calloc): do not alloc 0 size
(syx_malloc): do not alloc 0 size
* syx/syx-object.c (syx_dictionary_rehash): fix memory leak
* st/kernel/Dictionary.st (keyAtValue): added
(keyAtValue:ifAbsent): added
(keys): added
(values): added
(printOn): added
(storeOn): added
(associationAt:ifAbsent): added
(includesAssociation): added
(removeAssociation): added
* st/kernel/Bag.st (add:withOccurrences): added
* st/kernel/Set.st: adjusted categories
* st/kernel/Collection.st (inject:into): added
2008-01-15 Luca Bruno <lethalman88@gmail.com>
* syx/syx-init.c (_syx_file_in_basic): file in Random.st
* st/kernel/Random.st: added
* st/kernel/Integer.st (bitInvert): added
(bitAt): added
(printOn:base): added
(storeOn:base): added
(printStringRadix): added
Added missing license header
* st/kernel/Float.st: change converting to truncation and round off
* st/kernel/Integer.st: change converting to truncation and round off
(timesRepeat): added
* st/kernel/Number.st (rem): added
(strictlyPositive): added
(squared): added
* st/kernel/Character.st (newPage): added
(esc): added
(backspace): added
(isVowel): added
Rename #codePoint: occurrences to #value:. Keep #codePoint: anyway.
* st/kernel/Integer.st (radix):
* st/kernel/String.st:
* st/kernel/Number.st (readFrom):
* st/kernel/Character.st (asciiValue): added
(digitValue): added
* syx/syx-init.c (_syx_file_in_basic): file in Date.st
* st/kernel/Date.st: added
* st/kernel/initialDecl.st: add Date class
* st/kernel/Magnitude.st (between): moved to comparing category
(=): added
Implement storeOn, storeString and printOn for collections.
* st/kernel/SequenceableCollection.st (storeOn): added
* st/kernel/Collection.st (printOn): added
(storeOn): added
* st/kernel/Behavior.st (storeOn): added
* st/kernel/Integer.st (storeOn): added
* st/kernel/Character.st (storeOn): added
* st/kernel/String.st (storeOn): added
* st/kernel/Object.st (storeOn): added
(storeString): added
(printOn): use the right class article
* st/kernel/Behavior.st (storeOn): added
* st/kernel/Association.st (storeOn): added
* st/kernel/Stream.st (space): added
2008-01-14 Luca Bruno <lethalman88@gmail.com>
* syx/syx-primitives.c (SmallInteger_print): removed since unused
Implement printOn: and use Transcript instead of #printNl.
* st/kernel/Signal.st:
* st/kernel/False.st:
* st/kernel/Integer.st:
* st/kernel/True.st:
* st/kernel/Object.st:
* st/kernel/Behavior.st:
* st/kernel/Metaclass.st:
* st/kernel/String.st:
* st/kernel/Character.st:
* st/kernel/Symbol.st:
* st/kernel/Console.st:
* st/kernel/Fraction.st:
* st/kernel/UndefinedObject.st:
* st/kernel/Association.st:
2008-01-07 Luca Bruno <lethalman88@gmail.com>
== Released 0.1.6 version ==
2008-01-06 Luca Bruno <lethalman88@gmail.com>
Fixed examples build and various dist issues
* configure.ac: missing -DWITH_PLUGINS
* plugins/Makefile.am: added
2008-01-05 Luca Bruno <lethalman88@gmail.com>
Preparing for 0.1.6 release.
2007-12-29 Luca Bruno <lethalman88@gmail.com>
* st/kernel/initialDecl.st: store commandLine object instead of commandLineArguments
Added makefiles for examples.
* syx/Makefile.am: remove macros from here
* st/kernel/CommandLine.st: added
* src/main.c (_parse_args): do not handle -c
* syx/syx-init.c (syx_initialize_system): first send #initializeSystem: blocking then #startupSystem to ensure all things are initialized if the scheduler is not initialized in some embedded applications.
(_syx_file_in_basic): added CommandLine.st
* st/kernel/SystemDictionary.st (initializeSystem:): added
(startupSystem): handle -c and -e options
* configure.ac: use SYX_OTHER_LIBS and SYX_OTHER_CFLAGS for libsyx and readd path macros
2007-12-26 Luca Bruno <lethalman88@gmail.com>
Working on issue #22.
* st/kernel/Console.st (setupHelp): added
(helpString): added
(run):
* syx/syx-lexer.c (_syx_lexer_token_string): unlimited strings
(_syx_lexer_token_symbol): unlimited symbols
(_syx_lexer_token_identifier): unlimited identifiers
Fix image snapshot inside scripts.
* st/kernel/FileStream.st (nextPut): removed
(nextPutAll): removed
* st/kernel/SystemDictionary.st (startupSystem): save the startupProcess before fileing files
* st/kernel/Console.st (nextLine): flush stdout
* syx/syx-primitives.c (FileStream_fileOp): return stdin/stdout/stderr, use fwrite instead of fputs, read instead of fread and fgetc
2007-12-25 Luca Bruno <lethalman88@gmail.com>
Fix issue #25.
* st/kernel/Compiler.st (runMultipleAndDeclarations): copy literal array because the primitive will modify it even it's constant
* syx/syx-primitives.c (FileStream_fileOp): use fread instead of fgets
2007-12-24 Luca Bruno <lethalman88@gmail.com>
Changed FileStream behavior to handle FILE* instead of file descriptors
* syx/syx-primitives.c (FileStream_fileOp):
* st/kernel/FileStream.st:
2007-12-24 Rahul <blufox@gmail.com>
* plugins/x11/plugin-init.c: updated the module prefix to X11
* plugins/x11/x11gen.rb: updated module prefix to X11 and to remove
XlibXlib structure
* plugins/x11/Xlib.i: update with NeedWidePrototypes to compile in solaris
* plugins/x11/st/XDisplay.st: added instead of XDisplay
* plugins/x11/st/Xlib.st: updated with new module prefix X11 instead of
Xlib and remove XlibXlib
* plugins/x11/st/Display.st: removed
* plugins/x11/st/XEvent.st: updated by subclassing X11XEvent
* plugins/x11/SConscript: updated to install Xlib.st
* plugins/x11/Xlib_wrap.c: updated with new classnames
* plugins/x11/swig.rb: updated the module prefix.
2007-12-24 Luca Bruno <lethalman88@gmail.com>
* st/kernel/Behavior.st: fixed parsing instance and class variable names
* configure.ac: enable mantainer mode, check for pkg-config and add prereq
* syx/syx-object.c (syx_dictionary_rehash): missing check
2007-12-23 Luca Bruno <lethalman88@gmail.com>
* plugins/x11/st/Wm.st: removed
* plugins/x11/plugin-init.c: do not include Xlib_wrap.c
* plugins/x11/Xlib.i:
* plugins/x11/SConscript: compile Xlib_wrap.c
* plugins/x11/Makefile.am: compile Xlib_wrap.c
* configure.ac: enable debug level and fix plugins support
* tests/stsupport/TestCStruct.st: update according to the latest changes and add tests for unions
* tests/testforeignstruct.c (main): test unions
Specify CStruct/CUnion fields with the same order as real C structs/unions
for instance #(char f1) instead of the old #(f1 char).
* st/foreign/CPointer.st (asByteArray): added
(asString): added
* st/foreign/CStructFieldTypePointer.st: added
* st/foreign/CStructFieldType.st: handle pointers with a different class
* st/foreign/CUnion.st: added
* st/foreign/CUnionGenerator.st: added
* syx/syx-init.c (_syx_file_in_basic): file in CUnion.st and CUnionGenerator.st
* syx/syx-primitives.c (CPointer_asString): added
(CPointer_asByteArray): added
* plugins/wingui/Makefile.am: fix install dir
* plugins/readline/Makefile.am: fix install dir
* plugins/gtk/Makefile.am: fix install dir
* plugins/x11/Makefile.am: fix install dir
2007-12-21 Luca Bruno <lethalman88@gmail.com>
Build plugins and install desktop files using the GNU build system.
* plugins/wingui/Makefile.am: added
* plugins/gtk/Makefile.am: added
* plugins/readline/Makefile.am: added
* plugins/x11/Makefile.am: added
* share/Makefile.am: added
Run tests into the tests directory.
* tests/SConscript (builder_test): use abspath and build into the tests directory
* Makefile.am (SUBDIRS): add tests
* tests/Makefile.am: added
* configure.ac: add st files for the C foreign interface
2007-12-20 Luca Bruno <lethalman88@gmail.com>
* tests/stsupport/TestCStruct.st (assertField): test float and doubles
* tests/testforeignstruct.c (main): test float and doubles
* syx/syx-primitives.c (CStructFieldType_sizeOfPointer): added
(CStructFieldType_sizeOfLong): added
* st/foreign/CStructFieldType.st: added C types sizes in bytes and long/pointer primitives to retrieve the size.
* st/foreign/CStruct.st
2007-12-19 Luca Bruno <lethalman88@gmail.com>
* SConstruct: merge CFLAGS
use gcc as preferred compiler
merge CC LINK and AR
* share/syximage.desktop: added comment translation, updated to latest standards and do not display the entry in the menus (thanks to Thilo Pfennig)
* share/syx.desktop: added comment translation and updated to latest standards (thanks to Thilo Pfennig)
* syx/syx-init.c (syx_init): give precedence to the given root directory
* configure.ac: removed unuseful line
* tests/stsupport/TestCStruct.st:
Created Test1Struct, Test2Struct and Test3Struct for testing read/write accessors.
(expectOffsets:from:): renamed to testOffsets:from:
(testOffsets:from:):
(testRead): added
(testWrite): added
* tests/testforeignstruct.c (main): create read/write tests
* st/foreign/CStruct.st (primOn:type:at): added
(primOn:type:at:put): added
* st/foreign/CStructFieldSpec.st (compileAccessorsOn): added
* st/foreign/CStructGenerator.st (compileAccessorsOn): implemented
* st/foreign/CStructFieldType.st (compileAccessorsOn:named:atOffset): added
(compileReadAccessorsOn:named:atOffset): added
(compileWriteAccessorsOn:named:atOffset): added
(initialize): largeInteger renamed to long
* syx/syx-primitives.c (CStruct_on_type_at): added
(CStruct_on_type_at_put): added
* syx/syx-object.h:
* syx/syx-object.c (syx_class_initialize): renamed to syx_object_initialize
(syx_object_initialize): added
2007-12-18 Luca Bruno <lethalman88@gmail.com>
* st/foreign/CStructGenerator.st (alignFields): cleaned the code
* st/foreign/CStructFieldSpec.st (alignAccordingToPreviousField): fixed
(nextAlignedOffset): added
* tests/testforeignstruct.c: added
Moved CPointer and CObject to st/foreign.
* SConstruct: install st/foreign files
* st/kernel/String.st (isCapitalized): added
* syx/syx-init.c (_syx_file_in_basic): file in st/foreign files
* st/foreign: added foreign structure interface support for C
2007-12-17 Luca Bruno <lethalman88@gmail.com>
* plugins/x11: added (thanks to Rahul aka blufox)
* SConstruct: build x11 plugin
* st/kernel/CPointer.st: added
* st/kernel/CObject.st (free): added
(finalize): added
* syx/syx-object.h:
* syx/syx-object.c (syx_class_initialize): added
* syx/syx-interp.h (syx_interp_is_initialized): added
* syx/syx-init.c (_syx_file_in_basic): file in CPointer.st and CObject.st
* syx/syx-primitives.c (CPointer_free): added
* plugins/SConscript: add x11 plugin
* plugins/gtk/SConscript: add Swig interface files
2007-12-16 Luca Bruno <lethalman88@gmail.com>
* st/kernel/CObject.st: added
* syx/syx-init.c (_syx_file_in_basic): file in CObject.st
2007-12-14 Luca Bruno <lethalman88@gmail.com>
== Released 0.1.5 version ==
New process/context API
* plugins/wingui/plugin-init.c (WndProcedure):
* plugins/gtk/plugin-init.c (syx_g_closure_marshal):
* plugins/gtk/plugin-init.c (syx_plugin_initialize):
* syx/syx-interp.h (syx_interp_get_current_process): added
2007-11-18 Luca Bruno <lethalman88@gmail.com>
* st/kernel/ArrayedCollection.st (withAll:startingAt): added
* st/kernel/OrderedCollection.st (asArray): added
* syx/syx-interp.c (syx_exec_state_fetch): updated to complain new process execution
* syx/syx-object.c (syx_process_new): do not require a context anymore
(syx_method_context_new): setup the Process to hold the new context and copy arguments into the stack
(syx_block_context_new): same as method context, and use the same frame of the outer context
All calls have been updated
* Removed all stacks from contexts and created a stack per process
* Gave an important speed boost up
* syx/syx-primitives.c (ArrayedCollection_replaceFromToWithStartingAt): in substitution of ArrayedCollection_replaceFromToWith
(StdIOStream_nextPut): added
(StdIOStream_nextPutAll): added
(CompiledMethod_runOn): added in substitution of manual method context creation from Smalltalk
2007-11-08 Luca Bruno <lethalman88@gmail.com>
* SCons and GNU build: added support for gprof and internal profiling
* syx/syx-profile.h: added
* syx/syx-profile.c: added
2007-11-02 Luca Bruno <lethalman88@gmail.com>
* examples/web/coldbrowser.st: embedding example of Syx into a CGI application
* syx/syx-object.h (syx_string_new_unref): added
* st/kernel/OrderedCollection.st: remove tally and implement relative indexes
(removeAtIndex:): implemented
(at:): reimplemented
(at:put:): reimplemented
2007-11-01 Luca Bruno <lethalman88@gmail.com>
* st/kernel/Dictionary.st: fixed rehashing
renamed incrementNumElements to incrementTally
* examples/web: added
2007-08-29 Luca Bruno <lethalman88@gmail.com>
* syx/syx-object.h (SYX_BLOCK_CONTEXT_ENSURE_BLOCK): added instance variable
* st/kernel/BlockClosure.st (ensure:): fixed block ensuring
* syx/syx-interp.c (syx_interp_do_special): support block ensuring on self-return and stack-return
* configure.ac: support build under MSYS
2007-08-28 Luca Bruno <lethalman88@gmail.com>
* Added support for GNU building system
2007-08-27 Luca Bruno <lethalman88@gmail.com>
* syx/SConscript: compile static objects before shared
* SConstruct: install files contained in the share directory, call update-desktop-database and update-mime-database
* st/kernel/ContextPart.st (showTraceback): renamed to tracebackString, show the real methodClass
* syx/syx-object.h (SYX_OBJECT_IS_SYMBOL): added
* syx/syx-init.c (syx_initialize_system): set syx_system_initialized to TRUE
* syx/syx-error.c (syx_signal): if system is not initialized, call syx_error ()
All calls have been updated
* Renamed numElements variable to tally as designed by Smalltalk-80
* st/kernel/Behavior.st (setInstanceVariableNames): fixed to scan the given string of variable names
* st/kernel/YXTools.st: renamed to MVC.st
2007-08-26 Luca Bruno <lethalman88@gmail.com>
* st/kernel/Behavior.st (setInstanceVariableNames): added
* st/kernel/Metaclass.st: fixed metaclass creation
* st/kernel/Behavior.st: fixed class creation
* st/kernel/Dictionary.st (at:ifAbsent:): added
* syx/syx-utils.c (syx_nanotime): added
Fixed English in some comments, thanks to billijoex.
* syx/syx-utils.c (syx_cold_parse_methods): restore the lexer if the syntax is not the expected for parsing method definitions
Default compiler is now the C compiler, not the ST anymore. The ST compiler will be mantained
for reference only.
* syx/syx-lexer.c (syx_lexer_next_chunk): do not truncate the text by one char if it's at the end
* syx/syx-parser.c (syx_parser_parse): be able to skip message pattern
All calls have been updated
* st/kernel/Compiler.st (runMultipleAndDeclarations): added
2007-08-24 Luca Bruno <lethalman88@gmail.com>
* syx/syx-error.h: got rid of varargs macros
* syx/syx-platform.h (SYX_BEGIN_DECLS): begins declarations for cplusplus
(SYX_END_DECLS): ends declarations for cplusplus
All headers have been updated
2007-08-22 Luca Bruno <lethalman88@gmail.com>
* syx/syx-platform.h (syx_strdup): added
(strndup): renamed to syx_strndup and moved from syx-types.h
(malloc, malloc0, calloc, free): moved from syx-types.h
All calls have been updated
* All mixed declarations and code changed to allow strict ISO C compilation
* All comments changed to complain ANSI C
* syx/syx-object.h (struct SyxObject): bit-fields were removed for -pedantic, the size didn't vary
* syx/syx-utils.c: issue #15 (Krzysztof Kowalczyk)
* Fixed issue #14 (kkowalczyk)
2007-08-21 Luca Bruno <lethalman88@gmail.com>
* examples/embedding/SConscript: fix use of -rdynamic
* Applied patch of issue #13
* syx/syx-signal.c: signal function to be optional
2007-08-20 Luca Bruno <lethalman88@gmail.com>
== Released 0.1.4 version ==
* Missing documentation was covered for Doxygen
2007-08-19 Luca Bruno <lethalman88@gmail.com>
* src/main.c (_parse_args): an comand line option parser was created to replace getopt
* examples/console/SConscript (target): added
* examples/SConscript: added
* examples/embedding/SConscript: added
* syx.desktop: added