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 45 of file xv_analyze.c.

46  {
47  char *label = (char *) xv_get(menu_item, MENU_STRING);
48 
49  if (strcmp(label, SEMANTICS_ANALYZE) == 0) {
50  prompt_user("Not Implemented");
51  } else if (strcmp(label, CALLGRAPH_ANALYZE) == 0) {
52  prompt_user("Not Implemented");
53  } else {
54  pips_internal_error("Bad choice");
55  }
56 }
#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.

Referenced by create_analyze_menu().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create_analyze_menu()

void create_analyze_menu ( )

Definition at line 58 of file xv_analyze.c.

58  {
59  Menu menu;
60 
61  menu = xv_create(XV_NULL, MENU_COMMAND_MENU, MENU_ACTION_ITEM,
62  SEMANTICS_ANALYZE, analyze_notify, MENU_ACTION_ITEM,
64 
65  (void) xv_create(main_panel, PANEL_BUTTON, PANEL_LABEL_STRING, "Analyze",
66  PANEL_ITEM_MENU, menu, 0);
67 }
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: