w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

value_array.h
Go to the documentation of this file.
1 #ifndef MRB_VALUE_ARRAY_H__
2 #define MRB_VALUE_ARRAY_H__
3 
4 #include <mruby.h>
5 
6 static inline void
7 value_move(mrb_value *s1, const mrb_value *s2, size_t n)
8 {
9  if (n == 0) return;
10  if (s1 > s2 && s1 < s2 + n)
11  {
12  s1 += n;
13  s2 += n;
14  while (n-- > 0) {
15  *--s1 = *--s2;
16  }
17  }
18  else if (s1 != s2) {
19  while (n-- > 0) {
20  *s1++ = *s2++;
21  }
22  }
23  else {
24  /* nothing to do. */
25  }
26 }
27 
28 #endif /* MRB_VALUE_ARRAY_H__ */
#define n
Definition: t4ht.c:1290
s1
Definition: t4ht.c:1059
char * s2
Definition: t4ht.c:1062
static void value_move(mrb_value *s1, const mrb_value *s2, size_t n)
Definition: value_array.h:7