/[ofm]/ofm/menu.c
ViewVC logotype

Diff of /ofm/menu.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by eses, Sun Jan 5 23:22:21 2003 UTC revision 1.8 by MarcusvA, Sat Jan 11 10:28:46 2003 UTC
# Line 32  Line 32 
32  #include "misc.h"  #include "misc.h"
33  #include "menu.h"  #include "menu.h"
34  #include <stdlib.h>  #include <stdlib.h>
35    #include <string.h> /* strlen */
36    
37  WINDOW *menubar=NULL;  WINDOW *menubar=NULL;
38  char **mbar_names;  char **mbar_names;
# Line 95  OMENU *menuCreate(int x, int y, char* na Line 96  OMENU *menuCreate(int x, int y, char* na
96      while (names[menu_size]!=NULL) {      while (names[menu_size]!=NULL) {
97          itmp=strlen(names[menu_size])+strlen(descs[menu_size])+4;          itmp=strlen(names[menu_size])+strlen(descs[menu_size])+4;
98          if (itmp>menu_width) menu_width=itmp;          if (itmp>menu_width) menu_width=itmp;
99          menu_size++;    //quite dangerous          menu_size++;    /* quite dangerous */
100      }      }
101      om=(OMENU *)xmalloc(sizeof(OMENU));      om=(OMENU *)xmalloc(sizeof(OMENU));
102            

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26