]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Renameing unisql to unimar
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 17 Jun 2025 04:02:38 +0000 (00:02 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 17 Jun 2025 04:02:38 +0000 (00:02 -0400)
lib/Makefile
lib/devsql.c
lib/unimar.c [moved from lib/unisql.c with 86% similarity]
lib/unimar.h
lib/unisql.h [deleted file]

index aa147a71d06bbe9ecac5df676b47251578bf194c..5131e3480c7a79c3927496d06482297d7d6b72a8 100644 (file)
@@ -26,15 +26,15 @@ shared      :  libposql libmysql
 libposql:  unipos.o
           $(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unipos.o
 
-libmysql:  unisql.o
-          $(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unisql.o
+libmysql:  unimar.o
+          $(CC) -shared -Wl,-soname,$@.so.1 -o $@.so.1.0 unimar.o
 
 #--------------------------------------------------------------------
 unipos.o:  unipos.h
           $(CC) $(CFLAGS) -c -fPIC -o $@ unipos.c
 
-unisql.o:  unisql.h
-          $(CC) $(CFLAGS) -c -fPIC -o $@ unisql.c
+unimar.o:  unimar.h
+          $(CC) $(CFLAGS) -c -fPIC -o $@ unimar.c
 
 #--------------------------------------------------------------------
 #Equivalences
index bfc2e4e401a1bd75b9477089deb89dfb7bb1caba..235d4356aec0334eab1140f60fea24aa434a07f7 100644 (file)
@@ -24,7 +24,7 @@ typedef struct  {
         SQLDBTYP sqldb;         //database type
         union   {
           POSPTR *psql;         //postgreSQL reference/
-          MYSPTR *msql;         //MySQL Reference
+          MARPTR *msql;         //Mariadb|MySQL Reference
           }db;
         }SQLTYP;
 /*
similarity index 86%
rename from lib/unisql.c
rename to lib/unimar.c
index 4661ff74c6521a5b1e0df42f0ee4a1b5aec058c0..67e4124a78a6308783e279ee63a618ba76cc9454 100644 (file)
@@ -7,7 +7,7 @@
 /********************************************************/
 #include        <stdio.h>
 
-#include        "unisql.h"
+#include        "unimar.h"
 
 /*
 \f
 /*      postgresq SQL server.                           */
 /*                                                      */
 /********************************************************/
-SQLPTR *sql_opensql(const char *host,const char *sqlport,const char *dbname)
+MARPTR *mar_opensql(const char *host,const char *sqlport,const char *dbname)
 
 {
 #define OPEP    "unisql.c:sql_opensql,"
 
-SQLPTR *sqlptr;
+MARPTR *marptr;
 
-sqlptr=(SQLPTR *)0;
+marptr=(MARPTR *)0;
 (void) fprintf(stderr,"%s\n","To be implemented");
-return sqlptr;
+return marptr;
 #undef  OPEP
 }
 /*
@@ -39,13 +39,13 @@ return sqlptr;
 /*      postgresql SQL server.                          */
 /*                                                      */
 /********************************************************/
-SQLPTR *sql_closesql(SQLPTR *sqlptr)
+MARPTR *mar_closesql(MARPTR *marptr)
 
 {
 #define OPEP    "sqlpos.c:sql_closesql,"
 
 (void) fprintf(stderr,"%s\n","To be implemented");
-return sqlptr;
+return marptr;
 
 #undef  OPEP
 }
index bdf1b8951bd0966e46b4f967d839bbb2992fee93..c8beb3582cb60d73d78829ac9a1c63b0f5a490da 100644 (file)
@@ -1,14 +1,20 @@
 // vim: smarttab tabstop=8 shiftwidth=2 expandtab
 /********************************************************/
 /*                                                     */
-/*     base level subroutine declaration               */
-/*     to handle MariaDB SQL request.                  */
+/*     Base level subroutine declaration               */
+/*     to handle MYSQL/MARIADB SQL request.            */
 /*                                                     */
 /********************************************************/
 #ifndef        UNIMAR
 #define UNIMAR
 
 //reference to a SQL pointer reference
-typedef void MYSPTR;
+typedef void MARPTR;
+
+//Opening a postscript database
+extern MARPTR *mar_opensql(const char *host,const char *sqlport,const char *dbname);
+
+//closing a postscript database
+extern MARPTR *mar_closesql(MARPTR *marptr);
 
 #endif
diff --git a/lib/unisql.h b/lib/unisql.h
deleted file mode 100644 (file)
index 0a88104..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// vim: smarttab tabstop=8 shiftwidth=2 expandtab
-/********************************************************/
-/*                                                     */
-/*     Base level subroutine declaration               */
-/*     to handle MYSQL/MARIADB SQL request.            */
-/*                                                     */
-/********************************************************/
-#ifndef        UNISQL
-#define UNISQL
-
-//reference to a SQL pointer reference
-typedef void SQLPTR;
-
-//Opening a postscript database
-extern SQLPTR *sql_opensql(const char *host,const char *sqlport,const char *dbname);
-
-//closing a postscript database
-extern SQLPTR *sql_closesql(SQLPTR *sqlptr);
-
-#endif