Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
fail в коде переводить не стоило, это метка.

signedHashes.data = 0 не считаем).
git clone https://gist.github.com/9168347.git
cd 9168347
git checkout -b rebase
git rebase -i 9d4ebb
pick 4e8b496 Some commit
#pick 142d7bf Removed goto
pick f2871e8 Returned goto
Successfully rebased and updated refs/heads/rebase.
@@ -1,6 +1,8 @@
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0)
goto fail;
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0)
+ goto fail;
if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
goto fail;
+
@@ -5,3 +5,4 @@
if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0)
goto fail;
+
исходника?goto облом;goto fail;. При использовании автоформатирования такая проблема сразу себя проявляет визуально.([0..5]) # [0;5]
([0...5]) # [0;4]
a b c d # a(b(c(d)));
a b, c d # a(b, c(d));
a b; c d # a(b); c(d);
if 1
if 0
a()
else
b()
c() # b(); c();
if 1
if 0
a()
else
b()
c() # c();
foreach el $b {if {[info exists arr($el)]} {lappend res $el}}foreach el $b { if(info exists are($el)) {lappend res $el}}Tcl (originally from Tool Command Language, but conventionally spelled «Tcl» rather than «TCL»; pronounced as «tickle» or «tee-see-ell»[3])
Неправда, если Вы так говорите, значит, Вы мало писали на тикле.
if означают лишь то, что в теле этого параметра не надо выполнять подстановки в процессе вызова этой команды. Если подстановки выполнять не нужно, то фигурные скобки не нужны.Скобки в первом параметре команды if означают лишь то, что в теле этого параметра не надо выполнять подстановки в процессе вызова этой команды. Если подстановки выполнять не нужно, то фигурные скобки не нужны.Вы сломали мой парсер логических выражений.
if (({int x = 2; (4 == x*x);})) {
// true
}
while(SOME_HARDWARE_FLAG == 0);
while(SOME_HARDWARE_FLAG == 0)
;
while(SOME_HARDWARE_FLAG == 0);
some_operator();
while(SOME_HARDWARE_FLAG == 0) {}
Let's say we have an embedded system which has an average loop time of 1ms, and needs only to check a certain input once per second. It seems a waste to continue looping the program, especially when we don't need to do anything most of the time. In this situation, the program will loop 1000 times before it needs to read the input, and the other 999 loops of the program will just be a countdown to the next read. In this case, it is sorely inefficient to have the processor chugging away at 100% capacity all the time. We will now implement an expanded superloop to build in a delay:
goto fail на throw exception(). Что-то изменилось?Вот, например, официальная документация, error handling in COM:


if ((err = SSLAllocBuffer(&key, keyDataLen)))
return err;
assert(ctx->sslTslCalls != NULL);
if ((err = ctx->sslTslCalls->generateKeyMaterial(key, ctx)) != 0)
goto fail;
assert(ctx->sslTslCalls != NULL); это такая же ошибка, или просто ошибка в редактировании?return. Явно просто лишний tab поставили…во всех версиях OS X до 10.9.1 включительноПоправлю, что появилось только в OS X 10.9 и присутствует в 10.9.1:
Update: it looks like the bug was introduced in 10.9 for OS X
Tip of the day: Detecting unreachable code is easy with AppCode. Can your IDE do the same?
Адам Лэнгли объяснил причины бага в iOS: лишняя строчка кода поломала всю безопасность