PIPS
|
#include <stdlib.h>
#include <stdio.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 "preprocessor.h"
#include <gtk/gtk.h>
#include "gpips.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)(GtkWidget *)) |
void | disable_compile_selection () |
void | enable_compile_selection () |
void | notify_hpfc_file_view (GtkWidget *widget, gpointer data) |
void | generate_a_menu_with_HPF_output_files (GtkWidget *widget, gpointer data) |
void | initialize_gpips_hpfc_hack_for_fabien_and_from_fabien () |
void | hpfc_notify (GtkWidget *menu_item, gpointer data) |
void | create_compile_menu () |
Variables | |
static GtkWidget * | compile_menu |
static GtkWidget * | compile_menu_item |
static GtkWidget * | dynamic_hpf_output_files_menu |
static GtkWidget * | dynamic_hpf_output_files_menu_item |
static bool | gpips_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 48 of file gtk_compile.c.
#define HPFC_MAKE "Make an HPF program" |
Definition at line 49 of file gtk_compile.c.
#define HPFC_RUN "Run an HPF program" |
Definition at line 50 of file gtk_compile.c.
void apply_on_each_compile_item | ( | void(*)(GtkWidget *) | function_to_apply_on_each_menu_item | ) |
Definition at line 56 of file gtk_compile.c.
References compile_menu.
Referenced by disable_compile_selection(), and enable_compile_selection().
void create_compile_menu | ( | ) |
Definition at line 190 of file gtk_compile.c.
References compile_menu, compile_menu_item, dynamic_hpf_output_files_menu, dynamic_hpf_output_files_menu_item, generate_a_menu_with_HPF_output_files(), HPFC_COMPILE, HPFC_MAKE, hpfc_notify(), HPFC_RUN, and main_window_menu_bar.
Referenced by create_menus().
void disable_compile_selection | ( | ) |
Definition at line 74 of file gtk_compile.c.
References apply_on_each_compile_item(), and disable_item().
Referenced by disable_module_selection(), gpips_main(), and wpips_main().
void enable_compile_selection | ( | ) |
Definition at line 78 of file gtk_compile.c.
References apply_on_each_compile_item(), and enable_item().
Referenced by enable_module_selection().
void generate_a_menu_with_HPF_output_files | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
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:
Definition at line 92 of file gtk_compile.c.
References dynamic_hpf_output_files_menu, dynamic_hpf_output_files_menu_item, gen_array_full_free(), gen_array_item(), gen_array_make(), hpfc_get_file_list(), notify_hpfc_file_view(), and user_warning.
Referenced by create_compile_menu().
void hpfc_notify | ( | GtkWidget * | menu_item, |
gpointer | data | ||
) |
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 158 of file gtk_compile.c.
References db_get_current_module_name(), gpips_gtk_menu_item_get_label(), gpips_hpfc_install_was_performed_hack, HPFC_COMPILE, HPFC_MAKE, HPFC_RUN, pips_internal_error, prompt_user(), safe_apply(), safe_apply_outside_the_notifyer(), and same_string_p.
Referenced by create_compile_menu().
void initialize_gpips_hpfc_hack_for_fabien_and_from_fabien | ( | ) |
Definition at line 154 of file gtk_compile.c.
References gpips_hpfc_install_was_performed_hack.
Referenced by close_workspace_notify().
void notify_hpfc_file_view | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
Definition at line 82 of file gtk_compile.c.
References alloc_first_initialized_window(), file_name, gpips_file_view(), gpips_gtk_menu_item_get_label(), hpfc_generate_path_name_of_file_name(), and user_log().
Referenced by generate_a_menu_with_HPF_output_files().
|
static |
Definition at line 52 of file gtk_compile.c.
Referenced by apply_on_each_compile_item(), and create_compile_menu().
|
static |
Definition at line 52 of file gtk_compile.c.
Referenced by create_compile_menu().
|
static |
Definition at line 53 of file gtk_compile.c.
Referenced by create_compile_menu(), and generate_a_menu_with_HPF_output_files().
|
static |
Definition at line 54 of file gtk_compile.c.
Referenced by create_compile_menu(), and generate_a_menu_with_HPF_output_files().
|
static |
quick fix around pipsmake, FC, 23/10/95
Definition at line 152 of file gtk_compile.c.
Referenced by hpfc_notify(), and initialize_gpips_hpfc_hack_for_fabien_and_from_fabien().