mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 04:10:18 +02:00
Fix white space.
This commit is contained in:
+9
-9
@@ -1812,16 +1812,16 @@ void floatToBuffer(OutBuffer *buf, Type *type, real_t value)
|
|||||||
buf->writestring(buffer);
|
buf->writestring(buffer);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef __HAIKU__ // broken printf workaround
|
#ifdef __HAIKU__ // broken printf workaround
|
||||||
char buffer2[25];
|
char buffer2[25];
|
||||||
char *ptr = (char *)&value;
|
char *ptr = (char *)&value;
|
||||||
for(int i = 0; i < sizeof(value); i++)
|
for(int i = 0; i < sizeof(value); i++)
|
||||||
snprintf(buffer2, sizeof(char), "%x", ptr[i]);
|
snprintf(buffer2, sizeof(char), "%x", ptr[i]);
|
||||||
|
|
||||||
buf->writestring(buffer2);
|
buf->writestring(buffer2);
|
||||||
#else
|
#else
|
||||||
buf->printf("%La", value); // ensure exact duplication
|
buf->printf("%La", value); // ensure exact duplication
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type)
|
if (type)
|
||||||
|
|||||||
+1
-1
@@ -689,7 +689,7 @@ Ldone:
|
|||||||
Module::dprogress++;
|
Module::dprogress++;
|
||||||
//LDC relies on semanticRun variable not being reset here
|
//LDC relies on semanticRun variable not being reset here
|
||||||
if(semanticRun < PASSsemanticdone)
|
if(semanticRun < PASSsemanticdone)
|
||||||
semanticRun = PASSsemanticdone;
|
semanticRun = PASSsemanticdone;
|
||||||
|
|
||||||
/* Save scope for possible later use (if we need the
|
/* Save scope for possible later use (if we need the
|
||||||
* function internals)
|
* function internals)
|
||||||
|
|||||||
+3
-3
@@ -2073,10 +2073,10 @@ Expression *DeclarationExp::interpret(InterState *istate, CtfeGoal goal)
|
|||||||
else if (v->isStatic() && !v->init)
|
else if (v->isStatic() && !v->init)
|
||||||
e = NULL; // Just ignore static variables which aren't read or written yet
|
e = NULL; // Just ignore static variables which aren't read or written yet
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
error("Static variable %s cannot be modified at compile time", v->toChars());
|
error("Static variable %s cannot be modified at compile time", v->toChars());
|
||||||
e = EXP_CANT_INTERPRET;
|
e = EXP_CANT_INTERPRET;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (declaration->isAttribDeclaration() ||
|
else if (declaration->isAttribDeclaration() ||
|
||||||
declaration->isTemplateMixin() ||
|
declaration->isTemplateMixin() ||
|
||||||
|
|||||||
+5
-5
@@ -46,11 +46,11 @@ int os_critsecsize()
|
|||||||
// TODO Check size
|
// TODO Check size
|
||||||
return 68;
|
return 68;
|
||||||
#else
|
#else
|
||||||
if (global.params.os == OSWindows)
|
if (global.params.os == OSWindows)
|
||||||
return 68;
|
return 68;
|
||||||
else if (global.params.os == OSFreeBSD)
|
else if (global.params.os == OSFreeBSD)
|
||||||
return sizeof(size_t);
|
return sizeof(size_t);
|
||||||
else
|
else
|
||||||
return sizeof(pthread_mutex_t);
|
return sizeof(pthread_mutex_t);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user