2017-03-24 22:12:08 +00:00
|
|
|
/* Filename: stable.c
|
|
|
|
* Compiler: msvc (Visual Studio 2015)
|
|
|
|
* Store and provide functions for the symbol table database
|
|
|
|
* CST8152, Assignment #3
|
2017-05-10 17:46:04 +00:00
|
|
|
* Professor: S^R
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.1
|
|
|
|
* Date: 24 March 2017
|
|
|
|
*/
|
|
|
|
#include "stable.h"
|
|
|
|
|
2017-04-13 03:41:34 +00:00
|
|
|
#define PLSBD_SZ 128
|
|
|
|
#define PLSBD_INC 64
|
2017-04-10 15:33:16 +00:00
|
|
|
|
|
|
|
#define DEBUG
|
2017-05-10 17:46:04 +00:00
|
|
|
#undef DEBUG
|
2017-04-10 15:33:16 +00:00
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
/* Forward function declarations */
|
2017-03-24 22:12:08 +00:00
|
|
|
static void st_setsize(void);
|
|
|
|
static void st_incoffset(void);
|
|
|
|
extern STD sym_table;
|
|
|
|
|
|
|
|
/* Create a symbol table
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: malloc, b_create, free
|
2017-04-13 01:35:37 +00:00
|
|
|
* Parameters:
|
|
|
|
int - size of the symbol table
|
|
|
|
* Return value:
|
|
|
|
STD - The symbol table
|
2017-03-24 22:12:08 +00:00
|
|
|
* Algorithm:
|
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
STD st_create(int st_size) {
|
|
|
|
STD new_stable;
|
2017-03-28 16:01:07 +00:00
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
new_stable.plsBD = NULL;
|
2017-04-04 22:39:33 +00:00
|
|
|
new_stable.pstvr = (STVR*)malloc((size_t)st_size * sizeof(STVR));
|
2017-04-13 01:35:37 +00:00
|
|
|
if (st_size <= 0 || (new_stable.pstvr == NULL)) {
|
|
|
|
new_stable.st_size = 0;
|
|
|
|
}
|
2017-04-10 15:33:16 +00:00
|
|
|
new_stable.plsBD = b_create(PLSBD_SZ, PLSBD_INC, 'a');
|
2017-04-13 01:35:37 +00:00
|
|
|
if (new_stable.plsBD == NULL) {
|
|
|
|
free(new_stable.plsBD);
|
|
|
|
new_stable.st_size = 0;
|
|
|
|
}
|
2017-03-24 22:12:08 +00:00
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
new_stable.st_size = st_size;
|
|
|
|
new_stable.st_offset = 0;
|
2017-03-24 22:12:08 +00:00
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
return new_stable;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Install a new entry in the symbol table
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: st_lookup, b_setmark, b_size, b_addc, b_rflag, st_incoffset
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
char - The lexeme to be stored
|
|
|
|
char - the type of the lexeme
|
|
|
|
int - the line in the source file where the lexeme was found
|
2017-03-24 22:12:08 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
int - the element offset of where the symbol table is pointing to
|
|
|
|
-1 if an internal error occurs
|
2017-03-24 22:12:08 +00:00
|
|
|
* Algorithm:
|
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_install(STD s_table, char *lexeme, char type, int line) {
|
2017-04-13 03:41:34 +00:00
|
|
|
int offset = -1, i, j, lex_len, lex_offset = 0, flag = 0;
|
2017-04-13 01:35:37 +00:00
|
|
|
|
|
|
|
/* Cannot add new entry, table full */
|
|
|
|
if (s_table.st_offset >= s_table.st_size)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
/* Look for an existing entry in the symbol table */
|
|
|
|
if (s_table.st_offset > 0)
|
|
|
|
offset = st_lookup(s_table, lexeme);
|
|
|
|
|
|
|
|
if (offset > -1)
|
|
|
|
return offset;
|
|
|
|
|
|
|
|
/* Add lexeme to the symbol table's lexeme buffer */
|
|
|
|
lex_len = strlen(lexeme);
|
|
|
|
for (i = 0; i <= lex_len; ++i) {
|
|
|
|
if (!b_addc(s_table.plsBD, lexeme[i]))
|
|
|
|
return -1;
|
2017-04-13 03:41:34 +00:00
|
|
|
if (b_rflag(s_table.plsBD) == SET_R_FLAG) { /* Trigger reassignment loop once lexeme is stored */
|
2017-04-13 01:35:37 +00:00
|
|
|
flag = 1;
|
|
|
|
}
|
|
|
|
}
|
2017-04-13 03:41:34 +00:00
|
|
|
/* If reallocation happened...*/
|
2017-04-13 01:35:37 +00:00
|
|
|
if (flag == 1) {
|
2017-04-13 03:41:34 +00:00
|
|
|
for (j = 0; j < s_table.st_offset; ++j) {
|
|
|
|
s_table.pstvr[j].plex = b_setmark(s_table.plsBD, (short) s_table.pstvr[j].i_value.str_offset);
|
2017-04-13 01:35:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Set proper pointer values on symbol table */
|
|
|
|
/* Get buffer offset location of the lexeme stored */
|
|
|
|
lex_offset = b_size(s_table.plsBD) - (strlen(lexeme) + 1);
|
|
|
|
|
|
|
|
s_table.pstvr[s_table.st_offset].plex = b_setmark(s_table.plsBD, (short) lex_offset);
|
|
|
|
s_table.pstvr[s_table.st_offset].o_line = line;
|
|
|
|
s_table.pstvr[s_table.st_offset].i_value.str_offset = lex_offset;
|
|
|
|
|
|
|
|
/* Set the default mask before setting the rest of the masks */
|
|
|
|
s_table.pstvr[s_table.st_offset].status_field = DFT_MASK;
|
|
|
|
|
|
|
|
switch (type) {
|
|
|
|
case 'I': /* Integer type */
|
|
|
|
s_table.pstvr[s_table.st_offset].status_field |= INT_MASK;
|
|
|
|
s_table.pstvr[s_table.st_offset].i_value.int_val = 0;
|
|
|
|
|
|
|
|
break;
|
|
|
|
case 'F': /* Floating point type */
|
|
|
|
s_table.pstvr[s_table.st_offset].status_field |= FLT_MASK;
|
|
|
|
s_table.pstvr[s_table.st_offset].i_value.fpl_val = 0.0f;
|
|
|
|
break;
|
|
|
|
case 'S': /* String type */
|
|
|
|
s_table.pstvr[s_table.st_offset].status_field |= STR_MASK;
|
|
|
|
s_table.pstvr[s_table.st_offset].i_value.int_val = -1;
|
|
|
|
s_table.pstvr[s_table.st_offset].i_value.fpl_val = -1.0f;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -1; /* Not supposed to fall into here */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Increment the symbol table offset */
|
|
|
|
st_incoffset();
|
|
|
|
return s_table.st_offset;
|
2017-03-24 22:12:08 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
/* Look up the lexeme string in the symbol table's buffer
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes
|
|
|
|
* Version: 0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: b_setmark, strcmp, strlen
|
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
char - The lexeme to be searched
|
2017-04-04 21:35:52 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
int - the element offset index in the symbol table
|
|
|
|
-1 if no element was found
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_lookup(STD s_table, char *lexeme) {
|
|
|
|
int i; /* idx: index location for symbol table, i: increment counter*/
|
2017-04-10 15:33:16 +00:00
|
|
|
#ifdef DEBUG
|
2017-04-13 01:35:37 +00:00
|
|
|
printf("Looking up %s...", lexeme);
|
2017-04-10 15:33:16 +00:00
|
|
|
#endif
|
2017-04-13 01:35:37 +00:00
|
|
|
for (i = s_table.st_offset - 1; i >= 0; --i) {
|
|
|
|
if (strcmp(lexeme, s_table.pstvr[i].plex) == 0) {
|
2017-04-13 03:41:34 +00:00
|
|
|
#ifdef DEBUG
|
2017-04-13 01:35:37 +00:00
|
|
|
printf("YES\n");
|
2017-04-13 03:41:34 +00:00
|
|
|
#endif
|
2017-04-13 01:35:37 +00:00
|
|
|
return i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DEBUG
|
|
|
|
printf("NO\n");
|
|
|
|
#endif
|
|
|
|
return -1; /* Found nothing */
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
2017-04-04 21:35:52 +00:00
|
|
|
/* Change the data type indicator of the variable entry located in vid_offset.
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes
|
|
|
|
* Version: 0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: N/A
|
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
int - the offset location of the VID
|
|
|
|
char - the new type of the VID
|
2017-04-04 21:35:52 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
1 if change successful, -1 if no change was made or internal error
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-04 22:39:33 +00:00
|
|
|
int st_change_type(STD s_table, int vid_offset, char v_type) {
|
2017-03-24 22:12:08 +00:00
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
/* Do nothing if update flag has already been set */
|
|
|
|
if ((s_table.pstvr[vid_offset].status_field & U_MASK)) return -1;
|
|
|
|
|
|
|
|
/* Reset to new type with default mask and update flag
|
|
|
|
Note: Can separate the statements to set the update flag at the
|
|
|
|
end, but this resets AND updates at once
|
|
|
|
*/
|
|
|
|
/*sym_table.pstvr[vid_offset].status_field = sym_table.pstvr[vid_offset].status_field & DFT_U_MASK;*/
|
|
|
|
s_table.pstvr[vid_offset].status_field &= DFT_U_MASK;
|
|
|
|
|
|
|
|
switch (v_type) {
|
|
|
|
case 'I': /* Integer type */
|
2017-04-13 03:41:34 +00:00
|
|
|
s_table.pstvr[vid_offset].status_field |= INT_MASK;
|
2017-04-13 01:35:37 +00:00
|
|
|
break;
|
|
|
|
case 'F': /* Floating point type */
|
2017-04-13 03:41:34 +00:00
|
|
|
s_table.pstvr[vid_offset].status_field |= FLT_MASK;
|
2017-04-13 01:35:37 +00:00
|
|
|
break;
|
|
|
|
case 'S': /* String type, do nothing as it cannot be changed */
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
return -1; /* Not supposed to fall into here */
|
|
|
|
}
|
|
|
|
return 1;
|
2017-03-25 01:04:45 +00:00
|
|
|
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Change the i_value of the variable located by vid_offset to new Value
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: N/A
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
int - the offset location of the VID
|
|
|
|
Value - the new value of the VID
|
2017-04-04 21:35:52 +00:00
|
|
|
* Return value: the offset location of the VID
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_change_value(STD s_table, int vid_offset, Value value) {
|
|
|
|
s_table.pstvr[vid_offset].i_value = value;
|
|
|
|
return vid_offset;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Get the type of the variable specified by vid_offset
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: N/A
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
int - the offset of the VID in the table
|
2017-03-24 22:12:08 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
char - the type of the VID ('I','F', or 'S')
|
|
|
|
-1 if there is an invalid value set
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
char st_get_type(STD s_table, int vid_offset) {
|
|
|
|
unsigned short mask;
|
|
|
|
mask = s_table.pstvr[vid_offset].status_field & CHK_MASK;
|
|
|
|
switch (mask) {
|
|
|
|
case INT_MASK:
|
|
|
|
return 'I';
|
|
|
|
case FLT_MASK:
|
|
|
|
return 'F';
|
|
|
|
case STR_MASK:
|
|
|
|
return 'S';
|
|
|
|
default:
|
|
|
|
return -1; /* Not supposed to fall into here */
|
|
|
|
}
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Return the i_value of the variable specified by vid_offset
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
|
|
|
* Called functions:
|
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
|
|
|
int - the offset of the VID in the table
|
|
|
|
* Return value:
|
|
|
|
Value - the value of the VID
|
|
|
|
Incorrect parameters will cause undefined behaviour
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
Value st_get_value(STD s_table, int vid_offset) {
|
|
|
|
return s_table.pstvr[vid_offset].i_value;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Free memory used by the symbol table
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: free, b_free
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
void st_destroy(STD s_table) {
|
|
|
|
if (s_table.pstvr != NULL) {
|
|
|
|
free(s_table.pstvr);
|
|
|
|
s_table.pstvr = NULL;
|
|
|
|
}
|
|
|
|
b_free(s_table.plsBD);
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Print the contents of the symbol table to standard output
|
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: printf
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
2017-03-24 22:12:08 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
int - the number of items printed to stdout
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_print(STD s_table) {
|
|
|
|
int i;
|
|
|
|
|
|
|
|
if (s_table.st_size <= 0) return -1;
|
|
|
|
|
|
|
|
printf("Symbol Table\n____________\nLine Number\tVariable Identifier\n");
|
2017-04-13 03:41:34 +00:00
|
|
|
for (i = 0; i <= s_table.st_offset - 1 ; ++i)
|
2017-04-13 01:35:37 +00:00
|
|
|
printf("%2d\t\t%s\n", s_table.pstvr[i].o_line, s_table.pstvr[i].plex);
|
|
|
|
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Store the symbol table to a file named $stable.ste.
|
2017-03-25 01:04:45 +00:00
|
|
|
It overwrites any existing file named $stable.ste.
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: fopen, fprintf, st_get_type, fclose, printf
|
2017-03-24 22:12:08 +00:00
|
|
|
* Parameters:
|
2017-04-13 01:35:37 +00:00
|
|
|
STD - The symbol table
|
2017-03-24 22:12:08 +00:00
|
|
|
* Return value:
|
2017-04-13 01:35:37 +00:00
|
|
|
int - the number of items stored
|
|
|
|
-1 if the file stream cannot be opened
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_store(STD s_table) {
|
|
|
|
FILE *out; /* The target file*/
|
|
|
|
int i;
|
2017-03-24 22:12:08 +00:00
|
|
|
|
2017-04-04 22:51:09 +00:00
|
|
|
/* Windows does not like fopen, and fopen_s is Windows-only. This will ensure the
|
2017-04-04 23:26:00 +00:00
|
|
|
* use of the proper function call if PLATYPUS is being built on a non-windows system.
|
2017-04-13 01:35:37 +00:00
|
|
|
* Best approach is to add _CRT_SECURE_NO_WARNINGS to the preprocessor definitions, but
|
|
|
|
* this works, too.
|
2017-04-04 22:51:09 +00:00
|
|
|
*/
|
|
|
|
#ifdef _WIN32
|
2017-04-13 01:35:37 +00:00
|
|
|
if (fopen_s(&out, ST_FILE_NAME, "w+") != 0 || out == NULL)
|
2017-04-04 22:51:09 +00:00
|
|
|
#else
|
2017-04-13 01:35:37 +00:00
|
|
|
if ((out = fopen(ST_FILE_NAME, "w+")) == NULL)
|
2017-04-04 22:51:09 +00:00
|
|
|
#endif
|
|
|
|
return -1; /* Can't open file, stop. */
|
|
|
|
|
2017-04-13 01:35:37 +00:00
|
|
|
fprintf(out, "%d", s_table.st_size);
|
|
|
|
|
2017-04-13 03:41:34 +00:00
|
|
|
for (i = 0; i < s_table.st_offset; ++i) {
|
2017-04-13 01:35:37 +00:00
|
|
|
fprintf(out, " %4X %d %s %d",
|
|
|
|
s_table.pstvr[i].status_field, /* Status flag */
|
|
|
|
(int)strlen(s_table.pstvr[i].plex), /* Length of lexeme */
|
|
|
|
s_table.pstvr[i].plex, /* The lexeme itself */
|
|
|
|
s_table.pstvr[i].o_line); /* Line number */
|
|
|
|
|
|
|
|
/* Initial value */
|
|
|
|
char type = st_get_type(s_table, i);
|
|
|
|
switch (type) {
|
|
|
|
case 'I':
|
|
|
|
case 'F':
|
|
|
|
case 'S':
|
|
|
|
fprintf(out, " %c", type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fclose(out);
|
|
|
|
printf("Symbol Table stored\n");
|
|
|
|
return i;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
2017-03-25 01:04:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Internal function to set the table size to 0.
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: N/A
|
|
|
|
* Parameters: N/A
|
|
|
|
* Return value: N/A
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
static void st_setsize(void) {
|
|
|
|
sym_table.st_size = 0;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
2017-04-13 01:35:37 +00:00
|
|
|
|
2017-03-25 01:04:45 +00:00
|
|
|
/* Internal function to increment st_offset by 1.
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
2017-04-04 21:35:52 +00:00
|
|
|
* Called functions: N/A
|
|
|
|
* Parameters: N/A
|
|
|
|
* Return value: N/A
|
2017-03-24 22:12:08 +00:00
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
static void st_incoffset(void) {
|
|
|
|
++sym_table.st_offset;
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|
|
|
|
|
2017-03-25 01:04:45 +00:00
|
|
|
|
2017-04-04 23:34:42 +00:00
|
|
|
/* Sorts the table by variable name in ascending/descending order
|
2017-03-24 22:12:08 +00:00
|
|
|
* Author: Victor Fernandes, 040772243
|
|
|
|
* Version: 0.0.1
|
|
|
|
* Called functions:
|
2017-04-13 01:35:37 +00:00
|
|
|
* Parameters:
|
2017-03-24 22:12:08 +00:00
|
|
|
* Return value:
|
|
|
|
* Algorithm:
|
|
|
|
*/
|
2017-04-13 01:35:37 +00:00
|
|
|
int st_sort(STD s_table, char s_order) {
|
2017-04-13 03:41:34 +00:00
|
|
|
/* Compiler warning about unused parameters,
|
|
|
|
* this is fine for this dummy method
|
2017-04-13 01:35:37 +00:00
|
|
|
*/
|
|
|
|
return 0; /* SYKE! */
|
2017-03-24 22:12:08 +00:00
|
|
|
}
|