Code Reorganization

- Beginning to stub out the dependency helper functions in the new
  file dependency.cpp.
This commit is contained in:
Paul Beckingham 2010-07-24 06:38:08 -07:00
parent 6f67c0093d
commit 7dc55d831d
3 changed files with 51 additions and 9 deletions

View file

@ -5,13 +5,13 @@ task_SOURCES = API.cpp Att.cpp Cmd.cpp Color.cpp Config.cpp Context.cpp \
Grid.cpp Hooks.cpp Keymap.cpp Location.cpp Nibbler.cpp \
Path.cpp Permission.cpp Record.cpp Sequence.cpp \
StringTable.cpp Subst.cpp TDB.cpp Table.cpp Task.cpp \
Taskmod.cpp Timer.cpp command.cpp custom.cpp edit.cpp \
export.cpp import.cpp interactive.cpp main.cpp recur.cpp \
report.cpp rules.cpp rx.cpp text.cpp util.cpp API.h Att.h \
Cmd.h Color.h Config.h Context.h Date.h Directory.h Duration.h \
File.h Filter.h Grid.h Hooks.h Keymap.h Location.h Nibbler.h \
Path.h Permission.h Record.h Sequence.h StringTable.h Subst.h \
TDB.h Table.h Task.h Taskmod.h Timer.h i18n.h main.h text.h \
util.h rx.h
Taskmod.cpp Timer.cpp command.cpp custom.cpp dependency.cpp \
edit.cpp export.cpp import.cpp interactive.cpp main.cpp \
recur.cpp report.cpp rules.cpp rx.cpp text.cpp util.cpp \
API.h Att.h Cmd.h Color.h Config.h Context.h Date.h \
Directory.h Duration.h File.h Filter.h Grid.h Hooks.h Keymap.h \
Location.h Nibbler.h Path.h Permission.h Record.h Sequence.h \
StringTable.h Subst.h TDB.h Table.h Task.h Taskmod.h Timer.h \
i18n.h main.h text.h util.h rx.h
task_CPPFLAGS=$(LUA_CFLAGS)
task_LDFLAGS=$(LUA_LFLAGS)

42
src/dependency.cpp Normal file
View file

@ -0,0 +1,42 @@
////////////////////////////////////////////////////////////////////////////////
// task - a command line task list manager.
//
// Copyright 2006 - 2010, Paul Beckingham, Federico Hernandez.
// All rights reserved.
//
// This program 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 2 of the License, or (at your option) any later
// version.
//
// This program 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
// this program; if not, write to the
//
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor,
// Boston, MA
// 02110-1301
// USA
//
////////////////////////////////////////////////////////////////////////////////
#include <Context.h>
extern Context context;
////////////////////////////////////////////////////////////////////////////////
// bool dependencyCheckCircular ();
// void dependencyCheckDangling ();
// bool dependencyIsBlocked ();
// bool dependencyIsBlocking ();
// bool dependencyRepairNeeded ();
// void dependencyRepairChain ();
// bool dependencyRepairConfirm ();
// void dependencyNag ();
////////////////////////////////////////////////////////////////////////////////

View file

@ -11,7 +11,7 @@ OBJECTS = ../t-TDB.o ../t-Task.o ../t-text.o ../t-Date.o ../t-Table.o \
../t-Grid.o ../t-Color.o ../t-rules.o ../t-recur.o ../t-custom.o \
../t-export.o ../t-import.o ../t-edit.o ../t-Timer.o \
../t-Permission.o ../t-Path.o ../t-File.o ../t-Directory.o \
../t-Hooks.o ../t-API.o ../t-rx.o ../t-Taskmod.o
../t-Hooks.o ../t-API.o ../t-rx.o ../t-Taskmod.o ../t-dependency.o
all: $(PROJECT)