/[cvs]/stack/stack.h
ViewVC logotype

Log of /stack/stack.h

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Tag:

Revision 1.28 - (view) (annotate) - [select for diffs]
Mon Aug 18 14:39:16 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
CVS Tags: HEAD
Changes since 1.27: +3 -1 lines
Diff to previous 1.27
stack.c (printerr): Modified to accept error type 5.
(check_args): Modified to accept "empty" as argument.
symbols.c: New symbols (sx_72616e646f6d), (seed), (ticks), (push) and (pop).


Revision 1.27 - (view) (annotate) - [select for diffs]
Wed Aug 13 11:58:00 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26
messages.h: Removed "\n" at the end of messages.
stack.c, stack.h (printerr): Made function smarter.
stack.c, symbols.c: Made better use of "check_args" and "printerr".


Revision 1.26 - (view) (annotate) - [select for diffs]
Mon Aug 11 14:31:48 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.25: +19 -11 lines
Diff to previous 1.25
(check_args) New function to ease the checking of parameters.


Revision 1.25 - (view) (annotate) - [select for diffs]
Fri Aug 8 14:20:49 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.24: +2 -0 lines
Diff to previous 1.24
stack.c: Trying to clean up. Moving big text mass to separate file.
Eliminating the use of function toss.


Revision 1.24 - (view) (annotate) - [select for diffs]
Mon Aug 4 14:13:16 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
(assocgen) Moved from "stack.c" to "symbols.c" + minor change in "stack.h".


Revision 1.23 - (view) (annotate) - [select for diffs]
Mon Aug 4 13:50:53 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.22: +7 -3 lines
Diff to previous 1.22
Trying to remove "content.ptr" and type casts from the source.


Revision 1.22 - (view) (annotate) - [select for diffs]
Mon Aug 4 11:22:02 2003 UTC (20 years, 9 months ago) by masse
Branch: MAIN
Changes since 1.21: +31 -0 lines
Diff to previous 1.21
(stack.c) Cleaning up.


Revision 1.21 - (view) (annotate) - [select for diffs]
Sat Mar 30 02:31:24 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.20: +17 -4 lines
Diff to previous 1.20
stack.c (gc_init): Don't GC ports.
(nl): Added an "environment*" argument.  All callers changed.
(nlport): New function.
(type): Know about ports.
(print_val): Added a FILE* argument to print to.  All callers changed.
	Also check for write errors from "fprintf".  Also, print
	ports.  If printing a list, goto out of it if a write error
	occurs and don't print any further.
(print_): Check for errors after "print_val".
(printport_, printport, princport_, princport): New functions.
(print_st): Added an "environment*" argument.  All callers changed.
(eval): Toss empty lists; if lists are functions, then empty lists are
	NOPs.  Also, don't eval ports.
(main): Reset error after showing it to protect "nl" and "printstack".
(copy_val): Don't protect the old value.  Was there ever a need to do
	that?  Also, know about ports.
(readline): Just call "readlinestream".
(readlineport, readlinestream): New functions.
(read): Just call "readstream".
(readport, readstream): New functions.
(sx_6f70656e, sx_636c6f7365): New functions "open" and "close".

stack.h (value.type): New type; "port".
(value.content): New container; "p".
(nl): Added an "environment*" argument.
(nlport): New function.
(print_val): Added a FILE* argument.
(printport_, printport, princport_, princport): New functions.
(print_st): Added an "environment*" argument.
(readlineport, readlinestream, readport, readstream, sx_6f70656e,
sx_636c6f7365): New functions.


Revision 1.20 - (view) (annotate) - [select for diffs]
Wed Mar 27 19:53:01 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.19: +1 -0 lines
Diff to previous 1.19
stack.c: (sx_646f): New function "do".


Revision 1.19 - (view) (annotate) - [select for diffs]
Thu Mar 21 03:19:32 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18
stack.c (assocgen): New function; generalized version of "assq".
(assq): Changed to just call "assocgen" with proper arguments.

stack.h (assocgen): New function.


Revision 1.18 - (view) (annotate) - [select for diffs]
Wed Mar 20 17:19:46 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.17: +1 -0 lines
Diff to previous 1.17
stack.c (assq): New function.
stack.h (assq): New function.


Revision 1.17 - (view) (annotate) - [select for diffs]
Wed Mar 20 05:29:29 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.16: +17 -9 lines
Diff to previous 1.16
stack.h: Reordered to match the order in "stack.c".
(print_h): Renamed to "print_val" and added an argument.
(setcar, setcdr, car, cdr, cons): Added declarations.

stack.c (CAR, CDR): Added more parentheses.
(new_val): All new values are the empty list.  All callers changed.
(print_val): Print circular lists correctly by searching a stack which
	     is passed recursively as a new argument.  All callers
	     changed.


Revision 1.16 - (view) (annotate) - [select for diffs]
Sun Mar 17 11:26:35 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15
stack.h (cons): Renamed to "pair".  All users changed.
stack.c (cons): New function.


Revision 1.15 - (view) (annotate) - [select for diffs]
Sat Mar 16 19:09:54 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.14: +6 -3 lines
Diff to previous 1.14
The empty list and the indicator of the end of a list is no longer a
value* which is NULL, but the "empty list" value, a type of its own.
All affected functions changed.

stack.h (value.type): New type, "empty".
(environment): Comments added.

stack.c (print_h): Print improper lists correctly.
(rev): Don't bother reversing an empty list value.
(forget): Eliminate unnecessary variable "stack_head".
(copying): Fixed centering of first line.


Revision 1.14 - (view) (annotate) - [select for diffs]
Thu Mar 14 10:39:11 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.13: +1 -0 lines
Diff to previous 1.13
stack.c:
(sx_656c7365): "else" now requires a "then".
(then): New function.


Revision 1.13 - (view) (annotate) - [select for diffs]
Tue Mar 12 14:53:19 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.12: +2 -0 lines
Diff to previous 1.12
stack.h:
(value->content.sym): New entry in content union. All callers changed.

stack.c:
(foreach): Bugfix.


Revision 1.12 - (view) (annotate) - [select for diffs]
Tue Mar 12 14:06:05 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11
stack.c:
(CAR, CDR): New macros. All callers changed.

stack.h:
(environment.head): Changed type to "*value". All callers changed.


Revision 1.11 - (view) (annotate) - [select for diffs]
Mon Mar 11 08:53:00 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.10: +10 -10 lines
Diff to previous 1.10
stack.h: Some comments added.
stack.c (print_h, eval, rev, expand, copy_val, foreach, to):
	content.ptr changed to content.c in those places where the
	type already has been checked to be "tcons" or where it's part
	of the stack, (which always must be a proper list).
(eval, expand, foreach): Check for improper lists.
(copy_val): Don't loop, recurse into both car and cdr instead.


Revision 1.10 - (view) (annotate) - [select for diffs]
Sun Mar 10 20:08:47 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.9: +20 -12 lines
Diff to previous 1.9
Modified internal data structure to use cons cells instead of simple linked
lists. There is now a new value type "tcons".


Revision 1.9 - (view) (annotate) - [select for diffs]
Sun Mar 10 10:06:36 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.8: +7 -2 lines
Diff to previous 1.8
stack.h (value): Renamed gc_protect to gc.flag.protect and replaced gc_garb with gc.flag.mark with reversed meaning.  All users changed.
(value): New field "no_gc", which is both flag.protect and flag.mark.
stack.c: All users of gc_protect and gc_garb changed.
(gc_init): Check both mark and protect at the same time through gc.no_gc.
(new_val): Initialize gc.flag.protect too.


Revision 1.8 - (view) (annotate) - [select for diffs]
Sun Mar 10 09:13:36 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7
(protect, unprotect): Changed behaviour to mimic gc_mark. All callers changed.


Revision 1.7 - (view) (annotate) - [select for diffs]
Sun Mar 10 08:51:31 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.6: +1 -0 lines
Diff to previous 1.6
stack.h (gc_maybe): New declaration.


Revision 1.6 - (view) (annotate) - [select for diffs]
Sat Mar 9 09:58:31 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.5: +1 -0 lines
Diff to previous 1.5
(sx_646976): New function "div", integer division.


Revision 1.5 - (view) (annotate) - [select for diffs]
Fri Mar 8 16:09:30 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.4: +13 -4 lines
Diff to previous 1.4
(new_val, gc_init, push_sym, eval, pack, copy_val, to, sx_72656164):
Bugfix in GC.
(push_int, push_float, type, print_h, not, sx_2b, sx_2d, sx_3e, sx_6966,
ifelse, sx_7768696c65, sx_666f72, to, beep, sx_2a, sx_2f, mod):
New value type "tfloat".
(sx_3c, sx_3c3d, sx_3e3d): New functions "<", "<=" and ">=".


Revision 1.4 - (view) (annotate) - [select for diffs]
Thu Mar 7 03:28:29 2002 UTC (22 years, 2 months ago) by teddy
Branch: MAIN
Changes since 1.3: +24 -1 lines
Diff to previous 1.3
GPL stuff:
stack.c, stack.h, Makefile: Added notices
stack.c (copying, warranty): New functions.
stack.h (copying, warranty): - '' -

Other stuff:
Makefile (stack): New explicit rule to depend on "stack.h" too.
(mtrace): Depend on "stack", not "all".
(check): New target.
stack.c (main): Don't return error on EOF.
(beep, wait): New functions.
stack.h (beep, wait): - '' -


Revision 1.3 - (view) (annotate) - [select for diffs]
Thu Mar 7 01:21:07 2002 UTC (22 years, 2 months ago) by masse
Branch: MAIN
Changes since 1.2: +3 -0 lines
Diff to previous 1.2
(protect, unprotect): New functions to protect values from GC.


Revision 1.2 - (view) (annotate) - [select for diffs]
Sun Feb 17 04:03:57 2002 UTC (22 years, 3 months ago) by masse
Branch: MAIN
Changes since 1.1: +55 -54 lines
Diff to previous 1.1
(new_val, gc_init, main) GC bugfix/trimming.
(sx_666f72 "for") Changed name to "foreach".
(sx_666f72) New function.
(eval) "(*func)()" is equal to "func()".
(value) Data structure optimation.
(stack.h) Removed variable names from prototypes.


Revision 1.1 - (view) (annotate) - [select for diffs]
Sat Feb 16 00:51:32 2002 UTC (22 years, 3 months ago) by teddy
Branch: MAIN
Separated into header file and C file.


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26