This can be achieved by setting a global flag in the handler code and checking for the flag after completion of the critical part.
这可以通过在信号处理程序代码中设置一个全局标志并在完成关键部分的代码之后检查这个标志来实现。
So that is a flag that tells the compiler that I want to use or link into my own program code that someone else wrote that lives somewhere else on the system whose moniker is CS50.
所以那是一个标记,用来告诉编译器我想使用,或连接我自己的程序代码到一个叫做CS50的系统中的程序,可能其他人在那个系统写了这些程序。
If you write code that USES any extra structure members, you'll have to flag it as not portable and, if you're feeling particularly friendly, include an alternate code path that does the same thing.
如果您编写了使用额外结构成员的代码,那么您必须将其标记为不可移植的,并且包含一个完成相同任务的替换代码路径,如果您认为这样做特别友好的话。
However, in other cases the presence of a rule violation in ones code can be a red flag that something can go seriously awry at runtime, even if the compiler lets it slip by.
然而,在其他情况下,代码中违反规则的表现可以是一个红色的标记,即使编译器让其通过,在运行时也会严重地出错。
The code says the American flag is not to be used as decorative clothing.
美国国旗按规定是不能用来设计服装的?
By commenting out the code shown in Listing 2, you can be assured that the validate flag will always be false (you can remove it altogether, as an option).
通过将清单2中的代码注释掉,可以确保验证标志始终为false(也可以将其全部删除)。
A related problem is caused by applications that try to load code at an absolute address by calling mmap with the flag MAP_FIXED.
应用程序试图通过调用带有MAP_ FIXED标志的mmap从绝对地址加载代码时会产生一个相关问题。
Feel free to contribute to the effort by coding what you think is the right solution and I'll add an ExcelCompliant flag to the function to conditionally invoke your code.
你可以自由地编写你认为正确的解答并自由地提交上来,我将添加一个ExcelCompliant标记来让你有条件地调用你的代码。
Unicode character class specifiers, arbitrary code execution inside a pattern, flag toggles, conditional expressions, and many other features were added to the regular expression engine.
Unicode字符集、模式内任意代码操作、flagtoggles、条件表达式以及其他特征都被添加到正则表达式库中。
You need to set a flag to let the code know whether you are reading the title element within the entry.
需要设置一个标志让代码知道读取的是不是条目内的title元素。
Prof and gprof require code to be compiled with either the -p or -gp flag to provide information on the number of times a function is called, who called the function, and the like.
prof和gprof要求用—p或—gp标志编译代码,从而提供调用函数的次数、函数的调用者等信息。
Since this code is attempting to set up a client connection, the flag is set to 0.
由于这段代码试图建立客户机连接,因此这个标记就应该设置为0。
One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
If you find that you're having difficulty writing a test, it's a red flag that the code under test may be complex.
如果您发现自己难以编写某一代码,那么这是一种警示,表示正在测试的代码可能很复杂。
Goldman discovered the alleged breach through monitoring systems that scan employees' email messages for transfers of computer code and flag up any attempts to upload files to external servers.
高盛是通过内部监测系统发现这起违规事件的,该系统会扫描员工的电子邮件以发现是否转移公司的计算机代码,并对任何将文件上传到外部服务器的行为发出警报。
Here, you can set Eclipse to flag potential errors in your code.
在这里,您可以将eclipse设为标记代码中的潜在错误。
Following is a typical code snippet you can use to determine if the operating environment is big - or little-endian; you can set a specific flag for your convenience.
您可以使用下面的典型代码片断来确定操作环境是big-endian还是little - endian;您可以方便地设置具体的标记。
If you cut and pasted these lines of code into an interactive Python shell, you would see that outline and flag are both generator objects if you printed them.
如果您将这些代码行剪切并粘贴到交互式的PythonShell中,如果打印的话,您将看到概要和标志都是生成器对象。
Garibaldi kindly sent me his code, which I used to make this interactive flag calculator based on the six most common star configurations.
加里·巴蒂好心的把他的程序发送给我,并被我用来以最常见的六种星星布局为基础进行国旗模式交互计算。
The LogoutAction does the reverse: it resets the user authentication flag and ends the user session. Listing 10 has the code
LogoutAction 的作用刚好相反:它重置用户身份验证标志并结束用户会话。
Each Member shall require ships that fly its flag to provide financial security to ensure that seafarers are duly repatriated in accordance with the Code.
各成员国应要求悬挂其旗帜的船舶提供财政担保以确保海员根据守则得以合理遣返。
Each Member shall require that seafarers employed on ships that fly its flag are given paid annual leave under appropriate conditions, in accordance with the provisions in the Code.
各成员国应要求悬挂其旗帜的船舶所雇用的海员在适当的条件下根据守则的规定享受带薪年休假。
This flag should not be used by parsing code, as the defaults may have been removed by the user during editing of the object in the designer.
此旗标不应由剖析程序码使用,因为使用者在设计工具中编辑物件时可能已移除预设值。
Flag: (1) the "Masthead" or name of a newspaper. (2) a computer code which indicates that the following characters are a control code and not data.
版头,(2)标记:(1)报纸的版头或名称。(2)电脑的代码;它指出跟着的字符是控制代码而不是数据。
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag.
指定重复次数,扫描代码,扩展键标志,上下文代码,前期的键状态标志,转换状态标志。
You code might set a flag or an internal synchronization object (such as event) so that main thread code would eventually notice it and proceed with raising an external event from there.
你的代码可能设置一个标志或内部同步对象(如事件)使主线程的代码最终会注意到它,并继续从那里筹集外部事件。
The algorithm integrates the linear indexing technique and flag map which LZC adopts, USES the scan order which is the same of SPIHT algorithm, sends the coding stream into MQ in code process.
该算法引入了线性索引技术和LZC算法标志位图,采用了类似于SPIHT算法的扫描顺序,将待编码流按不同种类进行算术编码。
Specifies the extended-key flag, event-injected flag, context code, and transition-state flag.
指定扩展键标志,事件注入标志,上下文代码,转换状态码。
Lloyd's Code, Vessel Flag, Voyage Number and Port of Loading will fill in automatically.
船籍代码,船籍资料,船名航次与装货港代码会自动显示。
With these data structures, code modules, and system registers initialized, the processor can be switched to protected mode by loading control register CR0 with a value that sets the PE flag (bit 0).
当设置好这些数据结构,代码段以及系统寄存器之后,可以通过设置控制寄存器CR0的PE位(第0位)为1来进入保护模式。
应用推荐