Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
ea217b7d
Kaydet (Commit)
ea217b7d
authored
Eki 29, 2016
tarafından
Matthew Brush
Kaydeden (comit)
Matthew Brush
Agu 04, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update HACKING for best practices (C99)
üst
a4082308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
HACKING
HACKING
+12
-2
No files found.
HACKING
Dosyayı görüntüle @
ea217b7d
...
@@ -200,8 +200,18 @@ Coding
...
@@ -200,8 +200,18 @@ Coding
moment, we want to keep the minimum requirement for GTK at 2.24 (of
moment, we want to keep the minimum requirement for GTK at 2.24 (of
course, you can use the GTK_CHECK_VERSION macro to protect code using
course, you can use the GTK_CHECK_VERSION macro to protect code using
later versions).
later versions).
* Variables should be declared before statements. You can use
* Variables should be declared (and initialized) as close as practical
gcc's -Wdeclaration-after-statement to warn about this.
to their first use. This reduces the chances of intervening code being
inserted between declaration and use, where the variable may be
uninitialized.
* Variables should be defined within the smallest scope that is practical,
for example inside a conditional branch which uses them or in the
initialization part of a for loop.
* Local variables that will not be modified should be marked as ``const``
to indicate intention. This allows the compiler to give a warning if
part of the code accidentally tries to change the value. This does not
apply to non-pointer parameters where it needlessly exposes the
implementation and it's obvious a copy is made anyway.
* Don't let variable names shadow outer variables - use gcc's -Wshadow
* Don't let variable names shadow outer variables - use gcc's -Wshadow
option.
option.
* Do not use G_LIKELY or G_UNLIKELY (except in critical loops). These
* Do not use G_LIKELY or G_UNLIKELY (except in critical loops). These
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment