File: ded.h

package info (click to toggle)
magnus 20060324-5.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,436 kB
  • ctags: 20,462
  • sloc: cpp: 130,217; ansic: 37,090; tcl: 10,970; perl: 1,109; makefile: 966; sh: 403; yacc: 372; csh: 57; awk: 33; asm: 10
file content (21 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* include file for using deduction stack.  */
#include "miscellaneous.h"
/* deduction stack.
* assume that DED_PT is the pointer which points to the  top  of the
 stack.
* And the value at the top of the stack is 'row', next one is 'col'.
the following three macros give the operations with the stack:
*/
#ifndef __DED__
#define __DED__
#define Save_ded(row,col)   if(DED_PT - 2 <= &CT(NEXTDF,1)) {\
				DEADDE++; \
                                  DEDWNG = TRUE; \
                            } else { \
                                    *--DED_PT = col;  \
                                    *--DED_PT = row; \
                            }
#define Get_ded(row,col,res)  row=*DED_PT++; /* it means *(DED_PT++)  */ \
                        col=*DED_PT++; \
                        res=CT(row,col)
#endif