Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/src/bin
Modified Files:
embryo_cc_sc.h embryo_cc_sc2.c
Log Message:
replace ishex() by isxdigits() calls
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- embryo_cc_sc.h 1 Apr 2005 15:11:30 -0000 1.10
+++ embryo_cc_sc.h 1 Apr 2005 15:15:38 -0000 1.11
@@ -9,7 +9,7 @@
* Copyright J.E. Hendrix, 1982, 1983
* Copyright T. Riemersma, 1997-2003
*
- * Version: $Id: embryo_cc_sc.h,v 1.10 2005/04/01 15:11:30 tsauerbeck Exp $
+ * Version: $Id: embryo_cc_sc.h,v 1.11 2005/04/01 15:15:38 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
@@ -465,7 +465,6 @@
int needtoken(int token);
void stowlit(cell value);
int alphanum(char c);
-int ishex(char c);
void delete_symbol(symbol * root, symbol * sym);
void delete_symbols(symbol * root, int level, int del_labels,
int delete_functions);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/src/bin/embryo_cc_sc2.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- embryo_cc_sc2.c 26 Mar 2005 15:21:02 -0000 1.16
+++ embryo_cc_sc2.c 1 Apr 2005 15:15:38 -0000 1.17
@@ -21,7 +21,7 @@
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*
- * Version: $Id: embryo_cc_sc2.c,v 1.16 2005/03/26 15:21:02 tsauerbeck Exp $
+ * Version: $Id: embryo_cc_sc2.c,v 1.17 2005/04/01 15:15:38 tsauerbeck Exp $
*/
#include <assert.h>
#include <stdio.h>
@@ -477,11 +477,11 @@
if (*ptr == '0' && *(ptr + 1) == 'x')
{ /* C style hexadecimal notation */
ptr += 2;
- while (ishex(*ptr) || *ptr == '_')
+ while (isxdigit(*ptr) || *ptr == '_')
{
if (*ptr != '_')
{
- assert(ishex(*ptr));
+ assert(isxdigit(*ptr));
*val = *val << 4;
if (isdigit(*ptr))
*val += (*ptr - '0');
@@ -2337,17 +2337,6 @@
return (alpha(c) || isdigit(c));
}
-/* ishex
- *
- * Test if character "c" is a hexadecimal digit ("0".."9" or "a".."f").
- */
-SC_FUNC int
-ishex(char c)
-{
- return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A'
- && c <= 'F');
-}
-
/* The local variable table must be searched backwards, so that the deepest
* nesting of local variables is searched first. The simplest way to do
* this is to insert all new items at the head of the list.
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs