Roxen.git/
server/
etc/
modules/
Variable.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-28
2000-09-28 03:33:57 by Martin Stjernholm <mast@lysator.liu.se>
a2174a724da15433f9f136aeb8d40514a66c6d18 (
16
lines) (+
12
/-
4
)
[
Show
|
Annotate
]
Branch:
2.1
Some fixes on behalf of Per.
Rev: server/etc/modules/Variable.pmod/module.pmod:1.23
1:
-
// $Id: module.pmod,v 1.
22
2000/09/28
02
:
22
:
10
per
Exp $
+
// $Id: module.pmod,v 1.
23
2000/09/28
03
:
33
:
57
mast
Exp $
#include <module.h> #include <roxen.h>
10:
//<locale-token project="roxen_config"> LOCALE </locale-token>
-
#define LOCALE(X,Y)
\
+
#
if constant(Locale.DeferredLocale)
+
#
define LOCALE(X,Y) \
([string](mixed)Locale.DeferredLocale("roxen_config",getloclang,X,Y))
-
+
#else /* !Locale.DeferredLocale */
+
#define LOCALE(X,Y) \
+
([string](mixed)RoxenLocale.DeferredLocale("roxen_config",getloclang,X,Y))
+
#endif /* Locale.DeferredLocale */
// Increased for each variable, used to index the mappings below. static int unique_vid;
338:
"from verify_set_from_form\n" ); return; }
-
if(
q
[0] ) set_warning(
q
[0] );
-
set(
q
[1] );
+
if(
b ) {
+
if ( b
[0] ) set_warning(
b
[0] );
+
set(
b
[1] );
} }
-
+
}
string path() //! A unique identifier for this variable.