cvs: php4 /ext/hyperwave hg_comm.c hg_comm.h
| From: | Uwe Steinmann | Date: | Fri, 16 Mar 2001 17:40:38 +0000 |
| Subject: | cvs: php4 /ext/hyperwave hg_comm.c hg_comm.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4614@lists.php.net to get a copy of this message | ||
steinm Fri Mar 16 09:40:38 2001 EDT
Modified files:
/php4/ext/hyperwave hg_comm.c hg_comm.h
Log:
- Inserting links without any delimiters is now possible
Index: php4/ext/hyperwave/hg_comm.c
diff -u php4/ext/hyperwave/hg_comm.c:1.39 php4/ext/hyperwave/hg_comm.c:1.40
--- php4/ext/hyperwave/hg_comm.c:1.39 Sun Feb 25 22:06:57 2001
+++ php4/ext/hyperwave/hg_comm.c Fri Mar 16 09:40:37 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hg_comm.c,v 1.39 2001/02/26 06:06:57 andi Exp $ */
+/* $Id: hg_comm.c,v 1.40 2001/03/16 17:40:37 steinm Exp $ */
/* #define HW_DEBUG */
@@ -523,6 +523,19 @@
if(strncmp(str, "background", 10) == 0)
cur_ptr->linktype=HW_BACKGROUND_LINK;
else
+ if(strncmp(str, "intagnodel", 10) == 0) { /* New type introduced by Uwe Steinmann
16.03.2001 */
+ cur_ptr->linktype=HW_INTAGNODEL_LINK;
+ cur_ptr->tagattr = NULL;
+ if(NULL != (str = strstr(object, "TagAttr="))) {
+ str += 8;
+ str1 = str;
+ while((*str1 != '\n') && (*str1 != '\0'))
+ str1++;
+ cur_ptr->tagattr = emalloc(str1 - str + 1);
+ memcpy(cur_ptr->tagattr, str, str1 - str);
+ cur_ptr->tagattr[str1 - str] = '\0';
+ }
+ } else
if(strncmp(str, "intag", 5) == 0) {
cur_ptr->linktype=HW_INTAG_LINK;
cur_ptr->tagattr = NULL;
@@ -695,6 +708,11 @@
offset -= 4; /* because there is no closing tag </A> */
/* laststart = cur_ptr->start; */
break;
+ case HW_INTAGNODEL_LINK:
+ snprintf(istr, BUFFERLEN, "%s", cur_ptr->link);
+ offset -= 4; /* because there is no closing tag </A> */
+/* laststart = cur_ptr->start; */
+ break;
case HW_APPLET_LINK:
if(cur_ptr->codebase)
snprintf(istr, BUFFERLEN, " CODEBASE='%s' CODE='%s'",
cur_ptr->codebase, cur_ptr->code);
@@ -727,7 +745,10 @@
else
snprintf(istr, BUFFERLEN, " %s='%s/%s'", cur_ptr->tagattr,
scriptname[HW_INTAG_LINK], cur_ptr->destdocname);
offset -= 4; /* because there is no closing tag </A> */
-/* laststart = cur_ptr->start; */
+ break;
+ case HW_INTAGNODEL_LINK:
+ snprintf(istr, BUFFERLEN, "%s", cur_ptr->destdocname);
+ offset -= 4; /* because there is no closing tag </A> */
break;
case HW_APPLET_LINK:
if(cur_ptr->codebase)
Index: php4/ext/hyperwave/hg_comm.h
diff -u php4/ext/hyperwave/hg_comm.h:1.13 php4/ext/hyperwave/hg_comm.h:1.14
--- php4/ext/hyperwave/hg_comm.h:1.13 Sun Feb 25 22:06:57 2001
+++ php4/ext/hyperwave/hg_comm.h Fri Mar 16 09:40:37 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: hg_comm.h,v 1.13 2001/02/26 06:06:57 andi Exp $ */
+/* $Id: hg_comm.h,v 1.14 2001/03/16 17:40:37 steinm Exp $ */
#ifndef HG_COMM_H
#define HG_COMM_H
@@ -85,6 +85,7 @@
#define HW_BACKGROUND_LINK 2
#define HW_INTAG_LINK 3
#define HW_APPLET_LINK 4
+#define HW_INTAGNODEL_LINK 5
#define COPY 0
#define MOVE 1