/[beaver]/beaver/src/filesops.c
ViewVC logotype

Diff of /beaver/src/filesops.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by skypher, Fri Jun 13 12:55:13 2003 UTC revision 1.18 by skypher, Sat Jun 14 17:41:34 2003 UTC
# Line 45  Line 45 
45  #define CLOSE_FILE      1  #define CLOSE_FILE      1
46  #define CLOSE_ALL_FILE  2  #define CLOSE_ALL_FILE  2
47    
 #undef DEBUG  
   
48  #ifndef DEBUG  #ifndef DEBUG
49  #       define g_printf  #       define g_printf(...)
50  #       define g_print  #       define g_print(...)
51  #endif  #endif
52    
53    
# Line 65  static gint AutosaveSig = 0; Line 63  static gint AutosaveSig = 0;
63  /* returns the sign of an integer */  /* returns the sign of an integer */
64  short sgn (int i)  short sgn (int i)
65  {  {
         /*return ( (i == 0) ? (0) : (i > 0) ? (1) : (-1) );*/  
         if (i == 0)  
                 return ( 0);  
66          if (i > 0)          if (i > 0)
67                  return ( 1);                  return ( 1);
68                    
69          if (i < 0)          if (i < 0)
70                  return (-1);                  return (-1);
71                    
72            return(0);
73  }  }
74    
75    
# Line 86  gchar *str_replace_str (gchar **string, Line 84  gchar *str_replace_str (gchar **string,
84          unsigned int inpos = 0;          unsigned int inpos = 0;
85          int diff = strlen(replace) - strlen(obj);          int diff = strlen(replace) - strlen(obj);
86          gchar c;          gchar c;
         char *nul;  
87                                    
88          /* traverse string */          /* traverse string */
89          while ( ( c = *(*string + inpos) ) != '\0')          while ( ( c = *(*string + inpos) ) != '\0')

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26