Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

updhist.f

Go to the documentation of this file.
00001 
00002 c
00003 c       Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c       by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c       All rights reserved.
00007 c
00008 c       Redistribution and use in source and binary forms are permitted
00009 c       provided that the above copyright notice and this paragraph are
00010 c       duplicated in all such forms and that any documentation,
00011 c       advertising materials, and other materials related to such
00012 c       distribution and use acknowledge that the software was developed
00013 c       by the author named above.
00014 c
00015 c       THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c       IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c       WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019 
00020         subroutine updhist(line,nl,nzoom,nbox)
00021         save
00022 c
00023 c       Update the history list.
00024 c
00025         character*(*) line
00026 c
00027         parameter (NHMAX = 500)
00028 c
00029         character*200 history(NHMAX)
00030         common/histchars/history
00031         common/histnums/lhist(NHMAX),nhist,ishist(NHMAX),
00032      &                  izhist(NHMAX),ibhist(NHMAX)
00033 c
00034         nhist=nhist+1
00035         jh=nhist
00036 10015   if (jh.gt.NHMAX) then
00037             jh=jh-NHMAX
00038             go to 10015
00039         end if
00040 c
00041         lhist(jh)=min(200,nl)
00042         history(jh)=' '
00043         history(jh)=line(1:lhist(jh))
00044 c
00045         call getnsave(nsave)
00046         ishist(jh) = nsave
00047         izhist(jh) = nzoom
00048         ibhist(jh) = nbox
00049 c
00050         return
00051         end

Generated at Sun Feb 24 09:57:20 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001