diff --git a/amiga/arexx.c b/amiga/arexx.c index b138d4969..eb2a6c10a 100644 --- a/amiga/arexx.c +++ b/amiga/arexx.c @@ -16,6 +16,8 @@ * along with this program. If not, see . */ +#include "amiga/os3support.h" + #include #include #include @@ -32,11 +34,11 @@ #include "desktop/gui_window.h" #include "desktop/version.h" -#include "amiga/os3support.h" #include "amiga/arexx.h" #include "amiga/download.h" #include "amiga/gui.h" #include "amiga/hotlist.h" +#include "amiga/misc.h" #include "amiga/theme.h" extern const char * const verarexx; diff --git a/amiga/filetype.c b/amiga/filetype.c index 67b60ab07..b37ebe58d 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -16,9 +16,12 @@ * along with this program. If not, see . */ +#include "amiga/os3support.h" + #include #include #include "amiga/filetype.h" +#include "amiga/misc.h" #include "amiga/object.h" #include "content/fetch.h" #include "content/content.h" @@ -201,7 +204,7 @@ nserror ami_mime_init(const char *mimefile) if(ReadArgs(template, rarray, rargs)) { node = AddObject(ami_mime_list, AMINS_MIME); - mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE); + mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0); node->objstruct = mimeentry; if(rarray[AMI_MIME_MIMETYPE]) @@ -351,7 +354,7 @@ static APTR ami_mime_guess_add_datatype(struct DataType *dt, lwc_string **lwc_mi char *p; node = AddObject(ami_mime_list, AMINS_MIME); - mimeentry = AllocVecTags(sizeof(struct ami_mime_entry), AVT_ClearWithValue, 0, TAG_DONE); + mimeentry = ami_misc_allocvec_clear(sizeof(struct ami_mime_entry), 0); node->objstruct = mimeentry; lerror = lwc_intern_string(dth->dth_Name, strlen(dth->dth_Name), &mimeentry->datatype); diff --git a/amiga/font_scan.h b/amiga/font_scan.h index d29469742..69361557f 100755 --- a/amiga/font_scan.h +++ b/amiga/font_scan.h @@ -18,7 +18,7 @@ #ifndef AMIGA_FONT_SCAN_H #define AMIGA_FONT_SCAN_H - +#include "amiga/os3support.h" #include void ami_font_scan_init(const char *filename, bool force_scan, bool save, diff --git a/amiga/os3support.c b/amiga/os3support.c index e020d0420..613701cc5 100644 --- a/amiga/os3support.c +++ b/amiga/os3support.c @@ -160,4 +160,16 @@ char *ASPrintf(const char *fmt, ...) return rbuf; } +/* C */ +char *strlwr(char *str) +{ + size_t i; + size_t len = strlen(str); + + for(i=0; i