mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
More naming conventions.
This commit is contained in:
parent
e48f36b29f
commit
33ee4d5744
1 changed files with 22 additions and 7 deletions
29
HACKING
29
HACKING
|
@ -292,13 +292,14 @@ the list of years in the copyright notice at the top of the file.
|
||||||
them in THANKS.
|
them in THANKS.
|
||||||
|
|
||||||
|
|
||||||
- Naming conventions. We use certain naming conventions to structure
|
Naming conventions =================================================
|
||||||
the considerable number of global identifiers. All identifiers
|
|
||||||
should be either all lower case or all upper case. Syllables are
|
We use certain naming conventions to structure the considerable number
|
||||||
separated by underscaores `_'. All non-static identifiers should
|
of global identifiers. All identifiers should be either all lower
|
||||||
start with scm_ or SCM_. Then might follow zero or more one letter
|
case or all upper case. Syllables are separated by underscores `_'.
|
||||||
syllables giving the category of the identifier. The currently used
|
All non-static identifiers should start with scm_ or SCM_. Then might
|
||||||
category identifiers are
|
follow zero or more syllables giving the category of the identifier.
|
||||||
|
The currently used category identifiers are
|
||||||
|
|
||||||
t - type name
|
t - type name
|
||||||
|
|
||||||
|
@ -319,6 +320,20 @@ them in THANKS.
|
||||||
|
|
||||||
s - a constant C string
|
s - a constant C string
|
||||||
|
|
||||||
|
k - a SCM variable pointing to a keyword.
|
||||||
|
|
||||||
|
sym - a SCM variable pointing to a symbol.
|
||||||
|
|
||||||
|
var - a SCM variable pointing to a variable object.
|
||||||
|
|
||||||
|
The follwing syllables also have a technical meaning:
|
||||||
|
|
||||||
|
str - this denotes a zero terminated C string
|
||||||
|
|
||||||
|
mem - a C string with an explicit count
|
||||||
|
|
||||||
|
|
||||||
|
See also the file `devel/names.text'.
|
||||||
|
|
||||||
|
|
||||||
Helpful hints ========================================================
|
Helpful hints ========================================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue