Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/embryo

Dir     : e17/libs/embryo/src/bin


Modified Files:
        embryo_cc_sc.h embryo_cc_sc1.c 


Log Message:
remove no longer needed (crappy) code
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- embryo_cc_sc.h      26 Mar 2005 16:44:12 -0000      1.9
+++ embryo_cc_sc.h      1 Apr 2005 15:11:30 -0000       1.10
@@ -9,7 +9,7 @@
  *  Copyright J.E. Hendrix, 1982, 1983
  *  Copyright T. Riemersma, 1997-2003
  *
- *  Version: $Id: embryo_cc_sc.h,v 1.9 2005/03/26 16:44:12 tsauerbeck Exp $
+ *  Version: $Id: embryo_cc_sc.h,v 1.10 2005/04/01 15:11:30 tsauerbeck Exp $
  *
  *  This software is provided "as-is", without any express or implied warranty.
  *  In no event will the authors be held liable for any damages arising from
@@ -438,7 +438,6 @@
 #endif
 
 /* function prototypes in SC1.C */
-void        set_extension(char *filename, char *extension, int force);
 symbol     *fetchfunc(char *name, int tag);
 char       *operator_symname(char *symname, char *opername, int tag1,
                                     int tag2, int numtags, int resulttag);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc1.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- embryo_cc_sc1.c     26 Mar 2005 16:44:12 -0000      1.24
+++ embryo_cc_sc1.c     1 Apr 2005 15:11:31 -0000       1.25
@@ -21,7 +21,7 @@
  *  must not be misrepresented as being the original software.
  *  3.  This notice may not be removed or altered from any source
  *  distribution.  
- *  Version: $Id: embryo_cc_sc1.c,v 1.24 2005/03/26 16:44:12 tsauerbeck Exp $
+ *  Version: $Id: embryo_cc_sc1.c,v 1.25 2005/04/01 15:11:31 tsauerbeck Exp $
  */
 #include <assert.h>
 #include <ctype.h>
@@ -592,40 +592,6 @@
 
 }
 
-/* set_extension
- * Set the default extension, or force an extension. To erase the
- * extension of a filename, set "extension" to an empty string.
- */
-SC_FUNC void
-set_extension(char *filename, char *extension, int force)
-{
-   char               *ptr;
-
-   ptr = strrchr(filename, '.');
-#if 0
-   if (ptr != NULL)
-     {
-       /* ignore extension on a directory or at the start of the filename */
-       if (strchr(ptr, DIRSEP_CHAR) != NULL || ptr == filename
-           || *(ptr - 1) == DIRSEP_CHAR)
-          ptr = NULL;
-     }                         /* if */
-   if (force && ptr != NULL)
-      *ptr = '\0';             /* set zero terminator at the position of the 
period */
-   if (force || ptr == NULL)
-      strcat(filename, extension);
-#else
-   if (!ptr)
-     {
-       strcat(filename, extension);
-     }
-   else
-     {
-       strncpy(ptr, extension, strlen(extension));
-     }
-#endif
-}
-
 static void
 parseoptions(int argc, char **argv, char *iname, char *oname,
              char *pname, char *rname)




-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to