diff --git a/mozilla/network/cache/makefile.win b/mozilla/network/cache/makefile.win index 4368f05b35c..57a5837334d 100644 --- a/mozilla/network/cache/makefile.win +++ b/mozilla/network/cache/makefile.win @@ -90,8 +90,6 @@ LINCS= \ include <$(DEPTH)\config\rules.mak> libs:: $(LIBRARY) - -install:: $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib diff --git a/mozilla/network/cache/mkcache.c b/mozilla/network/cache/mkcache.c index 7f2b5fa138d..7343fe11573 100644 --- a/mozilla/network/cache/mkcache.c +++ b/mozilla/network/cache/mkcache.c @@ -1802,7 +1802,7 @@ NET_CacheConverter (FO_Present_Types format_out, */ for(i=0; *cp && i < 4; i++) { - *cp = XP_TO_UPPER(*cp); + *cp = NET_TO_UPPER(*cp); cp++; } *cp = '\0'; /* make sure it's terminated */ diff --git a/mozilla/network/cache/mkmemcac.c b/mozilla/network/cache/mkmemcac.c index 2de4bf2b630..7b901f085d3 100644 --- a/mozilla/network/cache/mkmemcac.c +++ b/mozilla/network/cache/mkmemcac.c @@ -39,7 +39,9 @@ #include "mkstream.h" #include "extcache.h" #include "mkmemcac.h" +#ifndef MODULAR_NETLIB #include "libimg.h" /* Image Lib public API. */ +#endif #include "prclist.h" #include "prmem.h" #include "plstr.h" @@ -375,8 +377,8 @@ PRIVATE int net_CacheHashComp(net_MemoryCacheObject * obj1, * so that "news:MSGID" and "news:MSGID?headers=all" share the same cache * file. */ - if((XP_TO_UPPER(obj1->cache_obj.address[0]) == 'N' - || XP_TO_UPPER(obj1->cache_obj.address[0]) == 'S') + if((NET_TO_UPPER(obj1->cache_obj.address[0]) == 'N' + || NET_TO_UPPER(obj1->cache_obj.address[0]) == 'S') && NET_URL_Type(obj1->cache_obj.address) == NEWS_TYPE_URL) { ques1 = PL_strchr(obj1->cache_obj.address, '?'); @@ -384,8 +386,8 @@ PRIVATE int net_CacheHashComp(net_MemoryCacheObject * obj1, *ques1 = '\0'; } - if((XP_TO_UPPER(obj2->cache_obj.address[0]) == 'N' - || XP_TO_UPPER(obj2->cache_obj.address[0]) == 'S') + if((NET_TO_UPPER(obj2->cache_obj.address[0]) == 'N' + || NET_TO_UPPER(obj2->cache_obj.address[0]) == 'S') && NET_URL_Type(obj2->cache_obj.address) == NEWS_TYPE_URL) { ques2 = PL_strchr(obj2->cache_obj.address, '?'); @@ -481,12 +483,12 @@ PRIVATE uint32 net_CacheHashFunc(net_MemoryCacheObject * obj1) x = (unsigned const char *) obj1->cache_obj.address; /* figure out if it's a news type URL */ - if((XP_TO_UPPER(obj1->cache_obj.address[0]) == 'N' - || XP_TO_UPPER(obj1->cache_obj.address[0]) == 'S') + if((NET_TO_UPPER(obj1->cache_obj.address[0]) == 'N' + || NET_TO_UPPER(obj1->cache_obj.address[0]) == 'S') && NET_URL_Type(obj1->cache_obj.address) == NEWS_TYPE_URL) news_type_url = TRUE; /* figure out if it's an IMAP type URL */ - else if (XP_TO_UPPER(obj1->cache_obj.address[0]) == 'M' && + else if (NET_TO_UPPER(obj1->cache_obj.address[0]) == 'M' && !PL_strncasecmp(obj1->cache_obj.address,"Mailbox://",10)) imap_type_url = TRUE; diff --git a/mozilla/network/client/makefile.win b/mozilla/network/client/makefile.win index 15769e7c445..ac883196020 100644 --- a/mozilla/network/client/makefile.win +++ b/mozilla/network/client/makefile.win @@ -81,8 +81,6 @@ LINCS= \ include <$(DEPTH)\config\rules.mak> libs:: $(LIBRARY) - -install:: $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib symbols:: diff --git a/mozilla/network/cnvts/makefile.win b/mozilla/network/cnvts/makefile.win index 4955b3db981..21c0aa4be3f 100644 --- a/mozilla/network/cnvts/makefile.win +++ b/mozilla/network/cnvts/makefile.win @@ -41,10 +41,12 @@ MISCDEP=$(LLIBS) OBJS= \ .\$(OBJDIR)\cvactive.obj \ .\$(OBJDIR)\cvchunk.obj \ +!ifndef MODULAR_NETLIB .\$(OBJDIR)\cvcolor.obj \ - .\$(OBJDIR)\cvdisk.obj \ .\$(OBJDIR)\cvmime.obj \ .\$(OBJDIR)\cvpics.obj \ +!endif + .\$(OBJDIR)\cvdisk.obj \ .\$(OBJDIR)\cvsimple.obj \ .\$(OBJDIR)\cvunzip.obj \ .\$(OBJDIR)\cvjscfg.obj \ @@ -55,10 +57,12 @@ OBJS= \ TMP_CSRCS = \ cvactive.c \ cvchunk.c \ +!ifndef MODULAR_NETLIB cvcolor.c \ - cvdisk.c \ cvmime.c \ cvpics.c \ +!endif + cvdisk.c \ cvsimple.c \ cvunzip.c \ cvjscfg.c \ @@ -109,8 +113,6 @@ LINCS= \ include <$(DEPTH)\config\rules.mak> libs:: $(LIBRARY) - -install:: $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib symbols:: diff --git a/mozilla/network/cstream/makefile.win b/mozilla/network/cstream/makefile.win index 128a84b6d2c..4a6703177b2 100644 --- a/mozilla/network/cstream/makefile.win +++ b/mozilla/network/cstream/makefile.win @@ -79,8 +79,6 @@ LINCS= \ include <$(DEPTH)\config\rules.mak> libs:: $(LIBRARY) - -install:: $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib diff --git a/mozilla/network/main/jscookie.c b/mozilla/network/main/jscookie.c index f6474509fc4..e88ce78d646 100644 --- a/mozilla/network/main/jscookie.c +++ b/mozilla/network/main/jscookie.c @@ -33,7 +33,6 @@ #include "xp_mcom.h" #include "jscookie.h" #include "ds.h" -#include "htmldlgs.h" #include "xpgetstr.h" extern int MK_ACCESS_JAVASCRIPT_COOKIE_FILTER; diff --git a/mozilla/network/main/makefile.win b/mozilla/network/main/makefile.win index 61ec2709318..341744dd5e2 100644 --- a/mozilla/network/main/makefile.win +++ b/mozilla/network/main/makefile.win @@ -139,8 +139,6 @@ LINCS=-I$(PUBLIC)\jtools \ include <$(DEPTH)\config\rules.mak> libs:: $(LIBRARY) - -install:: $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib diff --git a/mozilla/network/main/mkconect.c b/mozilla/network/main/mkconect.c index 78add39982b..e05fb2e5684 100644 --- a/mozilla/network/main/mkconect.c +++ b/mozilla/network/main/mkconect.c @@ -32,7 +32,7 @@ #include "prefapi.h" #include "mkpadpac.h" -#if defined(XP_WIN) +#if defined(XP_WIN) && !defined(MODULAR_NETLIB) #define ASYNC_DNS #endif diff --git a/mozilla/network/main/mkgeturl.c b/mozilla/network/main/mkgeturl.c index 030f37fcebf..bfa199be7c0 100644 --- a/mozilla/network/main/mkgeturl.c +++ b/mozilla/network/main/mkgeturl.c @@ -77,11 +77,15 @@ #include "jspubtd.h" #endif +#ifndef MODULAR_NETLIB #include "libimg.h" /* Image Lib public API. */ #include "il_strm.h" /* Image Lib public API. */ +#endif #include "libi18n.h" +#ifndef MODULAR_NETLIB #include "htmldlgs.h" +#endif #include "np.h" #include "prefapi.h" @@ -115,7 +119,9 @@ #include "xplocale.h" /* This is only until all platforms have libfont/ checked in */ +#ifndef MODULAR_NETLIB #define WEBFONTS +#endif #ifdef WEBFONTS #include "nf.h" diff --git a/mozilla/network/main/mkhelp.c b/mozilla/network/main/mkhelp.c index 324ccdd36f6..d1c478e5c7d 100644 --- a/mozilla/network/main/mkhelp.c +++ b/mozilla/network/main/mkhelp.c @@ -21,6 +21,7 @@ */ #include "mkutils.h" +#include "netutils.h" #include "xp.h" #include "mkparse.h" #include "mkhelp.h" @@ -350,7 +351,7 @@ NET_ParseNetHelpURL(URL_Struct *URL_s) while (*pCharacter) { - *pCharacter = (char) XP_TO_LOWER((unsigned int) *pCharacter); + *pCharacter = (char) NET_TO_LOWER((unsigned int) *pCharacter); pCharacter++; } diff --git a/mozilla/network/main/mkparse.c b/mozilla/network/main/mkparse.c index d8d2007300c..0de10af0dc5 100644 --- a/mozilla/network/main/mkparse.c +++ b/mozilla/network/main/mkparse.c @@ -20,6 +20,7 @@ */ #include "mkutils.h" +#include "netutils.h" #include "xp.h" #include "mkparse.h" #include "xp_time.h" @@ -1241,7 +1242,7 @@ int NET_MakeRelativeURL( char *base_url, /* Case-sensitive for UNIX */ *(url_ptr-1) != *(base_ptr-1) ) #else - XP_TO_LOWER(*(url_ptr-1)) != XP_TO_LOWER(*(base_ptr-1)) ) + NET_TO_LOWER(*(url_ptr-1)) != NET_TO_LOWER(*(base_ptr-1)) ) #endif { Result = NET_URL_NOT_ON_SAME_DEVICE; @@ -1268,7 +1269,7 @@ int NET_MakeRelativeURL( char *base_url, /* Case-sensitive for UNIX */ *base_ptr == *url_ptr && #else - XP_TO_LOWER(*base_ptr) == XP_TO_LOWER(*url_ptr) && + NET_TO_LOWER(*base_ptr) == NET_TO_LOWER(*url_ptr) && #endif *base_ptr != '\0' && *url_ptr != '\0' ){ base_ptr++; diff --git a/mozilla/network/main/netutils.h b/mozilla/network/main/netutils.h index 775944e7acf..a601baec504 100644 --- a/mozilla/network/main/netutils.h +++ b/mozilla/network/main/netutils.h @@ -73,6 +73,9 @@ NET_WritePostData(MWContext *context, extern int NET_UUEncode(unsigned char *src, unsigned char *dst, int srclen); +#define NET_TO_UPPER(x) ((((unsigned int) (x)) > 0x7f) ? x : toupper(x)) +#define NET_TO_LOWER(x) ((((unsigned int) (x)) > 0x7f) ? x : tolower(x)) + PR_END_EXTERN_C #endif /* NETUTILS_H */ diff --git a/mozilla/network/main/pagescan.c b/mozilla/network/main/pagescan.c index 7ce846abd96..508ea19ce53 100644 --- a/mozilla/network/main/pagescan.c +++ b/mozilla/network/main/pagescan.c @@ -51,8 +51,8 @@