This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <string> | |
#include <chrono> | |
#include <memory> | |
#include <cstdlib> | |
#include "splay_tree.h" | |
#include "avl_tree.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=gcc | |
CFLAGS=-O3 -Wall -std=c99 | |
LIBS=-s | |
main.exe: main.o | |
${CC} -o main.exe main.o ${LIBS} | |
main.o: main.c | |
${CC} ${CFLAGS} -c -o main.o main.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local addmsg = ChatFrame1.AddMessage | |
local function hook(frame, text, ...) | |
if text:find(gsub(ERR_AUCTION_SOLD_S,'%%s', '')) then -- "A buyer has been found for your auction of %s." | |
local itemname = text:match(gsub(ERR_AUCTION_SOLD_S, '%%s', '(.+)')) | |
text = "|cffef4341"..BUTTON_LAG_AUCTIONHOUSE.."|r - |cffBCD8FF"..ITEM_SOLD_COLON.."|r " | |
local _, solditem = GetItemInfo(itemname) | |
if solditem then | |
text = text..solditem | |
else | |
text = text..itemname |