47 #include <visp/vpConfig.h>
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
50 #include <visp/vpMy.h>
51 #include <visp/vpArit.h>
52 #include <visp/vpView.h>
53 #include <visp/vpRfstack.h>
59 static int stack[STACKSIZE] = {vpDEFAULT_REMOVE};
60 static int *sp = stack;
70 fprintf_rfstack (FILE *fp)
75 if (*sp == IS_INSIDE) {
76 fprintf (fp,
"(null)\n");
81 if (flg) fprintf (fp,
" ");
83 fprintf (fp,
"above");
86 if (flg) fprintf (fp,
" ");
88 fprintf (fp,
"below");
91 if (flg) fprintf (fp,
" ");
93 fprintf (fp,
"right");
96 if (flg) fprintf (fp,
" ");
101 if (flg) fprintf (fp,
" ");
103 fprintf (fp,
"back");
105 if (*sp & IS_FRONT) {
108 fprintf (fp,
"front");
144 static char proc_name[] =
"pop_rfstack";
147 fprintf (stderr,
"%s: stack underflow\n", proc_name);
160 static char proc_name[] =
"push_rfstack";
162 if (sp == stack + STACKSIZE - 1) {
163 fprintf (stderr,
"%s: stack overflow\n", proc_name);
179 ip = (sp == stack) ? sp + 1 : sp - 1;