[ros-diffs] [tkreuzer] 38283: Replace deprectaed function (unlink, stricmp) with new ones (_unlink, _stricmp)

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Dec 23 00:24:19 CET 2008


Author: tkreuzer
Date: Mon Dec 22 17:24:18 2008
New Revision: 38283

URL: http://svn.reactos.org/svn/reactos?rev=38283&view=rev
Log:
Replace deprectaed function (unlink, stricmp) with new ones (_unlink, _stricmp)

Modified:
    trunk/rosapps/dflat32/config.c
    trunk/rosapps/dflat32/direct.c
    trunk/rosapps/dflat32/edit.c
    trunk/rosapps/dflat32/helpbox.c

Modified: trunk/rosapps/dflat32/config.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/dflat32/config.c?rev=38283&r1=38282&r2=38283&view=diff
==============================================================================
--- trunk/rosapps/dflat32/config.c [iso-8859-1] (original)
+++ trunk/rosapps/dflat32/config.c [iso-8859-1] Mon Dec 22 17:24:18 2008
@@ -479,7 +479,7 @@
 				char path[64];
 				DfBuildFileName(path, ".DfCfg");
 	        	fclose(fp);
-				unlink(path);
+				_unlink(path);
             	strcpy(DfCfg.version, DF_VERSION);
 			}
 			ConfigLoaded = TRUE;

Modified: trunk/rosapps/dflat32/direct.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/dflat32/direct.c?rev=38283&r1=38282&r2=38283&view=diff
==============================================================================
--- trunk/rosapps/dflat32/direct.c [iso-8859-1] (original)
+++ trunk/rosapps/dflat32/direct.c [iso-8859-1] Mon Dec 22 17:24:18 2008
@@ -78,7 +78,7 @@
 
 static int dircmp(const void *c1, const void *c2)
 {
-    return stricmp(*(char **)c1, *(char **)c2);
+    return _stricmp(*(char **)c1, *(char **)c2);
 }
 
 

Modified: trunk/rosapps/dflat32/edit.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/dflat32/edit.c?rev=38283&r1=38282&r2=38283&view=diff
==============================================================================
--- trunk/rosapps/dflat32/edit.c [iso-8859-1] (original)
+++ trunk/rosapps/dflat32/edit.c [iso-8859-1] Mon Dec 22 17:24:18 2008
@@ -241,7 +241,7 @@
 		while (wnd1 != NULL)
 		{
 			if (wnd1->extension &&
-				stricmp(FileName, wnd1->extension) == 0)
+				_stricmp(FileName, wnd1->extension) == 0)
 			{
 				DfSendMessage(wnd1, DFM_SETFOCUS, TRUE, 0);
 				DfSendMessage(wnd1, DFM_RESTORE, 0, 0);
@@ -462,7 +462,7 @@
                 char msg[30];
                 sprintf(msg, "Delete %s?", fn);
                 if (DfYesNoBox(msg))    {
-                    unlink(wnd->extension);
+                    _unlink(wnd->extension);
                     DfSendMessage(wnd, DFM_CLOSE_WINDOW, 0, 0);
                 }
             }

Modified: trunk/rosapps/dflat32/helpbox.c
URL: http://svn.reactos.org/svn/reactos/trunk/rosapps/dflat32/helpbox.c?rev=38283&r1=38282&r2=38283&view=diff
==============================================================================
--- trunk/rosapps/dflat32/helpbox.c [iso-8859-1] (original)
+++ trunk/rosapps/dflat32/helpbox.c [iso-8859-1] Mon Dec 22 17:24:18 2008
@@ -536,7 +536,7 @@
     FindHelp(Help);
     if (ThisHelp != NULL)    {
         if (LastStack == NULL ||
-                stricmp(Help, LastStack->hname))    {
+                _stricmp(Help, LastStack->hname))    {
             /* ---- add the window to the history stack ---- */
             ThisStack = DfCalloc(1,sizeof(struct HelpStack));
             ThisStack->hname = DfMalloc(strlen(Help)+1);



More information about the Ros-diffs mailing list