File structure Please use the same structure for your source file
as the rest of Gandalf. Header files should have the following structure:
/**
* File: $RCSfile: conventions.html,v $
* Module: SHORT DESCRIPTION OF YOUR FILE
* Part of: Gandalf Library
*
* Revision: $Revision: 1.4 $
* Last edited: $Date: 2003/01/31 18:30:17 $
* Author: $Author: pm $
* Copyright: (c) 2002 YOUR INSTITITION
*/
/* This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _GAN_YOUR_FILE_H
#define _GAN_YOUR_FILE_H
/* ANY STANDARD HEADERS REQUIRED TO COMPILE THIS HEADER FILE, E.G. */
#include <stdlib.h>
/* ANY OTHER GANDALF HEADERS REQUIRED TO COMPILE THIS HEADER FILE, E.G. */
#include <gandalf/common/misc_defs.h>
#ifdef __cplusplus
extern "C" {
#endif
/* YOUR DECLARATIONS */
#ifdef __cplusplus
}
#endif
#endif /* #ifndef _GAN_YOUR_FILE_H */
Note that there is no need to edit the revision and date. These will be
updated automatically by CVS (actually the RCS file name will be updated
as well). The extern "C" declaration is there so that C++ code
incorporating Gandalf will correctly interpret the Gandalf header files
as containing C functions. C source files will have the structure
/**
* File: $RCSfile: conventions.html,v $
* Module: SHORT DESCRIPTION OF YOUR FILE
* Part of: Gandalf Library
*
* Revision: $Revision: 1.4 $
* Last edited: $Date: 2003/01/31 18:30:17 $
* Author: $Author: pm $
* Copyright: (c) 2002 YOUR INSTITITION
*/
/* This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* This should be the first header file included */
#include <gandalf/linalg/YOUR_FILE.h>
/* any other header files your C file needs */
/* your code */