Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. #ifndef GETFMTST_DEFINED
  2. #define GETFMTST_DEFINED
  3. #include "lsline.h"
  4. /* MACROS ---------------------------------------------------------------*/
  5. #define GetDnodeToFinish(plsc) ((plsc)->lslistcontext.plsdnToFinish)
  6. #define GetCurrentSubline(plsc) ((plsc)->lslistcontext.plssublCurrent)
  7. #define GetCurrentCpLimSubl(plssubl) ((plssubl)->cpLim)
  8. #define GetCurrentCpLim(plsc) GetCurrentCpLimSubl(GetCurrentSubline(plsc))
  9. #define GetCurrentUrSubl(plssubl) ((plssubl)->urCur)
  10. #define GetCurrentUr(plsc) GetCurrentUrSubl(GetCurrentSubline(plsc))
  11. #define GetCurrentVrSubl(plssubl) ((plssubl)->vrCur)
  12. #define GetCurrentVr(plsc) GetCurrentVrSubl(GetCurrentSubline(plsc))
  13. #define GetCurrentPointSubl(plssubl,point) (((point).u =(plssubl)->urCur), \
  14. ((point).v =(plssubl)->vrCur))
  15. #define GetCurrentPoint(plsc, point) GetCurrentPointSubl(GetCurrentSubline(plsc), point)
  16. #define GetCurrentDnodeSubl(plssubl) ((plssubl)->plsdnLast)
  17. #define GetCurrentDnode(plsc) GetCurrentDnodeSubl(GetCurrentSubline(plsc))
  18. #define GetWhereToPutLinkSubl(plssubl, Append) \
  19. (((Append) != NULL) ? \
  20. (&((Append)->plsdnNext)) : \
  21. (&((plssubl)->plsdnFirst)))
  22. #define GetWhereToPutLink(plsc,Append) GetWhereToPutLinkSubl(GetCurrentSubline(plsc), (Append))
  23. #define GetCurrentLstflow(plsc) LstflowFromSubline(GetCurrentSubline(plsc))
  24. #define GetLastDnodeDisplaySubl(plssubl) ((plssubl)->plsdnLastDisplay)
  25. #define GetLastDnodeDisplay(plsc) GetLastDnodeDisplaySubl(GetCurrentSubline(plsc))
  26. #endif /* GETFMTST_DEFINED */