PIPS
xv_analyze.c File Reference
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include <xview/text.h>
#include "genC.h"
#include "misc.h"
#include "wpips.h"
#include "wpips-labels.h"
#include "constants.h"
+ Include dependency graph for xv_analyze.c:

Go to the source code of this file.

Functions

void analyze_notify (Menu menu, Menu_item menu_item)
 Include the label names: More...
 
void create_analyze_menu ()
 

Function Documentation

◆ analyze_notify()

void analyze_notify ( Menu  menu,
Menu_item  menu_item 
)

Include the label names:

Definition at line 46 of file xv_analyze.c.

49 {
50  char *label = (char *) xv_get(menu_item, MENU_STRING);
51 
52  if (strcmp(label, SEMANTICS_ANALYZE) == 0) {
53  prompt_user("Not Implemented");
54  }
55  else if (strcmp(label, CALLGRAPH_ANALYZE) == 0) {
56  prompt_user("Not Implemented");
57  }
58  else {
59  pips_internal_error("Bad choice");
60  }
61 }
#define CALLGRAPH_ANALYZE
Definition: gpips-labels.h:68
#define SEMANTICS_ANALYZE
Definition: gpips-labels.h:67
void prompt_user(string a_printf_format,...)
Definition: gtk_log.c:66
#define pips_internal_error
Definition: misc-local.h:149

References CALLGRAPH_ANALYZE, pips_internal_error, prompt_user(), and SEMANTICS_ANALYZE.

+ Here is the call graph for this function:

◆ create_analyze_menu()

void create_analyze_menu ( )

Definition at line 65 of file xv_analyze.c.

66 {
67  Menu menu;
68 
69  menu = xv_create(XV_NULL, MENU_COMMAND_MENU,
70  MENU_ACTION_ITEM, SEMANTICS_ANALYZE, analyze_notify,
71  MENU_ACTION_ITEM, CALLGRAPH_ANALYZE, analyze_notify,
72  NULL);
73 
74  (void) xv_create(main_panel, PANEL_BUTTON,
75  PANEL_LABEL_STRING, "Analyze",
76  PANEL_ITEM_MENU, menu,
77  0);
78 }
void analyze_notify(Menu menu, Menu_item menu_item)
Include the label names:
Definition: xv_analyze.c:45
Panel main_panel
Definition: wpips.c:63

References analyze_notify(), CALLGRAPH_ANALYZE, main_panel, and SEMANTICS_ANALYZE.

+ Here is the call graph for this function: