summaryrefslogtreecommitdiff
path: root/amiga/stringview/urlhistory.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/stringview/urlhistory.c')
-rw-r--r--amiga/stringview/urlhistory.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/amiga/stringview/urlhistory.c b/amiga/stringview/urlhistory.c
index 6d134a4a5..d55a4b4b6 100644
--- a/amiga/stringview/urlhistory.c
+++ b/amiga/stringview/urlhistory.c
@@ -33,6 +33,12 @@
static struct List PageList;
+#ifdef __amigaos4__
+#define ALLOCVEC_SHARED(N) AllocVecTags((N), AVT_Type, MEMF_SHARED, TAG_DONE);
+#else
+#define ALLOCVEC_SHARED(N) AllocVec((N), MEMF_SHARED);
+#endif
+
void URLHistory_Init( void )
{
// Initialise page list
@@ -79,17 +85,11 @@ static bool URLHistoryFound(nsurl *url, const struct url_data *data)
/* skip this URL if it is already in the list */
if(URLHistory_FindPage(nsurl_access(url))) return true;
- node = AllocVecTags(sizeof(struct Node),
- AVT_Type, MEMF_SHARED,
- //AVT_ClearWithValue, 0,
- TAG_DONE);
+ node = ALLOCVEC_SHARED(sizeof(struct Node));
if ( node )
{
- STRPTR urladd = (STRPTR) AllocVecTags( strlen ( nsurl_access(url) ) + 1,
- AVT_Type, MEMF_SHARED,
- //AVT_ClearWithValue, 0,
- TAG_DONE);
+ STRPTR urladd = (STRPTR) ALLOCVEC_SHARED( strlen ( nsurl_access(url) ) + 1);
if ( urladd )
{