Explorar o código

Change all #define __PROLO_xxx__ to THE_PULSAR_xxx

Godzil %!s(int64=2) %!d(string=hai) anos
pai
achega
28d95718fe

+ 1 - 1
doc/ChangeLog

@@ -1102,7 +1102,7 @@
 	LOTS OF KILOBUG BUGS CORRECTED
 		ajout temps/tours temps bonus dans conf_t et player_t
 		MAJ init -> temps
-		#ifndef __PROLO_CONF_H__ => conf_t (t'ABUSE KILO)
+		#ifndef THE_PULSAR_CONF_H => conf_t (t'ABUSE KILO)
 		gestion du timer dans game.c
 
 	* src/server/plugins.c:

+ 2 - 2
gclient/include/client.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_CLIENT_H__
-#define __PROLO_CLIENT_H__
+#ifndef THE_PULSAR_CLIENT_H
+#define THE_PULSAR_CLIENT_H
 
 #define MINI_MAP_SIZE 200
 #define MAP_SIZE 500

+ 2 - 2
gclient/include/client_gtk.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_CLIENT_GTK_H__
-#define __PROLO_CLIENT_GTK_H__
+#ifndef THE_PULSAR_CLIENT_GTK_H
+#define THE_PULSAR_CLIENT_GTK_H
 
 /*
 ** General GTK wrappers

+ 2 - 2
include/client/cpp/prolo.hh

@@ -1,7 +1,7 @@
 
 
-#ifndef __PROLO_BITMAP_H__
-#define __PROLO_BITMAP_H__
+#ifndef THE_PULSAR_BITMAP_H
+#define THE_PULSAR_BITMAP_H
 
 #include "interface.hh"
 

+ 2 - 2
include/general.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_GENERAL_H__
-#define __PROLO_GENERAL_H__
+#ifndef THE_PULSAR_GENERAL_H
+#define THE_PULSAR_GENERAL_H
 
 #define False (0)
 #define True (!False)

+ 2 - 2
include/pulsarnet.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_NET_LIB_H__
-#define __PROLO_NET_LIB_H__
+#ifndef THE_PULSAR_NET_LIB_H
+#define THE_PULSAR_NET_LIB_H
 
 #include <stdio.h>
 

+ 2 - 2
meta-client/include/mclient.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_MCLIENT_H__
-#define __PROLO_MCLIENT_H__
+#ifndef THE_PULSAR_MCLIENT_H
+#define THE_PULSAR_MCLIENT_H
 
 typedef struct _conf_t conf_t;
 

+ 2 - 2
meta-client/include/mysql.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_MCLIENT_MYSQL_H__
-#define __PROLO_MCLIENT_MYSQL_H__
+#ifndef THE_PULSAR_MCLIENT_MYSQL_H
+#define THE_PULSAR_MCLIENT_MYSQL_H
 
 #define MYSQL_BUFFER_SIZE 1000
 

+ 2 - 2
pulsarnet/net_private.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_NET_PRIVATE_H__
-#define __PROLO_NET_PRIVATE_H__
+#ifndef THE_PULSAR_NET_PRIVATE_H
+#define THE_PULSAR_NET_PRIVATE_H
 
 /*#define __DEBUG_NETLIB__*/
 

+ 2 - 2
server/include/action.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_ACTION_H__
-#define __PROLO_ACTION_H__
+#ifndef THE_PULSAR_ACTION_H
+#define THE_PULSAR_ACTION_H
 
 /* gestion des actions */
 typedef enum _r4d2_action_type_e_

+ 2 - 2
server/include/client.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_CLIENT_H__
-#define __PROLO_CLIENT_H__
+#ifndef THE_PULSAR_CLIENT_H
+#define THE_PULSAR_CLIENT_H
 
 void set_default_action_r4d2(int r4d2_id);
 

+ 2 - 2
server/include/conf.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_CONF_H__
-#define __PROLO_CONF_H__
+#ifndef THE_PULSAR_CONF_H
+#define THE_PULSAR_CONF_H
 
 #include <sys/types.h>
 

+ 2 - 2
server/include/erreur.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_ERREUR_H__
-#define __PROLO_ERREUR_H__
+#ifndef THE_PULSAR_ERREUR_H
+#define THE_PULSAR_ERREUR_H
 
 #define    NONE            0
 #define NOT_YOURS        1

+ 2 - 2
server/include/exec.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_EXEC_H__
-#define __PROLO_EXEC_H__
+#ifndef THE_PULSAR_EXEC_H
+#define THE_PULSAR_EXEC_H
 
 #define    SIGNE(_x)    (((_x) > 0) ? (1) : (((_x) < 0) ? (-1) : (0)))
 #define    SQR(_x)        ((_x) * (_x))

+ 2 - 2
server/include/game.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_GAME_H__
-#define __PROLO_GAME_H__
+#ifndef THE_PULSAR_GAME_H
+#define THE_PULSAR_GAME_H
 
 #include "conf.h"
 #include "player.h"

+ 2 - 2
server/include/ipc.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_IPC_H__
-#define __PROLO_IPC_H__
+#ifndef THE_PULSAR_IPC_H
+#define THE_PULSAR_IPC_H
 
 int get_shm_conf_id();
 

+ 2 - 2
server/include/message.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_MESSAGE_H__
-#define __PROLO_MESSAGE_H__
+#ifndef THE_PULSAR_MESSAGE_H
+#define THE_PULSAR_MESSAGE_H
 
 void launch_messager();
 

+ 2 - 2
server/include/network.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_SERVER_NETWORK_H__
-#define __PROLO_SERVER_NETWORK_H__
+#ifndef THE_PULSAR_SERVER_NETWORK_H
+#define THE_PULSAR_SERVER_NETWORK_H
 
 #include <stdio.h>
 #include <general.h>

+ 2 - 2
server/include/objects.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_PRIVATE_H__
-#define __PROLO_PRIVATE_H__
+#ifndef THE_PULSAR_PRIVATE_H
+#define THE_PULSAR_PRIVATE_H
 
 #include "action.h"
 

+ 2 - 2
server/include/parser.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_PARSER_H__
-#define __PROLO_PARSER_H__
+#ifndef THE_PULSAR_PARSER_H
+#define THE_PULSAR_PARSER_H
 
 #ifndef G_TOKEN_SEMICOLON
 #define G_TOKEN_SEMICOLON ';'

+ 2 - 2
server/include/player.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_PLUGINS_H__
-#define __PROLO_PLUGINS_H__
+#ifndef THE_PULSAR_PLUGINS_H
+#define THE_PULSAR_PLUGINS_H
 
 #include "conf.h"
 

+ 2 - 2
server/include/public.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_PUBLIC_H__
-#define __PROLO_PUBLIC_H__
+#ifndef THE_PULSAR_PUBLIC_H
+#define THE_PULSAR_PUBLIC_H
 
 /*
 ** General functions

+ 2 - 2
server/include/server.h

@@ -1,5 +1,5 @@
-#ifndef __PROLO_SERVER_H__
-#define __PROLO_SERVER_H__
+#ifndef THE_PULSAR_SERVER_H
+#define THE_PULSAR_SERVER_H
 
 #include <player.h>
 #include <conf.h>

+ 1 - 2
server/main.c

@@ -25,7 +25,6 @@
 #include <ipc.h>
 #include <map.h>
 
-
 #ifdef ENABLE_GPC
 void init_Gpc(int argc, char **argv, char **arge);
 void init_Init();
@@ -54,7 +53,7 @@ static void cmdline_add_player(const char *str, conf_t *conf)
 
 static void help(char **argv)
 {
-    printf("Serveur Prologin version %d.%d.%d\n", V_MAJOR, V_MINOR, V_MICRO);
+    printf("Serveur Prologin version %d.%d.%d%s\n", V_MAJOR, V_MINOR, V_MICRO, V_SHA);
     printf("\n");
     printf("Syntaxe: %s [options] [-m carte] nom:fichier ...\n", argv[0]);
     printf("\nOptions:\n");