static OldList defines { };
static OldList imports { };
static NameSpace globalData;
-static OldList excludedSymbols { offset = (uint)&((Symbol)0).left };
+static OldList excludedSymbols { offset = (uint)(uintptr)&((Symbol)0).left };
static bool readOnly;
define app = (GuiApplication)__thisModule.application;
private:
-static void Dummy()
+static __attribute__((unused)) void Dummy()
{
-int a;
-a.OnGetString(null, null, null);
+ int a;
+ a.OnGetString(null, null, null);
}
static bool editing = true;
strcat(string, "</b>");
}
}
- else
- {
- printf("");
- }
}
if(printFunction)
strcat(string, ")");
break;
default:
- printf("");
+ break;
}
if(type.name && printName && type.kind != functionType && (type.kind != pointerType || type.type.kind != functionType))
{
for(funcType = type; funcType && (funcType.kind == pointerType || funcType.kind == arrayType); funcType = funcType.type);
if(funcType && funcType.kind == functionType && type != funcType)
{
- char typeString[1024];
Type param;
DocPrintType(funcType.returnType, string, false, fullName);
void Generate(File f)
{
- char string[1024];
char nsName[1024], temp[1024];
NameSpace * ns;
BTNamedLink link;
- int64 tag;
nsName[0] = 0;
ns = nameSpace;
if(nsName[0])
{
f.Printf("<FONT FACE=\"Arial\" SIZE=\"6\">%s</FONT><br><br>\n", nsName );
- tag = (int64)nameSpace;
f.Printf($"Module: <a href=\"api://%p\" style=\"text-decoration: none;\">%s</a><br>\n", (module && module.name) ? module : null, (!module || !module.name || !strcmp(nsName, "ecere::com")) ? "ecereCOM" : module.name);
}
else
- {
- tag = (int64)(!module || !module.name || !strcmp(nsName, "ecere::com") ? null : module);
f.Printf($"<FONT FACE=\"Arial\" SIZE=\"6\">Module %s</FONT><br>\n", (!module || !module.name || !strcmp(nsName, "ecere::com")) ? "ecereCOM" : module.name);
- }
nsName[0] = 0;
ns = nameSpace->parent;
char string[1024];
Method method;
Property prop;
- DataMember member;
char nsName[1024], temp[1024];
NameSpace * ns = cl.nameSpace;
Module module = cl.module;
if((prop.memberAccess == publicAccess || (prop.memberAccess == privateAccess && showPrivate)) && prop.name)
{
char * desc = ReadDoc(module, classDoc, cl, conversion, prop);
- DataRow mRow;
const char * name;
Type type = ProcessTypeString(prop.name, false);
name = RSearchString(prop.name, "::", strlen(prop.name), true, false);
DataRow functionsRow = null, definesRow = null;
APIPage page;
- char fileName[MAX_LOCATION];
-
strcpy(nsName, parentName ? parentName : "");
if(nameSpace->name)
{
page = parentRow.GetData(null);
}
+ for(ns = (NameSpace *)mainNameSpace.nameSpaces.first; ns; ns = (NameSpace *)((BTNode)ns).next)
{
- bool first = true;
-
- for(ns = (NameSpace *)mainNameSpace.nameSpaces.first; ns; ns = (NameSpace *)((BTNode)ns).next)
- {
- NameSpace * comNS = (comNameSpace != null) ? (NameSpace *)comNameSpace.nameSpaces.FindString(ns->name) : null;
- AddNameSpace(row, module, ns, comNS, nsName, showPrivate);
- }
- if(comNameSpace != null)
+ NameSpace * comNS = (comNameSpace != null) ? (NameSpace *)comNameSpace.nameSpaces.FindString(ns->name) : null;
+ AddNameSpace(row, module, ns, comNS, nsName, showPrivate);
+ }
+ if(comNameSpace != null)
+ {
+ for(ns = (NameSpace *)comNameSpace.nameSpaces.first; ns; ns = (NameSpace *)((BTNode)ns).next)
{
- for(ns = (NameSpace *)comNameSpace.nameSpaces.first; ns; ns = (NameSpace *)((BTNode)ns).next)
+ if(!mainNameSpace.nameSpaces.FindString(ns->name))
{
- if(!mainNameSpace.nameSpaces.FindString(ns->name))
- {
- AddNameSpace(row, module, ns, null, nsName, showPrivate);
- }
+ AddNameSpace(row, module, ns, null, nsName, showPrivate);
}
}
}
+
if(mainNameSpace.classes.first || (comNameSpace && comNameSpace.classes.first))
{
for(nameSpace = mainNameSpace ; nameSpace; nameSpace = (nameSpace == mainNameSpace) ? comNameSpace : null)
static void AddClass(DataRow parentRow, Module module, Class cl, char * nsName, bool showPrivate)
{
- char fileName[MAX_LOCATION];
- char string[1024];
Method method;
Property prop;
- DataMember member;
- Type param;
DataRow row;
DataRow methodsRow = null, virtualsRow = null, eventsRow = null;
DataRow propertiesRow = null, membersRow = null, conversionsRow = null, enumRow = null;
default:
{
char hex[20];
- sprintf(hex, "%p", row.tag);
+ sprintf(hex, "%p", (void *)(uintptr)row.tag);
view.GoToAnchor(hex);
}
}
char archiveFile[MAX_LOCATION];
char fileName[MAX_FILENAME];
char directory[MAX_LOCATION];
- char * location;
+ const char * location;
Archive archive = null;
if(SplitArchivePath(editString, archiveFile, &location))
{
if(block.type == BR && (!block.prev || !block.next || block.next.type != TEXT))
{
Block newBlock { type = TEXT, parent = block.parent, font = block.parent.font };
- int tw = 0, th = 0;
+ int th = 0;
display.FontExtent(block.font.font, " ", 1, null, &th);
if(!block.prev)
{
}
{
- int tw = 0, th = 0;
+ int th = 0;
int textPos = 0;
int sx = textBlock.startX, sy = textBlock.startY;
char * text = textBlock.text;
case Key { down, shift = true }:
case down:
{
- int tw = 0, th = 0;
+ int th = 0;
int textPos = 0;
int sx = textBlock.startX, sy = textBlock.startY;
char * text = textBlock.text;
break;
case enter:
{
- int tw = 0, th = 0;
+ int th = 0;
Block block;
Block newBlock;
int startY, startX;
Block block { type = BR, parent = parent, font = font };
Block newBlock { type = TEXT, parent = parent, font = font };
int startY = textBlock.startY, startX = textBlock.startX;
- int tw = 0, th = 0;
+ int th = 0;
display.FontExtent(textBlock.font.font, " ", 1, null, &th);
textBlock.parent.subBlocks.Insert(textBlock, block);
while(textPos < textBlock.textLen)
{
- int startPos = textPos;
int width = 0;
int x = 0;
bool lineComplete = false;
PathCat(programFilesDir, "ECERE SDK\\doc");
settings.docDir = programFilesDir;
}
- else if(homeDrive && homeDrive[0])
+ else if(homeDrive[0])
{
PathCat(homeDrive, "ECERE SDK\\doc");
settings.docDir = homeDrive;
}
- else if(winDir && winDir[0])
+ else if(winDir[0])
{
PathCat(winDir, "..\\ECERE SDK\\doc");
settings.docDir = winDir;