about summary refs log tree commit diff stats
path: root/src/LYHistory.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1996-11-30 10:18:30 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1996-11-30 10:18:30 -0500
commit6bd78b38830217fa268e678d9637116ec516bf0e (patch)
treeff28371a110a8035413ef3ded834a5e76ebb7fd0 /src/LYHistory.c
parente087f6d44e87f489fcb3056e86319ebba4218156 (diff)
downloadlynx-snapshots-6bd78b38830217fa268e678d9637116ec516bf0e.tar.gz
snapshot of project "lynx", label v2_6_961130
Diffstat (limited to 'src/LYHistory.c')
-rw-r--r--src/LYHistory.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/LYHistory.c b/src/LYHistory.c
index d947820d..8ad69cb3 100644
--- a/src/LYHistory.c
+++ b/src/LYHistory.c
@@ -66,14 +66,16 @@ PUBLIC void LYpush ARGS1(document *,doc)
     if (nhist<MAXHIST)  {
 	history[nhist].link = doc->link;
 	history[nhist].page = doc->line;
-	history[nhist].title = 0;
+	history[nhist].title = NULL;
 	StrAllocCopy(history[nhist].title, doc->title);
-	history[nhist].address = 0;
+	history[nhist].address = NULL;
 	StrAllocCopy(history[nhist].address, doc->address);
-	history[nhist].post_data = 0;
+	history[nhist].post_data = NULL;
 	StrAllocCopy(history[nhist].post_data, doc->post_data);
-	history[nhist].post_content_type = 0;
+	history[nhist].post_content_type = NULL;
 	StrAllocCopy(history[nhist].post_content_type, doc->post_content_type);
+	history[nhist].bookmark = NULL;
+	StrAllocCopy(history[nhist].bookmark, doc->bookmark);
 	history[nhist].isHEAD = doc->isHEAD;
 	nhist++;
 
@@ -101,6 +103,8 @@ PUBLIC void LYpop ARGS1(document *,doc)
 	doc->post_data = history[nhist].post_data;
 	FREE(doc->post_content_type);
 	doc->post_content_type = history[nhist].post_content_type;
+	FREE(doc->bookmark);
+	doc->bookmark = history[nhist].bookmark;
 	doc->isHEAD = history[nhist].isHEAD;
 
         if(TRACE)
@@ -124,6 +128,7 @@ PUBLIC void LYpop_num ARGS2(int,number, document *,doc)
 	StrAllocCopy(doc->address, history[number].address);
 	StrAllocCopy(doc->post_data, history[number].post_data);
 	StrAllocCopy(doc->post_content_type, history[number].post_content_type);
+	StrAllocCopy(doc->bookmark, history[number].bookmark);
 	doc->isHEAD = history[number].isHEAD;
     }
 }
@@ -236,6 +241,7 @@ PUBLIC void historytarget ARGS1(document *,newdoc)
 	    WWWDoc.address = newdoc->address;
             WWWDoc.post_data = newdoc->post_data;
             WWWDoc.post_content_type = newdoc->post_content_type;
+            WWWDoc.bookmark = newdoc->bookmark;
 	    WWWDoc.isHEAD = newdoc->isHEAD;
 	    if ((HText *)HTAnchor_document(
 				HTAnchor_parent(HTAnchor_findAddress(&WWWDoc))