aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--lib/libldapschema/lformat.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libldapschema/lformat.c b/lib/libldapschema/lformat.c
index 37a41ef..6a28645 100644
--- a/lib/libldapschema/lformat.c
+++ b/lib/libldapschema/lformat.c
@@ -83,15 +83,16 @@
83///////////////// 83/////////////////
84#pragma mark - Functions 84#pragma mark - Functions
85 85
86#define APPEND( c ) { last = c; if (strpos<size) str[strpos] = last; strpos++; }
87#define INDENT() { if ((!IS_SPACE(last))&&((strpos))) { APPEND('\n'); for(x=0; (x<(indent*3));x++) APPEND(' '); bol=strpos; }; }
86/// initializes LDAP schema 88/// initializes LDAP schema
87/// @param[out] str Numeric error code 89/// @param[out] str output buffer to store formatted definition
88/// @param[in] size Numeric error code 90/// @param[in] size size of output buffer
89/// @param[in] def Numeric error code 91/// @param[in] def unformatted definition string.
92/// @param[in] width column width for line wrapping
90/// 93///
91/// @return Returns a string representation of the error code. 94/// @return Returns a string representation of the error code.
92/// @see ldapschema_free, ldapschema_initialize, ldapschema_errno 95/// @see ldapschema_free, ldapschema_initialize, ldapschema_errno
93#define APPEND( c ) { last = c; if (strpos<size) str[strpos] = last; strpos++; }
94#define INDENT() { if ((!IS_SPACE(last))&&((strpos))) { APPEND('\n'); for(x=0; (x<(indent*3));x++) APPEND(' '); bol=strpos; }; }
95int ldapschema_fmt_definition( char * restrict str, size_t size, const char * restrict def, size_t width ) 96int ldapschema_fmt_definition( char * restrict str, size_t size, const char * restrict def, size_t width )
96{ 97{
97 size_t defpos; 98 size_t defpos;