Supercharge Your Innovation With Domain-Expert AI Agents!

Code management method and device

A code management and definition technology, applied in the field of code management methods and devices, to achieve the effect of ensuring safe calling

Active Publication Date: 2017-07-11
GUANGZHOU SHIYUAN ELECTRONICS CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a code management method and device to solve the security problems caused by the direct use of untested and verified codes, realize automatic code management, and improve the reliability and safety of code use

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Code management method and device
  • Code management method and device
  • Code management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] figure 1 It is a flow chart of a code management method provided by Embodiment 1 of the present invention. The method of this embodiment can be executed by a code management device, which can be realized by means of hardware and / or software, and generally, the method of this embodiment can be realized by cooperation of a server and a terminal.

[0022] The method of this embodiment specifically includes:

[0023] S110. Obtain the first macro definition value to be compiled in the macro definition call request.

[0024] In code management, the use of macro definitions can improve the versatility and legibility of programs, reduce inconsistencies, and reduce input errors. Especially when the program contains parameters, the application of macro definition makes program debugging more convenient. The macro definition calling request usually includes the first macro definition value required by the user or required for calling the macro definition. Exemplarily, the firs...

Embodiment 2

[0034] figure 2 The flow chart of the code management method provided by Embodiment 2 of the present invention, such as figure 2 As shown, in this embodiment, on the basis of the above-mentioned embodiments, optionally, the determining the change state of the test mark parameter of the macro definition may include: determining the macro definition according to the storage path of the macro definition Tests the changing state of the marker parameter.

[0035] On the basis of the above technical solution, further, responding to the macro definition call request according to the determination result may specifically include: outputting prompt information if the test flag parameter of the macro definition has not changed.

[0036] The method of this embodiment specifically includes:

[0037]S210. Obtain the first macro definition value to be compiled in the macro definition calling request.

[0038] S220. When it is detected based on the detection script that the first macro ...

Embodiment 3

[0052] image 3 Shown is a schematic structural diagram of a code management device provided by Embodiment 3 of the present invention. The device can be realized by means of hardware and / or software, and generally, the method of this embodiment can be realized by cooperation of a terminal and a server. Such as image 3 As shown, the code management device specifically includes: an acquisition module 310 , a change status determination module 320 and a response module 330 .

[0053] Wherein, the obtaining module 310 is used to obtain the first macro definition value to be compiled in the macro definition call request; the change state determination module 320 is used to detect that the first macro definition value is different from the prestored macro definition based on the detection script. When the value of the second macro definition is inconsistent, determine the change state of the test flag parameter of the macro definition; the response module 330 is configured to resp...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a code management method and device, and relates to the technical field of computer application. The code management method comprises the following steps: acquiring a first macro definition value to be compiled from a macro definition calling request; when detecting that the first macro definition value and a second macro definition value of a pre-stored macro definition are inconsistent based on a detection script, determining a change state of testing mark parameters of the macro definition; responding to the macro definition calling request according to a determining result. According to the code management method and device disclosed by the embodiment of the invention, when the first macro definition value and the second macro definition value of the pre-stored macro definition are detected to be inconsistent, i.e., when the macro definition is called and is changed, the macro definition calling request is not directly responded to; whether the macro definition passes a test or not is determined through determining the change state of the testing mark parameters of the macro definition, so that the macro definition calling request is responded to according to the determining result, and safety calling of the macro definition can be effectively guaranteed.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer applications, and in particular to a code management method and device. Background technique [0002] At present, the rapid development of computer technology and network has greatly facilitated people's daily life. In today's technological world, in order to meet people's needs for convenience and efficiency in all aspects of life, work, and entertainment, more and more devices tend to use computer software for intelligent control. [0003] For smart devices developed in series such as TVs and mobile phones, it is often the case that the same functional module or application software shares a set of codes for development. In order to avoid the mutual influence between the codes implementing different functions, the code or code block of the engineer’s new function will be expressed in the form of macro definition to prevent errors and improve portability, readability a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/45
CPCG06F8/43G06F8/443G06F8/73
Inventor 廖祖锐
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More