Skip to content

Commit

Permalink
Final touch before release.
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 29, 1993
1 parent 8e2ec56 commit e906606
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Modules/config.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

#include "patchlevel.h"

#define VERSION "0.9.%d BETA (%s)"
#define VERSION "0.9.%d (%s)"

#ifdef __DATE__
#define DATE __DATE__
#else
#define DATE ">= 27 Mar 1993"
#define DATE ">= 29 Jul 1993"
#endif

#ifdef USE_STDWIN
#ifdef macintosh
#include ":::src:stdwin:H:stdwin.h"
#include ":::stdwin:H:stdwin.h"
#else /* !macintosh */
#include "stdwin.h"
#endif /* !macintosh */
Expand Down
17 changes: 16 additions & 1 deletion Modules/stdwinmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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
Expand Down Expand Up @@ -684,6 +685,8 @@ drawing_setfgcolor(self, args)
return None;
}

#ifdef HAVE_BITMAPS

static object *
drawing_bitmap(self, args)
object *self;
Expand Down Expand Up @@ -722,8 +725,12 @@ drawing_bitmap(self, args)
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},
Expand Down Expand Up @@ -1352,6 +1359,8 @@ typeobject Menutype = {
};


#ifdef HAVE_BITMAPS

/* Bitmaps objects */

static bitmapobject *newbitmapobject PROTO((int, int));
Expand Down Expand Up @@ -1506,6 +1515,8 @@ typeobject Bitmaptype = {
0, /*tp_repr*/
};

#endif /* HAVE_BITMAPS */


/* Windows */

Expand Down Expand Up @@ -2438,6 +2449,7 @@ stdwin_listfontnames(self, args)
return list;
}

#ifdef HAVE_BITMAPS
static object *
stdwin_newbitmap(self, args)
object *self;
Expand All @@ -2449,6 +2461,7 @@ stdwin_newbitmap(self, args)
return NULL;
return (object *)newbitmapobject(width, height);
}
#endif

static struct methodlist stdwin_methods[] = {
{"askfile", stdwin_askfile},
Expand All @@ -2472,7 +2485,9 @@ static struct methodlist stdwin_methods[] = {
{"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},
Expand Down

0 comments on commit e906606

Please sign in to comment.