develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33545 - trunk/compilers/ncigen

From:
infinoid
Date:
December 5, 2008 22:53
Subject:
[svn:parrot] r33545 - trunk/compilers/ncigen
Message ID:
20081206065342.E97C1CBA89@x12.develooper.com
Author: infinoid
Date: Fri Dec  5 22:53:42 2008
New Revision: 33545

Modified:
   trunk/compilers/ncigen/k.h
   trunk/compilers/ncigen/kk.h

Log:
[CAGE]
* Fix a couple of t/codingstd/c_header_guards.t failures.
* Fix several t/codingstd/c_operator.t failures.

Modified: trunk/compilers/ncigen/k.h
==============================================================================
--- trunk/compilers/ncigen/k.h	(original)
+++ trunk/compilers/ncigen/k.h	Fri Dec  5 22:53:42 2008
@@ -1,3 +1,6 @@
+#ifndef PARROT_COMPILERS_NCIGEN_K_GUARD
+#define PARROT_COMPILERS_NCIGEN_K_GUARD
+
 extern const char sqlite3_version[];
 const char *sqlite3_libversion(void);
 int sqlite3_libversion_number(void);
@@ -8,8 +11,8 @@
 typedef sqlite_int64 sqlite3_int64;
 typedef sqlite_uint64 sqlite3_uint64;
 int sqlite3_close(sqlite3 *);
-typedef int (*sqlite3_callback)(void*,int,char**, char**);
-int sqlite3_exec(sqlite3*, const char *sql, int (*callback)(void*,int,char**,char**), void *, char **errmsg);
+typedef int (*sqlite3_callback)(void*, int, char**, char**);
+int sqlite3_exec(sqlite3*, const char *sql, int (*callback)(void*, int, char**, char**), void *, char **errmsg);
 typedef struct sqlite3_mutex sqlite3_mutex;
 int sqlite3_extended_result_codes(sqlite3*, int onoff);
 sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
@@ -18,7 +21,7 @@
 void sqlite3_interrupt(sqlite3*);
 int sqlite3_complete(const char *sql);
 int sqlite3_complete16(const void *sql);
-int sqlite3_busy_handler(sqlite3*, int (*)(void*,int), void*);
+int sqlite3_busy_handler(sqlite3*, int (*)(void*, int), void*);
 int sqlite3_busy_timeout(sqlite3*, int ms);
 int sqlite3_get_table(sqlite3*, const char *sql, char ***pResult, int *nrow, int *ncolumn, char **errmsg);
 void sqlite3_free_table(char **result);
@@ -29,9 +32,9 @@
 sqlite3_int64 sqlite3_memory_used(void);
 sqlite3_int64 sqlite3_memory_highwater(int resetFlag);
 void sqlite3_randomness(int N, void *P);
-int sqlite3_set_authorizer(sqlite3*, int (*xAuth)(void*,int,const char*,const char*,const char*,const char*), void *pUserData);
-void *sqlite3_trace(sqlite3*, void (*xTrace)(void*,const char*), void*);
-void *sqlite3_profile(sqlite3*, void (*xProfile)(void*,const char*,sqlite3_uint64), void*);
+int sqlite3_set_authorizer(sqlite3*, int (*xAuth)(void*, int, const char*, const char*, const char*, const char*), void *pUserData);
+void *sqlite3_trace(sqlite3*, void (*xTrace)(void*, const char*), void*);
+void *sqlite3_profile(sqlite3*, void (*xProfile)(void*, const char*, sqlite3_uint64), void*);
 void sqlite3_progress_handler(sqlite3*, int, int (*)(void*), void*);
 int sqlite3_open(const char *filename, sqlite3 **ppDb);
 int sqlite3_open16(const void *filename, sqlite3 **ppDb);
@@ -46,6 +49,8 @@
 int sqlite3_prepare16(sqlite3 *db, const void *zSql, int nByte, sqlite3_stmt **ppStmt, const void **pzTail);
 int sqlite3_prepare16_v2(sqlite3 *db, const void *zSql, int nByte, sqlite3_stmt **ppStmt, const void **pzTail);
 
+#endif /* PARROT_COMPILERS_NCIGEN_K_GUARD */
+
 /*
  * Local variables:
  *   c-file-style: "parrot"

Modified: trunk/compilers/ncigen/kk.h
==============================================================================
--- trunk/compilers/ncigen/kk.h	(original)
+++ trunk/compilers/ncigen/kk.h	Fri Dec  5 22:53:42 2008
@@ -1,6 +1,11 @@
+#ifndef PARROT_COMPILERS_NCIGEN_KK_GUARD
+#define PARROT_COMPILERS_NCIGEN_KK_GUARD
+
 int a(int a, int b);
 int b(int a, int b);
 
+#endif /* PARROT_COMPILERS_NCIGEN_KK_GUARD */
+
 /*
  * Local variables:
  *   c-file-style: "parrot"



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About