/********************************************************************************* * COPYRIGHT NOTICE: * Copyright © 2013 Andrew Smith (GNA SERVICES INC) * All Rights Reserved. * * This file, tpad_reload.c , is part of tpad. * * tpad is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * tpad is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with tpad. If not, see . ********************************************************************************/ #include "tpad_headers.h" static void* reload_current_file(); void* tpad_reload(){ reload_current_file(); } static void* reload_current_file(){ if (tpad_fp_get_current() != NULL){ if(save_modified()) { show_file(tpad_fp_get_current()); } } }