Mercurial > cpython-lru_cache-weakref
diff Modules/stdwinmodule.c @ 1332:e5fb9cdbe050 legacy-trunk
Final touch before release.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 29 Jul 1993 13:14:32 +0000 |
| parents | 6ee380349c84 |
| children | a6355c83578d |
line wrap: on
line diff
--- a/Modules/stdwinmodule.c Thu Jul 29 09:37:38 1993 +0000 +++ b/Modules/stdwinmodule.c Thu Jul 29 13:14:32 1993 +0000 @@ -68,9 +68,10 @@ #include "ceval.h" #ifdef macintosh -#include ":::src:stdwin:H:stdwin.h" +#include ":::stdwin:H:stdwin.h" #else /* !macintosh */ #include "stdwin.h" +#define HAVE_BITMAPS #endif /* !macintosh */ #ifdef USE_THREAD @@ -684,6 +685,8 @@ return None; } +#ifdef HAVE_BITMAPS + static object * drawing_bitmap(self, args) object *self; @@ -722,8 +725,12 @@ return None; } +#endif /* HAVE_BITMAPS */ + static struct methodlist drawing_methods[] = { +#ifdef HAVE_BITMAPS {"bitmap", drawing_bitmap}, +#endif {"box", drawing_box}, {"circle", drawing_circle}, {"cliprect", drawing_cliprect}, @@ -1352,6 +1359,8 @@ }; +#ifdef HAVE_BITMAPS + /* Bitmaps objects */ static bitmapobject *newbitmapobject PROTO((int, int)); @@ -1506,6 +1515,8 @@ 0, /*tp_repr*/ }; +#endif /* HAVE_BITMAPS */ + /* Windows */ @@ -2438,6 +2449,7 @@ return list; } +#ifdef HAVE_BITMAPS static object * stdwin_newbitmap(self, args) object *self; @@ -2449,6 +2461,7 @@ return NULL; return (object *)newbitmapobject(width, height); } +#endif static struct methodlist stdwin_methods[] = { {"askfile", stdwin_askfile}, @@ -2472,7 +2485,9 @@ {"listfontnames", stdwin_listfontnames}, {"menucreate", stdwin_menucreate}, {"message", stdwin_message}, +#ifdef HAVE_BITMAPS {"newbitmap", stdwin_newbitmap}, +#endif {"open", stdwin_open}, {"pollevent", stdwin_pollevent}, {"resetselection", stdwin_resetselection},
