mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 09:43:03 +00:00
* src/bison.simple (_yy_memcpy): CPP reformat.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2001-08-13 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* src/bison.simple (_yy_memcpy): CPP reformat.
|
||||||
|
|
||||||
2001-08-13 Pascal Bart <pascal.bart@epita.fr>
|
2001-08-13 Pascal Bart <pascal.bart@epita.fr>
|
||||||
|
|
||||||
* tests/atconfig.in (CPPFLAGS): Fix.
|
* tests/atconfig.in (CPPFLAGS): Fix.
|
||||||
|
|||||||
@@ -185,40 +185,27 @@ int yydebug;
|
|||||||
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
|
#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
|
||||||
# define __yy_memcpy(To, From, Count) __builtin_memcpy (To, From, Count)
|
# define __yy_memcpy(To, From, Count) __builtin_memcpy (To, From, Count)
|
||||||
#else /* not GNU C or C++ */
|
#else /* not GNU C or C++ */
|
||||||
# ifndef __cplusplus
|
|
||||||
|
|
||||||
/* This is the most reliable way to avoid incompatibilities
|
/* This is the most reliable way to avoid incompatibilities
|
||||||
in available built-in functions on various systems. */
|
in available built-in functions on various systems. */
|
||||||
static void
|
static void
|
||||||
|
# ifndef __cplusplus
|
||||||
__yy_memcpy (to, from, count)
|
__yy_memcpy (to, from, count)
|
||||||
char *to;
|
char *to;
|
||||||
char *from;
|
const char *from;
|
||||||
unsigned int count;
|
unsigned int count;
|
||||||
{
|
|
||||||
register char *f = from;
|
|
||||||
register char *t = to;
|
|
||||||
register int i = count;
|
|
||||||
|
|
||||||
while (i-- > 0)
|
|
||||||
*t++ = *f++;
|
|
||||||
}
|
|
||||||
|
|
||||||
# else /* __cplusplus */
|
# else /* __cplusplus */
|
||||||
|
__yy_memcpy (char *to, const char *from, unsigned int count)
|
||||||
/* 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)
|
|
||||||
{
|
{
|
||||||
|
register const char *f = from;
|
||||||
register char *t = to;
|
register char *t = to;
|
||||||
register char *f = from;
|
|
||||||
register int i = count;
|
register int i = count;
|
||||||
|
|
||||||
while (i-- > 0)
|
while (i-- > 0)
|
||||||
*t++ = *f++;
|
*t++ = *f++;
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#line
|
#line
|
||||||
|
|||||||
Reference in New Issue
Block a user