/[bison]/bison/src/bison.simple
ViewVC logotype

Diff of /bison/src/bison.simple

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

revision 1.51 by akim, Mon Aug 13 14:51:15 2001 UTC revision 1.52 by marc, Mon Aug 13 21:10:10 2001 UTC
# Line 185  int yydebug; Line 185  int yydebug;
185  #if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */  #if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */
186  # define __yy_memcpy(To, From, Count)   __builtin_memcpy (To, From, Count)  # define __yy_memcpy(To, From, Count)   __builtin_memcpy (To, From, Count)
187  #else                           /* not GNU C or C++ */  #else                           /* not GNU C or C++ */
 # ifndef __cplusplus  
188    
189  /* This is the most reliable way to avoid incompatibilities  /* This is the most reliable way to avoid incompatibilities
190     in available built-in functions on various systems.  */     in available built-in functions on various systems.  */
191  static void  static void
192    # ifndef __cplusplus
193  __yy_memcpy (to, from, count)  __yy_memcpy (to, from, count)
194       char *to;       char *to;
195       char *from;       const char *from;
196       unsigned int count;       unsigned int count;
 {  
   register char *f = from;  
   register char *t = to;  
   register int i = count;  
   
   while (i-- > 0)  
     *t++ = *f++;  
 }  
   
197  # else /* __cplusplus */  # else /* __cplusplus */
198    __yy_memcpy (char *to, const char *from, unsigned int count)
199  /* This is the most reliable way to avoid incompatibilities  # endif
    in available built-in functions on various systems.  */  
 static void  
 __yy_memcpy (char *to, char *from, unsigned int count)  
200  {  {
201      register const char *f = from;
202    register char *t = to;    register char *t = to;
   register char *f = from;  
203    register int i = count;    register int i = count;
204    
205    while (i-- > 0)    while (i-- > 0)
206      *t++ = *f++;      *t++ = *f++;
207  }  }
208    
 # endif  
209  #endif  #endif
210    
211  #line  #line

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

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