Clean up the struct syntax and force it to use newdecls.

This commit is contained in:
David Anderson
2014-07-20 12:16:23 -07:00
parent 8aa28e2c8d
commit 686890ec10
5 changed files with 53 additions and 69 deletions
+11 -11
View File
@@ -42,10 +42,10 @@
struct PlVers
{
version,
String:filevers[],
String:date[],
String:time[]
public int version;
public const char[] filevers;
public const char[] date;
public const char[] time;
};
/**
@@ -111,10 +111,10 @@ enum PluginInfo
*/
struct Extension
{
const String:name[], /**< Short name */
const String:file[], /**< Default file name */
bool:autoload, /**< Whether or not to auto-load */
bool:required, /**< Whether or not to require */
public const char[] name; /**< Short name */
public const char[] file; /**< Default file name */
public bool autoload; /**< Whether or not to auto-load */
public bool required; /**< Whether or not to require */
};
/**
@@ -122,9 +122,9 @@ struct Extension
*/
struct SharedPlugin
{
const String:name[], /**< Short name */
const String:file[], /**< File name */
bool:required, /**< Whether or not to require */
public const char[] name; /**< Short name */
public const char[] file; /**< File name */
public bool required; /**< Whether or not to require */
};
public Float:NULL_VECTOR[3]; /**< Pass this into certain functions to act as a C++ NULL */
+5 -5
View File
@@ -40,11 +40,11 @@
*/
struct Plugin
{
const String:name[], /**< Plugin Name */
const String:description[], /**< Plugin Description */
const String:author[], /**< Plugin Author */
const String:version[], /**< Plugin Version */
const String:url[], /**< Plugin URL */
public const char[] name; /**< Plugin Name */
public const char[] description; /**< Plugin Description */
public const char[] author; /**< Plugin Author */
public const char[] version; /**< Plugin Version */
public const char[] url; /**< Plugin URL */
};
#include <core>