PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "misc.h"
#include "phases.h"
#include "database.h"
#include "pipsdbm.h"
#include "pipsmake.h"
#include "top-level.h"
#include "wpips.h"
Go to the source code of this file.
Macros | |
#define | HPFC_COMPILE "Compile an HPF program" |
#define | HPFC_MAKE "Make an HPF program" |
#define | HPFC_RUN "Run an HPF program" |
Functions | |
void | apply_on_each_compile_item (void(*function_to_apply_on_each_menu_item)(Menu_item)) |
void | disable_compile_selection () |
void | enable_compile_selection () |
void | notify_hpfc_file_view (Menu menu, Menu_item menu_item) |
Menu | generate_a_menu_with_HPF_output_files (Menu_item menu_item, Menu_generate action) |
void | initialize_wpips_hpfc_hack_for_fabien_and_from_fabien () |
void | hpfc_notify (Menu menu, Menu_item menu_item) |
void | create_compile_menu () |
Variables | |
static Menu | compile_menu |
static bool | wpips_hpfc_install_was_performed_hack = FALSE |
quick fix around pipsmake, FC, 23/10/95 More... | |
#define HPFC_COMPILE "Compile an HPF program" |
Definition at line 205 of file xv_compile.c.
#define HPFC_MAKE "Make an HPF program" |
Definition at line 206 of file xv_compile.c.
#define HPFC_RUN "Run an HPF program" |
Definition at line 207 of file xv_compile.c.
void apply_on_each_compile_item | ( | void(*)(Menu_item) | function_to_apply_on_each_menu_item | ) |
Skip the title item and the separator items:
Definition at line 47 of file xv_compile.c.
References compile_menu.
Referenced by disable_compile_selection(), and enable_compile_selection().
void create_compile_menu | ( | ) |
Just a separator:
Definition at line 257 of file xv_compile.c.
References compile_menu, generate_a_menu_with_HPF_output_files(), HPFC_COMPILE, HPFC_MAKE, hpfc_notify(), HPFC_RUN, main_frame, main_panel, and WPIPS_MENU_SEPARATOR.
void disable_compile_selection | ( | ) |
Definition at line 62 of file xv_compile.c.
References apply_on_each_compile_item(), and disable_menu_item().
void enable_compile_selection | ( | ) |
Definition at line 69 of file xv_compile.c.
References apply_on_each_compile_item(), and enable_menu_item().
Menu generate_a_menu_with_HPF_output_files | ( | Menu_item | menu_item, |
Menu_generate | action | ||
) |
Create a new menu with the content of the hpfc directory:
First, free the old menu if it exist:
We can remove all the menu it now:
The strdup'ed string will also be freed when the menu is discarded:
We cannot remove the menu here since the notify procedure is called afterward.
Rely on the notify procedure.
Definition at line 93 of file xv_compile.c.
References gen_array_full_free(), gen_array_item(), gen_array_make(), hpfc_get_file_list(), notify_hpfc_file_view(), pips_debug, pips_internal_error, strdup(), and user_warning.
Referenced by create_compile_menu().
void hpfc_notify | ( | Menu | menu, |
Menu_item | menu_item | ||
) |
I apply the installation only once, whatever... Quick fix because the right dependences expressed for pipsmake do not seem to work. It seems that the verification of up to date resources is too clever... FC.
Definition at line 220 of file xv_compile.c.
References db_get_current_module_name(), HPFC_COMPILE, HPFC_MAKE, HPFC_RUN, pips_internal_error, prompt_user(), safe_apply(), safe_apply_outside_the_notifyer(), same_string_p, and wpips_hpfc_install_was_performed_hack.
Referenced by create_compile_menu().
void initialize_wpips_hpfc_hack_for_fabien_and_from_fabien | ( | ) |
Definition at line 214 of file xv_compile.c.
References wpips_hpfc_install_was_performed_hack.
Referenced by close_workspace_notify().
void notify_hpfc_file_view | ( | Menu | menu, |
Menu_item | menu_item | ||
) |
Try to allocate an available edit_textsw in non-emacs mode:
Definition at line 76 of file xv_compile.c.
References alloc_first_initialized_window(), file_name, hpfc_generate_path_name_of_file_name(), user_log(), wpips_emacs_mode, and wpips_file_view().
Referenced by generate_a_menu_with_HPF_output_files().
|
static |
Definition at line 44 of file xv_compile.c.
Referenced by apply_on_each_compile_item(), and create_compile_menu().
|
static |
quick fix around pipsmake, FC, 23/10/95
Definition at line 211 of file xv_compile.c.
Referenced by hpfc_notify(), and initialize_wpips_hpfc_hack_for_fabien_and_from_fabien().