From 14fbcbda264a07d5ffb6accbfbd742ce71d92518 Mon Sep 17 00:00:00 2001
From: Christian Lefebvre <christian_lefebvre@laposte.net>
Date: Tue, 14 Aug 2007 21:42:56 +0000
Subject: [PATCH] autodoc

---
 ecrire/inc/flock.php        | 2 ++
 ecrire/inc/nfslock.php      | 3 +++
 ecrire/inc/presentation.php | 1 +
 ecrire/inc/revisions.php    | 3 +++
 4 files changed, 9 insertions(+)

diff --git a/ecrire/inc/flock.php b/ecrire/inc/flock.php
index b6df98b54b..1d6b81cec0 100644
--- a/ecrire/inc/flock.php
+++ b/ecrire/inc/flock.php
@@ -20,6 +20,7 @@ if (_SPIP_LOCK_MODE==2)
 	include_spip('inc/nfslock');
 
 $GLOBALS['liste_verrous'] = array();
+// http://doc.spip.org/@spip_fopen_lock
 function spip_fopen_lock($fichier,$mode,$verrou){
 	if (_SPIP_LOCK_MODE==1){
 		if ($fl = @fopen($fichier,$mode))
@@ -36,6 +37,7 @@ function spip_fopen_lock($fichier,$mode,$verrou){
 	}
 	return @fopen($fichier,$mode);
 }
+// http://doc.spip.org/@spip_fclose_unlock
 function spip_fclose_unlock($handle){
 	if (_SPIP_LOCK_MODE==1){
 		@flock($handle, LOCK_UN);
diff --git a/ecrire/inc/nfslock.php b/ecrire/inc/nfslock.php
index 0291128739..fd1b540625 100644
--- a/ecrire/inc/nfslock.php
+++ b/ecrire/inc/nfslock.php
@@ -88,6 +88,7 @@ include_spip('inc/acces');
 define('_DEFAULT_LOCKTIME',60);
 define('_NAME_LOCK','spip_nfs_lock');
 
+// http://doc.spip.org/@spip_nfslock
 function spip_nfslock($fichier,$max_age=0) {
 	$tries = 0;
 		
@@ -207,6 +208,7 @@ function spip_nfslock($fichier,$max_age=0) {
  *
  */
 
+// http://doc.spip.org/@spip_nfsunlock
 function spip_nfsunlock($fichier, $birth, $max_age=0, $test = false) {
 	$id = creer_uniqid();
 	if (!$max_age) $max_age = _DEFAULT_LOCKTIME;
@@ -285,6 +287,7 @@ function spip_nfsunlock($fichier, $birth, $max_age=0, $test = false) {
  * coded separately to make things as clear as possible.
  */
 
+// http://doc.spip.org/@spip_nfslock_test
 function spip_nfslock_test($fichier, $birth, $max_age=0) {
 	return spip_nfsunlock($fichier, $birth, $max_age, true);
 }
diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php
index aca1f5f9b9..702ddf5bc8 100644
--- a/ecrire/inc/presentation.php
+++ b/ecrire/inc/presentation.php
@@ -1099,6 +1099,7 @@ function fin_cadre_formulaire($return=false){
 }
 
 
+// http://doc.spip.org/@formulaire_recherche
 function formulaire_recherche($page, $complement=""){
 	$recherche = _request('recherche');
 	$recherche_aff = entites_html($recherche);
diff --git a/ecrire/inc/revisions.php b/ecrire/inc/revisions.php
index 4c706f55e5..f2616b92b3 100644
--- a/ecrire/inc/revisions.php
+++ b/ecrire/inc/revisions.php
@@ -53,6 +53,7 @@ function replace_fragment($id_article, $version_min, $version_max, $id_fragment,
 		     'fragment' => $fragment);
 }
 
+// http://doc.spip.org/@envoi_replace_fragments
 function envoi_replace_fragments($replaces) {
 	$desc = $GLOBALS['tables_auxiliaires']['spip_versions_fragments'];
 	foreach($replaces as $r)
@@ -60,6 +61,7 @@ function envoi_replace_fragments($replaces) {
 }
 
 
+// http://doc.spip.org/@envoi_delete_fragments
 function envoi_delete_fragments($id_article, $deletes) {
 	if (count($deletes)) {
 		spip_query("DELETE FROM spip_versions_fragments WHERE id_article=$id_article AND ((".	join(") OR (", $deletes)."))");
@@ -369,6 +371,7 @@ function recuperer_version($id_article, $id_version) {
 			 recuperer_fragments($id_article, $id_version));
 }
 
+// http://doc.spip.org/@reconstuire_version
 function reconstuire_version($champs, $fragments, $res=array()) {
 
 	static $msg;
-- 
GitLab