44 #include <visp3/core/vpConfig.h>
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 #include "vpRfstack.h"
55 static int stack[STACKSIZE] = {vpDEFAULT_REMOVE};
56 static int *sp = stack;
66 fprintf_rfstack (FILE *fp)
71 if (*sp == IS_INSIDE) {
72 fprintf (fp,
"(null)\n");
79 fprintf (fp,
"above");
82 if (flg) fprintf (fp,
" ");
84 fprintf (fp,
"below");
87 if (flg) fprintf (fp,
" ");
89 fprintf (fp,
"right");
92 if (flg) fprintf (fp,
" ");
97 if (flg) fprintf (fp,
" ");
101 if (*sp & IS_FRONT) {
104 fprintf (fp,
"front");
141 static char proc_name[] =
"pop_rfstack";
142 fprintf (stderr,
"%s: stack underflow\n", proc_name);
155 if (sp == stack + STACKSIZE - 1) {
156 static char proc_name[] =
"push_rfstack";
157 fprintf (stderr,
"%s: stack overflow\n", proc_name);
173 ip = (sp == stack) ? sp + 1 : sp - 1;
176 tmp = *sp; *sp = *ip; *ip = tmp;