Changeset ab88b05 for owl.h


Ignore:
Timestamp:
Jan 23, 2012, 5:27:42 PM (9 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.9
Children:
219f52c
Parents:
8135737
git-author:
Jason Gross <jgross@mit.edu> (07/23/11 22:33:17)
git-committer:
Jason Gross <jgross@mit.edu> (01/23/12 17:27:42)
Message:
Allocate the mainwin on the heap

This lets us return NULL from owl_global_get_mainwin before the mainwin
has been initilized.

Since g has static duration, g.mw is automatically initialized to NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rb9517cf rab88b05  
    533533
    534534typedef struct _owl_global {
    535   owl_mainwin mw;
     535  owl_mainwin *mw;
    536536  owl_popwin *pw;
    537537  owl_msgwin msgwin;
Note: See TracChangeset for help on using the changeset viewer.