mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-12 Dave Peticolas <dave@krondo.com>
* src/register/register-common.h: move function defs to register-common.c * src/register/register-common.c: new file git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4643 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9c21bd3e40
commit
f655f9dcb6
@ -1,5 +1,10 @@
|
|||||||
2001-06-12 Dave Peticolas <dave@krondo.com>
|
2001-06-12 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/register/register-common.h: move function defs to
|
||||||
|
register-common.c
|
||||||
|
|
||||||
|
* src/register/register-common.c: new file
|
||||||
|
|
||||||
* src/gnome/glade/Makefile.am: new file
|
* src/gnome/glade/Makefile.am: new file
|
||||||
|
|
||||||
* src/gnome/glade/commodity.glade: new file. glade file for
|
* src/gnome/glade/commodity.glade: new file. glade file for
|
||||||
|
@ -10,6 +10,7 @@ libgncregister_a_SOURCES = \
|
|||||||
pricecell.c \
|
pricecell.c \
|
||||||
quickfillcell.c \
|
quickfillcell.c \
|
||||||
recncell.c \
|
recncell.c \
|
||||||
|
register-common.c \
|
||||||
splitreg.c \
|
splitreg.c \
|
||||||
table-allgui.c \
|
table-allgui.c \
|
||||||
table-gnome.c \
|
table-gnome.c \
|
||||||
|
40
src/register/register-common.c
Normal file
40
src/register/register-common.c
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
/********************************************************************\
|
||||||
|
* register-common.c -- Common functions for the register *
|
||||||
|
* Copyright (c) 2001 Dave Peticolas *
|
||||||
|
* *
|
||||||
|
* 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, contact: *
|
||||||
|
* *
|
||||||
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
||||||
|
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
|
||||||
|
* Boston, MA 02111-1307, USA gnu@gnu.org *
|
||||||
|
* *
|
||||||
|
\********************************************************************/
|
||||||
|
|
||||||
|
#include "register-common.h"
|
||||||
|
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
virt_cell_loc_equal (VirtualCellLocation vcl1, VirtualCellLocation vcl2)
|
||||||
|
{
|
||||||
|
return ((vcl1.virt_row == vcl2.virt_row) &&
|
||||||
|
(vcl1.virt_col == vcl2.virt_col));
|
||||||
|
}
|
||||||
|
|
||||||
|
gboolean
|
||||||
|
virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2)
|
||||||
|
{
|
||||||
|
return (virt_cell_loc_equal (vl1.vcell_loc, vl2.vcell_loc) &&
|
||||||
|
(vl1.phys_row_offset == vl2.phys_row_offset) &&
|
||||||
|
(vl1.phys_col_offset == vl2.phys_col_offset));
|
||||||
|
}
|
@ -37,14 +37,8 @@ struct _VirtualCellLocation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
G_INLINE_FUNC gboolean
|
gboolean virt_cell_loc_equal (VirtualCellLocation vcl1,
|
||||||
virt_cell_loc_equal (VirtualCellLocation vcl1, VirtualCellLocation vcl2);
|
VirtualCellLocation vcl2);
|
||||||
G_INLINE_FUNC gboolean
|
|
||||||
virt_cell_loc_equal (VirtualCellLocation vcl1, VirtualCellLocation vcl2)
|
|
||||||
{
|
|
||||||
return ((vcl1.virt_row == vcl2.virt_row) &&
|
|
||||||
(vcl1.virt_col == vcl2.virt_col));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* The VirtualLocation structure contains the virtual
|
/* The VirtualLocation structure contains the virtual
|
||||||
@ -66,14 +60,6 @@ struct _VirtualLocation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
G_INLINE_FUNC gboolean
|
gboolean virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2);
|
||||||
virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2);
|
|
||||||
G_INLINE_FUNC gboolean
|
|
||||||
virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2)
|
|
||||||
{
|
|
||||||
return (virt_cell_loc_equal (vl1.vcell_loc, vl2.vcell_loc) &&
|
|
||||||
(vl1.phys_row_offset == vl2.phys_row_offset) &&
|
|
||||||
(vl1.phys_col_offset == vl2.phys_col_offset));
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user