/* Hypertext "Anchor" Object DUMMY HTAnchor.c ** ========================== ** ** An anchor represents a region of a hypertext document which is linked to ** another anchor in the same or a different document. ** ** History ** ** Nov 1990 Written in Objective-C for the NeXT browser (TBL) ** 24-Oct-1991 (JFG), written in C, browser-independant ** 21-Nov-1991 (JFG), first complete version ** 1992 (TJ) Dummy version made for HTMLGate ** ** (c) Copyright CERN 1991 - See Copyright.html */ #define HASH_SIZE 101 /* Arbitrary prime. Memory/speed tradeoff */ #include #include "tcp.h" #include "HTAnchor.h" #include "HTUtils.h" #include "HTParse.h" typedef struct _HyperDoc Hyperdoc; #ifdef vms struct _HyperDoc { int junk; /* VMS cannot handle pointers to undefined structs */ }; #endif /* Create or find a child anchor with a possible link ** -------------------------------------------------- ** ** Create new anchor with a given parent and possibly ** a name, and possibly a link to a _relatively_ named anchor. ** (Code originally in ParseHTML.h) */ PUBLIC HTChildAnchor * HTAnchor_findChildAndLink ARGS4( HTParentAnchor *,parent, /* May not be 0 */ CONST char *,tag, /* May be "" or 0 */ CONST char *,href, /* May be "" or 0 */ HTLinkType *,ltype /* May be 0 */ ) { static HTChildAnchor child; child.name = tag; child.href = href; return &child; } CONST char * HTAnchor_title ARGS1 (HTParentAnchor *,this) { return NULL; } HyperDoc * HTAnchor_document ARGS1 (HTParentAnchor *,this) { return NULL; } HTAnchor * HTAnchor_findAddress ARGS1 (CONST char *,address) { return NULL; } PUBLIC HTParentAnchor * HTAnchor_parent ARGS1 (HTAnchor *,this) { return NULL; } char * HTAnchor_address ARGS1 (HTAnchor *,this) { return NULL; } void HTAnchor_setIndex ARGS1 (HTParentAnchor *,this) { } HTAnchor * HTAnchor_followMainLink ARGS1 (HTAnchor *,this) { return NULL; }