* objects.h (scm_set_object_procedure_x, scm_make_class_object,
[bpt/guile.git] / HACKING
CommitLineData
23bcd7ad 1Here are some guidelines for members of the Guile developers team.
795b4217 2
d2bd3d8d
JB
3CVS conventions ======================================================
4
eb4194d6 5- We use CVS to manage the Guile sources. The repository lives on
23bcd7ad 6egcs.cygnus.com, in /egcs/carton/cvsfiles; you will need an account on
848f2a01 7that machine to access the repository. Also, for security reasons,
23bcd7ad
JB
8egcs presently only supports CVS connections via the SSH protocol, so
9you must first install the SSH client. Then, you should set your
848f2a01
TP
10CVS_RSH environment variable to ssh, and use the following as your CVS
11root:
eb4194d6 12
23bcd7ad 13 :ext:USER@egcs.cygnus.com:/egcs/carton/cvsfiles
eb4194d6
JB
14
15Either set your CVSROOT environment variable to that, or give it as
16the value of the global -d option to CVS when you check out a working
17directory.
18
848f2a01 19For more information on SSH, see http://www.cs.hut.fi/ssh.
eb4194d6
JB
20
21The Guile sources live in several modules:
22
23 - guile-core --- the interpreter, QuickThreads, and ice-9
e19268af
JB
24 - guile-doc --- documentation in progress. When complete, this will
25 be incorporated into guile-core.
eb4194d6 26 - guile-tcltk --- the Guile/Tk interface
b1f4ddc1 27 - guile-tk --- the new Guile/Tk interface, based on STk's modified Tk
eb4194d6
JB
28 - guile-rgx-ctax --- the Guile/Rx interface, and the ctax implementation
29 - guile-scsh --- the port of SCSH to guile, talk to Gary Houston
b1f4ddc1
JB
30 - guile-comp --- the Hobbit compiler (talk to mdj)
31 - guile-emacs --- Guile/Emacs interface (talk to mdj)
32 - guile-oops --- The Guile Object-Oriented Programming System (talk to mdj)
33 - guile-www --- A Guile module for making HTTP requests.
eb4194d6 34
d2bd3d8d
JB
35- We check Makefile.in and configure files into CVS, as well as the
36files they are built from (Makefile.am, configure.in); we do not check
37in Makefiles or header files generated by configuration scripts. The
350294b1 38general rule is that you should be able to check out a working
d2bd3d8d
JB
39directory of Guile from CVS, and then type "configure" and "make",
40without running any other tools.
350294b1 41
795b4217
JB
42- Make sure your changes compile and work, at least on your own
43machine, before checking them into the main branch of the Guile
44repository. If you really need to check in untested changes, make a
45branch.
46
d2bd3d8d
JB
47- Include each log entry in both the ChangeLog and in the CVS logs.
48If you're using Emacs, the pcl-cvs interface to CVS has features to
49make this easier; it checks the ChangeLog, and generates good default
50CVS log entries from that.
51
52
53Coding standards =====================================================
54
55- As for any part of Project GNU, changes to Guile should follow the
56GNU coding standards. The standards are available via anonymous FTP
57from prep.ai.mit.edu, as /pub/gnu/standards/standards.texi and
58make-stds.texi.
59
99be3450
JB
60- The Guile tree should compile without warnings under the following
61GCC switches, which are the default in the current configure script:
94ff0977 62 -Wall -Wpointer-arith -Wmissing-prototypes
99be3450 63The only exceptions are the warnings about variables being clobbered
f0c61943 64by longjmp/vfork in eval.c. (Tho' if you can figure out how to get
99be3450
JB
65rid of those, too, I'd be happy.)
66
795b4217
JB
67- When you make a user-visible change (i.e. one that should be
68documented, and appear in NEWS, put an asterisk in column zero of the
69start of the ChangeLog entry, like so:
70
71Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
72
73* * fports.c (scm_open_file): don't return #f, throw error.
74
fa3f45cc
JB
75When you've written a NEWS entry and updated the documentation, go
76ahead and remove the asterisk. I will use the asterisks to find and
77document changes that haven't been dealt with before a release.
78
30d14d55
JB
79- There's no need to keep a change log for documentation files. This
80is because documentation is not susceptible to bugs that are hard to
81fix. Documentation does not consist of parts that must interact in a
82precisely engineered fashion; to correct an error, you need not know
83the history of the erroneous passage. (This is copied from the GNU
84coding standards.)
85
795b4217
JB
86- Make sure you have papers from people before integrating their
87changes or contributions. This is very frustrating, but very
88important to do right. From maintain.texi, "Information for
89Maintainers of GNU Software":
90
91 When incorporating changes from other people, make sure to follow the
92 correct procedures. Doing this ensures that the FSF has the legal
93 right to distribute and defend GNU software.
94
95 For the sake of registering the copyright on later versions ofthe
96 software you need to keep track of each person who makes significant
97 changes. A change of ten lines or so, or a few such changes, in a
98 large program is not significant.
99
100 *Before* incorporating significant changes, make sure that the person
101 has signed copyright papers, and that the Free Software Foundation has
102 received them.
103
104If you receive contributions you want to use from someone, let me know
105and I'll take care of the administrivia. Put the contributions aside
106until we have the necessary papers.
107
fa3f45cc
JB
108- When you make substantial changes to a file, add the current year to
109the list of years in the copyright notice at the top of the file.
795b4217 110
d2bd3d8d
JB
111
112Helpful hints ========================================================
113
f84f77f5
JB
114- [From Mikael Djurfeldt] When working on the Guile internals, it is
115quite often practical to implement a scheme-level procedure which
116helps you examine the feature you're working on.
117
118Examples of such procedures are: pt-size, debug-hand and
119current-pstate.
120
121I've now put #ifdef GUILE_DEBUG around all such procedures, so that
122they are not compiled into the "normal" Guile library. Please do the
123same when you add new procedures/C functions for debugging purpose.
124
125You can define the GUILE_DEBUG flag by passing --enable-guile-debug to
126the configure script.
127
795b4217
JB
128
129Jim Blandy