lib-win.lnt
上传用户:filter2008
上传日期:2010-03-12
资源大小:2959k
文件大小:3k
源码类别:

编辑器/阅读器

开发平台:

C/C++

  1. //  lib-win.lnt
  2. //    PC-lint Library Options File for windows.h
  3. -printf(w2,wsprintf)   // complains if pointers to wsprintf are not far.
  4. -printf(w2,wsprintfA)  // ASCII version of wsprintf
  5. -printf(w2,wsprintfW)  // UNICODE version of wsprintf
  6. -esym(14,pLocalHeap)   // variable defined in windows.h
  7. -e740   // remove 'suspicious cast' messages because these must be
  8. // routinely done within Windows.
  9. -e744   // switch has no default, reflects Petzold style
  10. -elib(46) // windows.h uses a BYTE as base of bit field.
  11. -elib(1717) // allow null prototypes.
  12. -e793       // windows breaks ANSI limits
  13. //  the following functions have their return value typically ignored.
  14. //  add or subtract from this list as desired.
  15. -esym(534,RegisterClass,ShowWindow,TranslateMessage,DispatchMessage)
  16. -esym(534,DrawText,GetTextMetrics,ReleaseDC,TextOut,SetTextAlign)
  17. -esym(534,SetScrollPos,SelectObject,SetBkMode,SendMessage,MessageBox)
  18. -esym(534,MessageBoxA,MessageBoxW,PostMessageA,PostMessageW)
  19. -esym(534,PatBlt,DeleteDC,SetCapture,SetCursor,StretchBlt)
  20. -esym(534,Rectangle,MoveTo,LineTo,ShowCursor,MoveWindow,SetWindowWord)
  21. -esym(534,SetPixel,FillRect,DeleteObject,KillTimer,GetProfileString)
  22. -esym(534,SetWindowLong,SetFocus,SetBkColor,SetTextColor,SetBrushOrg)
  23. -esym(534,UnrealizeObject,_lclose,Polygon,FrameRect,LoadString)
  24. -esym(534,GetInstanceData,GlobalUnlock,FreeResource,LoadString)
  25. -esym(534,DrawIcon,AppendMenu,GetObject,CheckMenuItem,SetClassWord)
  26. -esym(534,EnableMenuItem,SetMenu,DestroyMenu,TrackPopupMenu)
  27. -esym(534,AnsiUpper,Arc,BeginPaint,BitBlt,ChangeClipboardChain,Chord)
  28. -esym(534,CloseClipboard,CombineRgn,DdeClientTransaction,DdeDisconnect)
  29. -esym(534,DdeFreeStringHandle,DdeGetData,DdeNameService,DdePostAdvise)
  30. -esym(534,DdeQueryString,DdeUninitialize,DeleteMenu,DeleteMetaFile)
  31. -esym(534,DestroyWindow,DialogBox,DPtoLP,Ellipse,EmptyClipboard,EnableWindow)
  32. -esym(534,EnumChildWindows,EnumWindows,Escape,GetClassName,GetDlgItemText)
  33. -esym(534,GetFileTitle,GetMenuString,GetStrings,GetSystemMenu,GetTextFace)
  34. -esym(534,GetWindowText,GlobalDeleteAtom,GlobalFree,GlobalGetAtomName)
  35. -esym(534,LocalFree,LocalUnlock,LockResource,lstrcpy,OpenClipboard)
  36. -esym(534,Pie,PlayMetaFile,PopFindNextText,PostDataMessage,PostMessage)
  37. -esym(534,RestoreDC,SaveDC,SelectClipRgn,SendDlgItemMessage,SetClipboardData)
  38. -esym(534,SetDIBitsToDevice,SetMapMode,SetMapperFlags,SetROP2,SetStretchBltMode)
  39. -esym(534,SetTextJustification,SetTimer,SetViewportExt,SetViewportOrg)
  40. -esym(534,SetWindowExt,SetWindowOrg,StretchDIBits,WinExec)
  41. //  Ignored parameters
  42. -esym(715,lpszCmdParam,lpszCmdLine)
  43. // Please Note:
  44. // We complain (Error 64) when a function declared _export is
  45. // assigned to a non-export function.  Accordingly you should
  46. // modify your windows.h so that the declaration of
  47. //  LONG  (FAR PASCAL *lpfnWndProc)( HWND, WORD, WORD, LONG );
  48. // within the WNDCLASS struct has an '_export' added as in:
  49. //  LONG  (FAR PASCAL _export *lpfnWndProc)( HWND, WORD, WORD, LONG );
  50. // Alternatively use the suffix   '//lint !e64'
  51. // on the line yielding the Error 64.
  52. // Special Note for DLL's
  53. // Enable the following option by removing the leading '//'
  54. // +e934 // report passing near auto pointers to other functions
  55. // See Petzold, Chapter 19 "Dynamic Link Libraries", Section
  56. // "The DS != SS Issue", (Windows 3.0, pp 897-902), or
  57. // (Windows 3.1, pp 929-934).