Top "Flags" questions

Flags are atomic data structures used to identify state in a program.

Correct way to check for a command line flag in bash

In the middle of a script, I want to check if a given flag was passed on the command line. …

bash command-line flags
about assembly CF(Carry) and OF(Overflow) flag

It's known that CF indicates unsigned carry out and OF indicates signed overflow. So how does an assembly program differentiate …

assembly x86 flags
PowerShell mandatory parameter depends on another parameter

I have a PowerShell function which changes the registry key values. Code: param( [Parameter()] [switch]$CreateNewChild, [Parameter(Mandatory=$true)] [string]$…

powershell parameters dependencies registry flags
overridePendingTransition does not work when FLAG_ACTIVITY_REORDER_TO_FRONT is used

I have two activities in the stack, in order to show them I use FLAG_ACTIVITY_REORDER_TO_FRONT. So …

android android-intent transition flags
Switch on Enum (with Flags attribute) without declaring every possible combination?

how do i switch on an enum which have the flags attribute set (or more precisely is used for bit …

c# enums switch-statement flags bit
How to run code inside a loop only once without external flag?

I want to check a condition inside a loop and execute a block of code when it's first met. After …

c++ loops design-patterns flags control-flow
How to change the eflags register value in GDB?

set $eflags does not change eflags value. The old eflags value remains after eg. =>$set $eflag=0x243 [this is …

debugging assembly gdb flags
Making only one column of a QTreeWidgetItem editable

I have a QTreeWidgetItem with two columns of data, is there any way to make only the second column editable? …

c++ qt flags qtreewidgetitem
GCC: how is march different from mtune?

I tried to scrub the GCC man page for this, but still don't get it, really. What's the difference between …

optimization gcc compiler-construction options flags
Disable keep screen on

I used: getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); How do I resume to Default state (no-keep-on)?

android flags