├── LICENSE ├── Precompiled └── VC 2019 │ ├── CN normal 32bit │ └── ST_Curve.ocx │ └── CN normal 64bit │ └── ST_Curve.ocx ├── README.md ├── ST_Curve ├── ST_Curve.sln └── ST_Curve │ ├── ReadMe.txt │ ├── Resource.h │ ├── ST_Curve.cpp │ ├── ST_Curve.def │ ├── ST_Curve.h │ ├── ST_Curve.idl │ ├── ST_Curve.rc │ ├── ST_Curve.vcxproj │ ├── ST_CurveCtrl.cpp │ ├── ST_CurveCtrl.h │ ├── ST_CurvePropPage.cpp │ ├── ST_CurvePropPage.h │ ├── conf.h │ ├── res │ ├── ST_CurveCtrl.bmp │ ├── ZoomIn.cur │ ├── ZoomInOut.cur │ ├── hdrag.cur │ └── hmove.cur │ ├── stdafx.cpp │ ├── stdafx.h │ ├── structs.h │ └── targetver.h ├── TestST_Curve ├── TestST_Curve.sln └── TestST_Curve │ ├── ReadMe.txt │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── TestST_Curve.cpp │ ├── TestST_Curve.h │ ├── TestST_Curve.rc │ ├── TestST_Curve.vcxproj │ ├── TestST_CurveDlg.cpp │ ├── TestST_CurveDlg.h │ ├── res │ ├── 002.bmp │ ├── 06.bmp │ ├── 101.bmp │ ├── 102.bmp │ ├── 44.bmp │ ├── 46.bmp │ ├── TestST_Curve.ico │ ├── TestST_Curve.rc2 │ ├── Tex6.bmp │ ├── Tex7.bmp │ ├── Textmauv.bmp │ └── Textora.bmp │ ├── resource.h │ ├── stcurvectrl.cpp │ ├── stcurvectrl.h │ └── targetver.h ├── TestST_Curve2 ├── ST_Curve_PlugIn │ ├── ReadMe.txt │ ├── ST_Curve_PlugIn.cpp │ ├── ST_Curve_PlugIn.h │ ├── ST_Curve_PlugIn.vcxproj │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── dllmain.cpp │ └── targetver.h ├── TestST_Curve.sln └── TestST_Curve │ ├── ReadMe.txt │ ├── ST_Curve.hpp │ ├── ST_Curve_PlugIn.hpp │ ├── ST_Curve_PlugIn.lua │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── TestST_Curve.cpp │ ├── TestST_Curve.h │ ├── TestST_Curve.rc │ ├── TestST_Curve.vcxproj │ ├── TestST_CurveDlg.cpp │ ├── TestST_CurveDlg.h │ ├── res │ ├── 002.bmp │ ├── 06.bmp │ ├── 101.bmp │ ├── 102.bmp │ ├── 44.bmp │ ├── 46.bmp │ ├── TestST_Curve.ico │ ├── TestST_Curve.rc2 │ ├── Tex6.bmp │ ├── Tex7.bmp │ ├── Textmauv.bmp │ ├── Textora.bmp │ ├── XPStyle.manifest │ ├── 注解背景.bmp │ └── 注解背景2.bmp │ ├── resource.h │ ├── stcurvectrl.cpp │ ├── stcurvectrl.h │ ├── targetver.h │ └── xiao.png ├── TestST_Curve3 ├── TestST_Curve3.sln └── TestST_Curve3 │ ├── CDST_Curve.cpp │ ├── CDST_Curve.h │ ├── ClassView.cpp │ ├── ClassView.h │ ├── FileView.cpp │ ├── FileView.h │ ├── MainFrm.cpp │ ├── MainFrm.h │ ├── OutputWnd.cpp │ ├── OutputWnd.h │ ├── PropertiesWnd.cpp │ ├── PropertiesWnd.h │ ├── ReadMe.txt │ ├── StdAfx.cpp │ ├── StdAfx.h │ ├── TestST_Curve3.cpp │ ├── TestST_Curve3.h │ ├── TestST_Curve3.rc │ ├── TestST_Curve3.vcxproj │ ├── TestST_Curve3Doc.cpp │ ├── TestST_Curve3Doc.h │ ├── TestST_Curve3View.cpp │ ├── TestST_Curve3View.h │ ├── UserImages.bmp │ ├── ViewTree.cpp │ ├── ViewTree.h │ ├── res │ ├── TestST_Curve3.ico │ ├── TestST_Curve3.rc2 │ ├── TestST_Curve3Doc.ico │ ├── Toolbar.bmp │ ├── Toolbar256.bmp │ ├── class_view.ico │ ├── class_view_hc.ico │ ├── classview.bmp │ ├── classview_hc.bmp │ ├── explorer.bmp │ ├── explorer_hc.bmp │ ├── file_view.ico │ ├── file_view_hc.ico │ ├── fileview.bmp │ ├── fileview_hc.bmp │ ├── menuimages.bmp │ ├── menuimages_hc.bmp │ ├── output_wnd.ico │ ├── output_wnd_hc.ico │ ├── properties.bmp │ ├── properties_hc.bmp │ ├── properties_wnd.ico │ ├── properties_wnd_hc.ico │ ├── sort.bmp │ └── sort_hc.bmp │ ├── resource.h │ └── targetver.h ├── doc ├── ST_Curve开发文档.docx └── ST_Curve开发文档.pdf └── lua_5.4.3 ├── lauxlib.h ├── lua.h ├── lua.hpp ├── lua_5.4.3.dll ├── lua_5.4.3.lib ├── lua_5.4.3x64.dll ├── lua_5.4.3x64.lib ├── luaconf.h └── lualib.h /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Precompiled/VC 2019/CN normal 32bit/ST_Curve.ocx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/Precompiled/VC 2019/CN normal 32bit/ST_Curve.ocx -------------------------------------------------------------------------------- /Precompiled/VC 2019/CN normal 64bit/ST_Curve.ocx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/Precompiled/VC 2019/CN normal 64bit/ST_Curve.ocx -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ST_Curve 2 | 专业的曲线、折线、柱状图绘制控件(ActiveX),高效灵活,可深度定制,支持插件开发。 3 | 4 | ## 一:什么是ST_Curve? 5 | ST_Curve是一个专业的曲线绘制控件,只要是xy坐标系的曲线,都可绘制,纵坐标只能显示为值,横坐标可以显示为值或者时间(如果你愿意为控件提供插件,则横纵坐标均可显示任意字符)。 6 | 7 | ## 二:ST_Curve面向对象? 8 | 二次开发者,即你必须要对ST_Curve进行开发,它才能使用,就像现在流行的诸多界面库一样。 9 | 10 | ## 三:ST_Curve有什么使用与分发限制? 11 | 使用无任何限制,分发时,必须保证控件的完整性,包括但不限于主控件、开发文档等。 12 | 13 | ## 四:ST_Curve的特点与优势(对用户) 14 | 鼠标任意拖动曲线,任意缩放曲线,定点(鼠标取点或者二次开发者传入点)缩放曲线,支持类似K线图的缩放方式,数字键快速找到曲线,F5键居中曲线,F4键显示隐藏帮助(帮助显示于背景图之上,帮助上会有更多的快捷键,这里不一一列出了),支持方向键,翻页键等,可显示三维效果,可显示全局位置预览窗口并通过它快速移动曲线。 15 | 16 | ## 五:ST_Curve的特点与优势(对开发者,只说说几个重点,其它的请看开发文档) 17 | 自定义各种颜色,字体,背景,画笔,填充模式等,可切换坐标原点到窗口四个角的任意一个,可导出图片(bmp、png、jpg、gif),可批量导出图片,以及定时导出图片,可导入图片作为背景或者用于填充曲线,可导出曲线到文件(支持二进制文件,它速度最快,还支持文本文件,它的好处是可以手动编辑,支持的文本格式包括:ansi、unicode、unicode big endian、utf8,这些文本格式都被windows支持),可绘制实时曲线(曲线自动滚动),支持在各个方向上对曲线进行填充,支持打印,打印或者导出图片时,可指定只对某一条曲线,或某一段数据;支持注解显示;支持数据持久化;支持批量添加数据。 18 | 19 | ## 六:开发举例 20 | 下面我简单讲一下控件的开发流程,以帮助大家迅速的看到效果,更详细的开发需要你仔细的阅读开发文档。 首先是调用AddLegendHelper函数添加图例,然后调用AddMainData函数添加曲线点(这两步的先后关系无所谓),比如:
21 | m_ST_Curve.AddLegendHelper(1, _T("第一条曲线"), (unsigned long) RGB(255, 255, 0), PS_SOLID, 1, FALSE);
22 | COleDateTime Time = COleDateTime::GetCurrentTime();
23 | for (int i = 0; i < 5; i++)
24 | {
25 | m_ST_Curve.AddMainData2(1, Time, 90 + .6f * i, 0, 0, TRUE);
26 | Time += 1.0 / 24 / 2;
27 | }
28 | 至此,如果你可以看到曲线,那么ST_Curve控件就是我写的,如果看不到,我也不知道是谁写的! 29 | 30 | 考虑到初学者老是问如何用COleDateTime和COleDateTimeSpan表达浮点数,我这里给一个统一的解释:
31 | COleDateTimeSpan代表一个时间间隔,它是用浮点数来表达的,所以他们可以隐式转换(COleDateTimeSpan重载了operator double),表达的方式是1.0代表一天,其它时间间隔以此类推,比如:
32 | 1小时 = 1.0 / 24
33 | 1分钟 = 1.0 / 24 / 60
34 | 1秒钟 = 1.0 / 24 / 60 / 60
35 | 0.5秒钟 = 1秒钟的二分之一
36 | ……
37 | COleDateTime代表一个日期,从1899.12.30开始,即1899.12.30等于0,如果是1899.12.31呢,当然就加一天,而一天刚才说过了,等于1.0,所以1899.12.31就是1.0。 38 | 可以直接将double数据赋给COleDateTimeSpan或者COleDateTime,可隐式转换。 39 | 40 | ## 七:编译 41 | 本控件需要Lua,自带5.4.3版本的lib文件,vc++ 2019 (16.11.3) 编译,如果你的编译器不是这个版本,需要自行从 https://www.lua.org/ 下载并编译,打开解决方案之后,如果提示Windows SDK版本不正确,请自行切换到你自己的版本,如果想在低于vc++ 2019 (16.11.3) 版本下编译,请创建一个MFC ActiveX工程,然后将代码拷贝过去。 42 | 43 | ## 八:进一步说明 44 | 本控件是在2004年左右我刚参加工作的时候开始编写的,鉴于当时的水平,在组织框架上,可读性上都有很大的不足,仅仅是考虑了效率优先(当时的机器配置也有限),且随着编译器的升级,出来了一些编译警告,但不影响功能所以我一直没有修正,还请大家见谅。这么多年过去,我只能说其稳定性还是很不错,功能也足够强大,可傻瓜式使用也可尝试定制,如果你要修改它,最好先读懂它。 45 | 46 | ## 九:联系我 47 | QQ群:132339384,支持定制服务。 48 | 49 | ## 十:FAQ 50 | 相较于其它类似控制的最突出优势:
51 | 效率和深度定制。
52 |
53 | 最常见问题:
54 | 在工作线程里面调用控件接口引起的多线程问题,因为几乎所有接口都需要调用窗口函数,windows规定窗口函数只能在主线程(GUI)里面调用,工作线程只能通过消息让主线程调用窗口函数。 55 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ST_Curve", "ST_Curve\ST_Curve.vcxproj", "{4EF028C0-251D-4707-BDFA-24DF8A20B520}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Debug|Win32.Build.0 = Debug|Win32 18 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Debug|x64.ActiveCfg = Debug|x64 19 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Debug|x64.Build.0 = Debug|x64 20 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Release|Win32.ActiveCfg = Release|Win32 21 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Release|Win32.Build.0 = Release|Win32 22 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Release|x64.ActiveCfg = Release|x64 23 | {4EF028C0-251D-4707-BDFA-24DF8A20B520}.Release|x64.Build.0 = Release|x64 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | ACTIVEX 控件 DLL : ST_Curve 项目概述 3 | ======================================================================== 4 | 5 | 控件向导已为 ST_Curve ActiveX 控件 DLL 创建此项目,其中包含一个控件。 6 | 7 | 此主干项目不仅演示了编写 ActiveX 8 | 控件的基本方法,而且还可以作为编写控件特定功能的起点。 9 | 10 | 本文件概要介绍组成 ST_Curve ActiveX 控件 DLL 的每个文件的内容。 11 | 12 | ST_Curve.vcxproj 13 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件, 14 | 其中包含生成该文件的 Visual C++ 15 | 的版本信息,以及有关使用应用程序向导选择的平台、 16 | 配置和项目功能的信息。 17 | 18 | ST_Curve.vcxproj.filters 19 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。 20 | 它包含有关项目文件与筛选器之间的关联信息。 在 IDE 21 | 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。 22 | 例如,“.cpp”文件与“源文件”筛选器关联。 23 | 24 | ST_Curve.h 25 | 这是 ActiveX 控件 DLL 的主包含文件。 其中包括其他项目特定的文件,如 26 | resource.h。 27 | 28 | ST_Curve.cpp 29 | 这是包含 DLL 初始化、终止和其他簿记的代码的主源文件。 30 | 31 | ST_Curve.rc 32 | 这是项目使用的 Microsoft Windows 资源的清单。 33 | 此文件可以直接用 Visual C++ 资源编辑器进行编辑。 34 | 35 | ST_Curve.def 36 | 此文件包含关于在 Microsoft Windows 上运行所必需的 ActiveX 控件 DLL 的有关信息。 37 | 38 | ST_Curve.idl 39 | 此文件包含控件类型库的对象描述语言源代码。 40 | 41 | ///////////////////////////////////////////////////////////////////////////// 42 | CST_CurveCtrl 控件: 43 | 44 | ST_CurveCtrl.h 45 | 此文件包含 CST_CurveCtrl C++ 类的声明。 46 | 47 | ST_CurveCtrl.cpp 48 | 此文件包含 CST_CurveCtrl C++ 类的实现。 49 | 50 | ST_CurvePropPage.h 51 | 此文件包含 CST_CurvePropPage C++ 类的声明。 52 | 53 | ST_CurvePropPage.cpp 54 | 此文件包含 CST_CurvePropPage C++ 类的实现。 55 | 56 | CST_CurveCtrl.bmp 57 | 此文件包含一个位图,当 CST_CurveCtrl 58 | 控件出现在工具面板上时,容器将使用此位图来表示该控件。 此位图包含在主资源文件 59 | ST_Curve.rc 中。 60 | 61 | ///////////////////////////////////////////////////////////////////////////// 62 | 其他标准文件: 63 | 64 | stdAfx.h,stdAfx.cpp 65 | 这些文件用于生成名为 ST_Curve.pch 的预编译头 (PCH) 文件和名为 66 | StdAfx.obj 的预编译类型 (PCT) 文件。 67 | 68 | resource.h 69 | 这是标准头文件,可用于定义新的资源 ID。 70 | Visual C++ 资源编辑器读取并更新此文件。 71 | 72 | ///////////////////////////////////////////////////////////////////////////// 73 | 其他注释: 74 | 75 | 控件向导使用“TODO:”来指示应添加或自定义的源代码部分。 76 | 77 | ///////////////////////////////////////////////////////////////////////////// 78 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by ST_Curve.rc 4 | // 5 | 6 | #define IDS_ST_CURVE 1 7 | #define IDB_ST_CURVE 1 8 | #define IDS_ST_CURVE_PPG 2 9 | #define IDS_ST_CURVE_PPG_CAPTION 200 10 | #define IDD_PROPPAGE_ST_CURVE 200 11 | #define IDS_TIME 202 12 | #define IDS_LEGEND 203 13 | #define IDS_FOOTNOTE 204 14 | #define IDS_WRITEFILEFAIL 205 15 | #define IDS_OVERFLOW 206 16 | #define IDC_ZOOMIN 300 17 | #define IDC_ZOOMOUT 301 18 | #define IDC_MOVE 302 19 | #define IDC_DRAG 303 20 | 21 | 22 | #define _APS_NEXT_RESOURCE_VALUE 304 23 | #define _APS_NEXT_COMMAND_VALUE 32768 24 | #define _APS_NEXT_CONTROL_VALUE 201 25 | #define _APS_NEXT_SYMED_VALUE 101 26 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_Curve.cpp -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.def: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_Curve.def -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_Curve.h -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.idl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_Curve.idl -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_Curve.rc -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_Curve.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {4EF028C0-251D-4707-BDFA-24DF8A20B520} 23 | ST_Curve 24 | MFCActiveXProj 25 | 10.0 26 | 27 | 28 | 29 | DynamicLibrary 30 | true 31 | Unicode 32 | Dynamic 33 | v141_xp 34 | 35 | 36 | DynamicLibrary 37 | true 38 | Unicode 39 | Dynamic 40 | v141_xp 41 | 42 | 43 | DynamicLibrary 44 | false 45 | true 46 | Unicode 47 | Dynamic 48 | v142 49 | 50 | 51 | DynamicLibrary 52 | false 53 | true 54 | Unicode 55 | Dynamic 56 | v142 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | true 76 | .ocx 77 | 78 | 79 | true 80 | .ocx 81 | 82 | 83 | false 84 | .ocx 85 | 86 | 87 | false 88 | .ocx 89 | 90 | 91 | 92 | Use 93 | Level3 94 | Disabled 95 | WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions) 96 | 97 | 98 | Windows 99 | true 100 | .\ST_Curve.def 101 | $(OutDir)$(ProjectName).ocx 102 | true 103 | 104 | 105 | false 106 | true 107 | _DEBUG;%(PreprocessorDefinitions) 108 | $(IntDir)ST_Curve.tlb 109 | $(ProjectName)idl.h 110 | 111 | 112 | 0x0804 113 | _DEBUG;%(PreprocessorDefinitions) 114 | $(IntDir);%(AdditionalIncludeDirectories) 115 | 116 | 117 | 118 | 119 | Use 120 | Level3 121 | Disabled 122 | WIN32;_WINDOWS;_DEBUG;_USRDLL;%(PreprocessorDefinitions) 123 | /favor:blend %(AdditionalOptions) 124 | 125 | 126 | Windows 127 | true 128 | .\ST_Curve.def 129 | $(OutDir)$(ProjectName).ocx 130 | true 131 | 132 | 133 | false 134 | _DEBUG;%(PreprocessorDefinitions) 135 | $(IntDir)ST_Curve.tlb 136 | $(ProjectName)idl.h 137 | X64 138 | 139 | 140 | 0x0804 141 | _DEBUG;%(PreprocessorDefinitions) 142 | $(IntDir);%(AdditionalIncludeDirectories) 143 | 144 | 145 | 146 | 147 | Level3 148 | Use 149 | MaxSpeed 150 | true 151 | true 152 | WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions) 153 | 154 | 155 | Windows 156 | true 157 | true 158 | true 159 | .\ST_Curve.def 160 | $(OutDir)$(ProjectName).ocx 161 | true 162 | 163 | 164 | false 165 | true 166 | NDEBUG;%(PreprocessorDefinitions) 167 | $(IntDir)ST_Curve.tlb 168 | $(ProjectName)idl.h 169 | 170 | 171 | 0x0804 172 | NDEBUG;%(PreprocessorDefinitions) 173 | $(IntDir);%(AdditionalIncludeDirectories) 174 | 175 | 176 | 177 | 178 | Level3 179 | Use 180 | MaxSpeed 181 | true 182 | true 183 | WIN32;_WINDOWS;NDEBUG;_USRDLL;%(PreprocessorDefinitions) 184 | /favor:blend %(AdditionalOptions) 185 | 186 | 187 | Windows 188 | true 189 | true 190 | true 191 | .\ST_Curve.def 192 | $(OutDir)$(ProjectName).ocx 193 | true 194 | 195 | 196 | false 197 | NDEBUG;%(PreprocessorDefinitions) 198 | $(IntDir)ST_Curve.tlb 199 | $(ProjectName)idl.h 200 | X64 201 | 202 | 203 | 0x0804 204 | NDEBUG;%(PreprocessorDefinitions) 205 | $(IntDir);%(AdditionalIncludeDirectories) 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | Create 220 | Create 221 | Create 222 | Create 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_CurveCtrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_CurveCtrl.cpp -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_CurveCtrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_CurveCtrl.h -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_CurvePropPage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_CurvePropPage.cpp -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/ST_CurvePropPage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/ST_CurvePropPage.h -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/conf.h: -------------------------------------------------------------------------------- 1 | 2 | #if !defined __CONF__ 3 | #define __CONF__ 4 | 5 | #define ST_OLE_COLOR long 6 | #define ST_OLE_HANDLE long 7 | 8 | #define LANG_TYPE 1 //1 for Chinese(P.R.C.), 2 for English(U.S.), 3 for ... 9 | #define USE_DATE_FOR_HCOOR 10 | 11 | #ifdef USE_DATE_FOR_HCOOR 12 | #define HCOOR_TYPE DATE 13 | #define HCOOR_VT_TYPE VT_DATE 14 | #define HCOOR_VTS_TYPE VTS_DATE 15 | #define HCOOR_VTS_PTYPE VTS_PDATE 16 | #else 17 | #define HCOOR_TYPE double 18 | #define HCOOR_VT_TYPE VT_R8 19 | #define HCOOR_VTS_TYPE VTS_R8 20 | #define HCOOR_VTS_PTYPE VTS_PR8 21 | #endif 22 | 23 | #endif //#define __CONF__ 24 | -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/res/ST_CurveCtrl.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/res/ST_CurveCtrl.bmp -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/res/ZoomIn.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/res/ZoomIn.cur -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/res/ZoomInOut.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/res/ZoomInOut.cur -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/res/hdrag.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/res/hdrag.cur -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/res/hmove.cur: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/res/hmove.cur -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/stdafx.cpp -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/stdafx.h -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/structs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/structs.h -------------------------------------------------------------------------------- /ST_Curve/ST_Curve/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/ST_Curve/ST_Curve/targetver.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestST_Curve", "TestST_Curve\TestST_Curve.vcxproj", "{F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Debug|Win32.Build.0 = Debug|Win32 18 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Debug|x64.ActiveCfg = Debug|x64 19 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Debug|x64.Build.0 = Debug|x64 20 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Release|Win32.ActiveCfg = Release|Win32 21 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Release|Win32.Build.0 = Release|Win32 22 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Release|x64.ActiveCfg = Release|x64 23 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E}.Release|x64.Build.0 = Release|x64 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/ReadMe.txt -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/StdAfx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/StdAfx.cpp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/StdAfx.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_Curve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/TestST_Curve.cpp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_Curve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/TestST_Curve.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_Curve.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/TestST_Curve.rc -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_Curve.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {F7D7CBC2-CF40-4010-905A-CCFA0502CC0E} 23 | TestST_Curve 24 | MFCProj 25 | 10.0.17134.0 26 | 27 | 28 | 29 | Application 30 | true 31 | Unicode 32 | Dynamic 33 | v141 34 | 35 | 36 | Application 37 | true 38 | Unicode 39 | Dynamic 40 | v141 41 | 42 | 43 | Application 44 | false 45 | true 46 | Unicode 47 | Dynamic 48 | v141 49 | 50 | 51 | Application 52 | false 53 | true 54 | Unicode 55 | Dynamic 56 | v141 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | true 76 | 77 | 78 | true 79 | 80 | 81 | false 82 | 83 | 84 | false 85 | 86 | 87 | 88 | Use 89 | Level3 90 | Disabled 91 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 92 | 93 | 94 | Windows 95 | true 96 | 97 | 98 | false 99 | true 100 | _DEBUG;%(PreprocessorDefinitions) 101 | 102 | 103 | 0x0804 104 | _DEBUG;%(PreprocessorDefinitions) 105 | $(IntDir);%(AdditionalIncludeDirectories) 106 | 107 | 108 | 109 | 110 | Use 111 | Level3 112 | Disabled 113 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 114 | 115 | 116 | Windows 117 | true 118 | 119 | 120 | false 121 | _DEBUG;%(PreprocessorDefinitions) 122 | 123 | 124 | 0x0804 125 | _DEBUG;%(PreprocessorDefinitions) 126 | $(IntDir);%(AdditionalIncludeDirectories) 127 | 128 | 129 | 130 | 131 | Level3 132 | Use 133 | MaxSpeed 134 | true 135 | true 136 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 137 | 138 | 139 | Windows 140 | true 141 | true 142 | true 143 | 144 | 145 | false 146 | true 147 | NDEBUG;%(PreprocessorDefinitions) 148 | 149 | 150 | 0x0804 151 | NDEBUG;%(PreprocessorDefinitions) 152 | $(IntDir);%(AdditionalIncludeDirectories) 153 | 154 | 155 | 156 | 157 | Level3 158 | Use 159 | MaxSpeed 160 | true 161 | true 162 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 163 | 164 | 165 | Windows 166 | true 167 | true 168 | true 169 | 170 | 171 | false 172 | NDEBUG;%(PreprocessorDefinitions) 173 | 174 | 175 | 0x0804 176 | NDEBUG;%(PreprocessorDefinitions) 177 | $(IntDir);%(AdditionalIncludeDirectories) 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | Create 207 | Create 208 | Create 209 | Create 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_CurveDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/TestST_CurveDlg.cpp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/TestST_CurveDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/TestST_CurveDlg.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/002.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/002.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/06.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/06.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/101.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/101.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/102.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/102.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/44.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/44.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/46.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/46.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/TestST_Curve.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/TestST_Curve.ico -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/TestST_Curve.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/TestST_Curve.rc2 -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/Tex6.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/Tex6.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/Tex7.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/Tex7.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/Textmauv.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/Textmauv.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/res/Textora.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/res/Textora.bmp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/resource.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/stcurvectrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/stcurvectrl.cpp -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/stcurvectrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/stcurvectrl.h -------------------------------------------------------------------------------- /TestST_Curve/TestST_Curve/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve/TestST_Curve/targetver.h -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ======================================================================== 2 | 动态链接库:ST_Curve_PlugIn 项目概述 3 | ======================================================================== 4 | 5 | 应用程序向导已为您创建了此 ST_Curve_PlugIn DLL。 6 | 7 | 本文件概要介绍组成 ST_Curve_PlugIn 应用程序的每个文件的内容。 8 | 9 | 10 | ST_Curve_PlugIn.vcxproj 11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件, 12 | 其中包含生成该文件的 Visual C++ 13 | 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 14 | 15 | ST_Curve_PlugIn.vcxproj.filters 16 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。 17 | 它包含有关项目文件与筛选器之间的关联信息。 在 IDE 18 | 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。 19 | 例如,“.cpp”文件与“源文件”筛选器关联。 20 | 21 | ST_Curve_PlugIn.cpp 22 | 这是主 DLL 源文件。 23 | 24 | ///////////////////////////////////////////////////////////////////////////// 25 | 其他标准文件: 26 | 27 | StdAfx.h,StdAfx.cpp 28 | 这些文件用于生成名为 ST_Curve_PlugIn.pch 的预编译头 (PCH) 文件和 29 | 名为 StdAfx.obj 的预编译类型文件。 30 | 31 | ///////////////////////////////////////////////////////////////////////////// 32 | 其他注释: 33 | 34 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。 35 | 36 | ///////////////////////////////////////////////////////////////////////////// 37 | -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/ST_Curve_PlugIn.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/ST_Curve_PlugIn.cpp -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/ST_Curve_PlugIn.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/ST_Curve_PlugIn.h -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/ST_Curve_PlugIn.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {198EAAC2-4A2F-4582-99E6-86711FC75548} 23 | Win32Proj 24 | ST_Curve_PlugIn 25 | 10.0.17134.0 26 | 27 | 28 | 29 | DynamicLibrary 30 | true 31 | Unicode 32 | v141 33 | 34 | 35 | DynamicLibrary 36 | true 37 | Unicode 38 | v141 39 | 40 | 41 | DynamicLibrary 42 | false 43 | true 44 | Unicode 45 | v141 46 | 47 | 48 | DynamicLibrary 49 | false 50 | true 51 | Unicode 52 | v141 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | true 72 | 73 | 74 | true 75 | 76 | 77 | false 78 | 79 | 80 | false 81 | 82 | 83 | 84 | Use 85 | Level3 86 | Disabled 87 | WIN32;_DEBUG;_WINDOWS;_USRDLL;ST_CURVE_PLUGIN_EXPORTS;%(PreprocessorDefinitions) 88 | 89 | 90 | Windows 91 | true 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | Use 101 | Level3 102 | Disabled 103 | WIN32;_DEBUG;_WINDOWS;_USRDLL;ST_CURVE_PLUGIN_EXPORTS;%(PreprocessorDefinitions) 104 | 105 | 106 | Windows 107 | true 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | Level3 117 | Use 118 | MaxSpeed 119 | true 120 | true 121 | WIN32;NDEBUG;_WINDOWS;_USRDLL;ST_CURVE_PLUGIN_EXPORTS;%(PreprocessorDefinitions) 122 | 123 | 124 | Windows 125 | true 126 | true 127 | true 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | Level3 137 | Use 138 | MaxSpeed 139 | true 140 | true 141 | WIN32;NDEBUG;_WINDOWS;_USRDLL;ST_CURVE_PLUGIN_EXPORTS;%(PreprocessorDefinitions) 142 | 143 | 144 | Windows 145 | true 146 | true 147 | true 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | false 165 | false 166 | 167 | 168 | 169 | 170 | false 171 | false 172 | 173 | 174 | 175 | 176 | 177 | 178 | Create 179 | Create 180 | Create 181 | Create 182 | 183 | 184 | 185 | 186 | 187 | 188 | -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/StdAfx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/StdAfx.cpp -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/StdAfx.h -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/dllmain.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/dllmain.cpp -------------------------------------------------------------------------------- /TestST_Curve2/ST_Curve_PlugIn/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/ST_Curve_PlugIn/targetver.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestST_Curve", "TestST_Curve\TestST_Curve.vcxproj", "{3D1092D2-C3B0-467B-BF38-4BA68F5741E3}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | {198EAAC2-4A2F-4582-99E6-86711FC75548} = {198EAAC2-4A2F-4582-99E6-86711FC75548} 9 | EndProjectSection 10 | EndProject 11 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ST_Curve_PlugIn", "ST_Curve_PlugIn\ST_Curve_PlugIn.vcxproj", "{198EAAC2-4A2F-4582-99E6-86711FC75548}" 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Win32 = Debug|Win32 16 | Debug|x64 = Debug|x64 17 | Release|Win32 = Release|Win32 18 | Release|x64 = Release|x64 19 | EndGlobalSection 20 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 21 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Debug|Win32.ActiveCfg = Debug|Win32 22 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Debug|Win32.Build.0 = Debug|Win32 23 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Debug|x64.ActiveCfg = Debug|x64 24 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Debug|x64.Build.0 = Debug|x64 25 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Release|Win32.ActiveCfg = Release|Win32 26 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Release|Win32.Build.0 = Release|Win32 27 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Release|x64.ActiveCfg = Release|x64 28 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3}.Release|x64.Build.0 = Release|x64 29 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Debug|Win32.ActiveCfg = Debug|Win32 30 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Debug|Win32.Build.0 = Debug|Win32 31 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Debug|x64.ActiveCfg = Debug|x64 32 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Debug|x64.Build.0 = Debug|x64 33 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Release|Win32.ActiveCfg = Release|Win32 34 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Release|Win32.Build.0 = Release|Win32 35 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Release|x64.ActiveCfg = Release|x64 36 | {198EAAC2-4A2F-4582-99E6-86711FC75548}.Release|x64.Build.0 = Release|x64 37 | EndGlobalSection 38 | GlobalSection(SolutionProperties) = preSolution 39 | HideSolutionNode = FALSE 40 | EndGlobalSection 41 | EndGlobal 42 | -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/ReadMe.txt -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/ST_Curve.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/ST_Curve.hpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/ST_Curve_PlugIn.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/ST_Curve_PlugIn.hpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/ST_Curve_PlugIn.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/ST_Curve_PlugIn.lua -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/StdAfx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/StdAfx.cpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/StdAfx.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_Curve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/TestST_Curve.cpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_Curve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/TestST_Curve.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_Curve.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/TestST_Curve.rc -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_Curve.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Debug 10 | x64 11 | 12 | 13 | Release 14 | Win32 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | {3D1092D2-C3B0-467B-BF38-4BA68F5741E3} 23 | TestST_Curve 24 | MFCProj 25 | 10.0.17134.0 26 | 27 | 28 | 29 | Application 30 | true 31 | Unicode 32 | Dynamic 33 | v141 34 | 35 | 36 | Application 37 | true 38 | Unicode 39 | Dynamic 40 | v141 41 | 42 | 43 | Application 44 | false 45 | true 46 | Unicode 47 | Dynamic 48 | v141 49 | 50 | 51 | Application 52 | false 53 | true 54 | Unicode 55 | Dynamic 56 | v141 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | true 76 | 77 | 78 | true 79 | E:\boost_1_58_0\;$(IncludePath) 80 | 81 | 82 | false 83 | 84 | 85 | false 86 | 87 | 88 | 89 | Use 90 | Level3 91 | Disabled 92 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 93 | 94 | 95 | Windows 96 | true 97 | 98 | 99 | false 100 | true 101 | _DEBUG;%(PreprocessorDefinitions) 102 | 103 | 104 | 0x0804 105 | _DEBUG;%(PreprocessorDefinitions) 106 | $(IntDir);%(AdditionalIncludeDirectories) 107 | 108 | 109 | 110 | 111 | Use 112 | Level3 113 | Disabled 114 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 115 | 116 | 117 | Windows 118 | true 119 | 120 | 121 | false 122 | _DEBUG;%(PreprocessorDefinitions) 123 | 124 | 125 | 0x0804 126 | _DEBUG;%(PreprocessorDefinitions) 127 | $(IntDir);%(AdditionalIncludeDirectories) 128 | 129 | 130 | 131 | 132 | Level3 133 | Use 134 | MaxSpeed 135 | true 136 | true 137 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 138 | 139 | 140 | Windows 141 | true 142 | true 143 | true 144 | 145 | 146 | false 147 | true 148 | NDEBUG;%(PreprocessorDefinitions) 149 | 150 | 151 | 0x0804 152 | NDEBUG;%(PreprocessorDefinitions) 153 | $(IntDir);%(AdditionalIncludeDirectories) 154 | 155 | 156 | 157 | 158 | Level3 159 | Use 160 | MaxSpeed 161 | true 162 | true 163 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 164 | 165 | 166 | Windows 167 | true 168 | true 169 | true 170 | 171 | 172 | false 173 | NDEBUG;%(PreprocessorDefinitions) 174 | 175 | 176 | 0x0804 177 | NDEBUG;%(PreprocessorDefinitions) 178 | $(IntDir);%(AdditionalIncludeDirectories) 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | Create 210 | Create 211 | Create 212 | Create 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_CurveDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/TestST_CurveDlg.cpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/TestST_CurveDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/TestST_CurveDlg.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/002.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/002.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/06.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/06.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/101.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/101.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/102.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/102.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/44.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/44.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/46.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/46.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/TestST_Curve.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/TestST_Curve.ico -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/TestST_Curve.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/TestST_Curve.rc2 -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/Tex6.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/Tex6.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/Tex7.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/Tex7.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/Textmauv.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/Textmauv.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/Textora.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/Textora.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/XPStyle.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/注解背景.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/注解背景.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/res/注解背景2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/res/注解背景2.bmp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/resource.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/stcurvectrl.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/stcurvectrl.cpp -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/stcurvectrl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/stcurvectrl.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/targetver.h -------------------------------------------------------------------------------- /TestST_Curve2/TestST_Curve/xiao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve2/TestST_Curve/xiao.png -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestST_Curve3", "TestST_Curve3\TestST_Curve3.vcxproj", "{20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E}.Debug|Win32.Build.0 = Debug|Win32 16 | {20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E}.Release|Win32.ActiveCfg = Release|Win32 17 | {20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/CDST_Curve.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/CDST_Curve.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/CDST_Curve.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/CDST_Curve.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/ClassView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/ClassView.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/ClassView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/ClassView.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/FileView.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/FileView.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/FileView.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/FileView.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/MainFrm.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/MainFrm.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/MainFrm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/MainFrm.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/OutputWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/OutputWnd.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/OutputWnd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/OutputWnd.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/PropertiesWnd.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/PropertiesWnd.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/PropertiesWnd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/PropertiesWnd.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/ReadMe.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/ReadMe.txt -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/StdAfx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/StdAfx.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/StdAfx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/StdAfx.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3.rc -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3.vcxproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | 14 | {20AAC5BF-BD6E-42B5-8F02-98E2E2B4484E} 15 | TestST_Curve3 16 | MFCProj 17 | 18 | 19 | 20 | Application 21 | true 22 | Unicode 23 | Dynamic 24 | v141_xp 25 | 26 | 27 | Application 28 | false 29 | true 30 | Unicode 31 | Dynamic 32 | v141_xp 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | true 46 | 47 | 48 | false 49 | 50 | 51 | 52 | Use 53 | Level3 54 | Disabled 55 | WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions) 56 | 57 | 58 | Windows 59 | true 60 | 61 | 62 | false 63 | true 64 | _DEBUG;%(PreprocessorDefinitions) 65 | 66 | 67 | 0x0804 68 | _DEBUG;%(PreprocessorDefinitions) 69 | $(IntDir);%(AdditionalIncludeDirectories) 70 | 71 | 72 | 73 | 74 | Level3 75 | Use 76 | MaxSpeed 77 | true 78 | true 79 | WIN32;_WINDOWS;NDEBUG;%(PreprocessorDefinitions) 80 | 81 | 82 | Windows 83 | true 84 | true 85 | true 86 | 87 | 88 | false 89 | true 90 | NDEBUG;%(PreprocessorDefinitions) 91 | 92 | 93 | 0x0804 94 | NDEBUG;%(PreprocessorDefinitions) 95 | $(IntDir);%(AdditionalIncludeDirectories) 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | Create 151 | Create 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3Doc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3Doc.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3Doc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3Doc.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3View.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3View.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/TestST_Curve3View.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/TestST_Curve3View.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/UserImages.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/UserImages.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/ViewTree.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/ViewTree.cpp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/ViewTree.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/ViewTree.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/TestST_Curve3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/TestST_Curve3.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/TestST_Curve3.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/TestST_Curve3.rc2 -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/TestST_Curve3Doc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/TestST_Curve3Doc.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/Toolbar.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/Toolbar.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/Toolbar256.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/Toolbar256.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/class_view.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/class_view.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/class_view_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/class_view_hc.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/classview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/classview.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/classview_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/classview_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/explorer.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/explorer.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/explorer_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/explorer_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/file_view.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/file_view.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/file_view_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/file_view_hc.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/fileview.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/fileview.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/fileview_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/fileview_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/menuimages.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/menuimages.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/menuimages_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/menuimages_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/output_wnd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/output_wnd.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/output_wnd_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/output_wnd_hc.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/properties.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/properties.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/properties_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/properties_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/properties_wnd.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/properties_wnd.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/properties_wnd_hc.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/properties_wnd_hc.ico -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/sort.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/sort.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/res/sort_hc.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/res/sort_hc.bmp -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/resource.h -------------------------------------------------------------------------------- /TestST_Curve3/TestST_Curve3/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/TestST_Curve3/TestST_Curve3/targetver.h -------------------------------------------------------------------------------- /doc/ST_Curve开发文档.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/doc/ST_Curve开发文档.docx -------------------------------------------------------------------------------- /doc/ST_Curve开发文档.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/doc/ST_Curve开发文档.pdf -------------------------------------------------------------------------------- /lua_5.4.3/lauxlib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lauxlib.h $ 3 | ** Auxiliary functions for building Lua libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lauxlib_h 9 | #define lauxlib_h 10 | 11 | 12 | #include 13 | #include 14 | 15 | #include "luaconf.h" 16 | #include "lua.h" 17 | 18 | 19 | /* global table */ 20 | #define LUA_GNAME "_G" 21 | 22 | 23 | typedef struct luaL_Buffer luaL_Buffer; 24 | 25 | 26 | /* extra error code for 'luaL_loadfilex' */ 27 | #define LUA_ERRFILE (LUA_ERRERR+1) 28 | 29 | 30 | /* key, in the registry, for table of loaded modules */ 31 | #define LUA_LOADED_TABLE "_LOADED" 32 | 33 | 34 | /* key, in the registry, for table of preloaded loaders */ 35 | #define LUA_PRELOAD_TABLE "_PRELOAD" 36 | 37 | 38 | typedef struct luaL_Reg { 39 | const char *name; 40 | lua_CFunction func; 41 | } luaL_Reg; 42 | 43 | 44 | #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number)) 45 | 46 | LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz); 47 | #define luaL_checkversion(L) \ 48 | luaL_checkversion_(L, LUA_VERSION_NUM, LUAL_NUMSIZES) 49 | 50 | LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e); 51 | LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e); 52 | LUALIB_API const char *(luaL_tolstring) (lua_State *L, int idx, size_t *len); 53 | LUALIB_API int (luaL_argerror) (lua_State *L, int arg, const char *extramsg); 54 | LUALIB_API int (luaL_typeerror) (lua_State *L, int arg, const char *tname); 55 | LUALIB_API const char *(luaL_checklstring) (lua_State *L, int arg, 56 | size_t *l); 57 | LUALIB_API const char *(luaL_optlstring) (lua_State *L, int arg, 58 | const char *def, size_t *l); 59 | LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg); 60 | LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def); 61 | 62 | LUALIB_API lua_Integer (luaL_checkinteger) (lua_State *L, int arg); 63 | LUALIB_API lua_Integer (luaL_optinteger) (lua_State *L, int arg, 64 | lua_Integer def); 65 | 66 | LUALIB_API void (luaL_checkstack) (lua_State *L, int sz, const char *msg); 67 | LUALIB_API void (luaL_checktype) (lua_State *L, int arg, int t); 68 | LUALIB_API void (luaL_checkany) (lua_State *L, int arg); 69 | 70 | LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname); 71 | LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname); 72 | LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname); 73 | LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname); 74 | 75 | LUALIB_API void (luaL_where) (lua_State *L, int lvl); 76 | LUALIB_API int (luaL_error) (lua_State *L, const char *fmt, ...); 77 | 78 | LUALIB_API int (luaL_checkoption) (lua_State *L, int arg, const char *def, 79 | const char *const lst[]); 80 | 81 | LUALIB_API int (luaL_fileresult) (lua_State *L, int stat, const char *fname); 82 | LUALIB_API int (luaL_execresult) (lua_State *L, int stat); 83 | 84 | 85 | /* predefined references */ 86 | #define LUA_NOREF (-2) 87 | #define LUA_REFNIL (-1) 88 | 89 | LUALIB_API int (luaL_ref) (lua_State *L, int t); 90 | LUALIB_API void (luaL_unref) (lua_State *L, int t, int ref); 91 | 92 | LUALIB_API int (luaL_loadfilex) (lua_State *L, const char *filename, 93 | const char *mode); 94 | 95 | #define luaL_loadfile(L,f) luaL_loadfilex(L,f,NULL) 96 | 97 | LUALIB_API int (luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, 98 | const char *name, const char *mode); 99 | LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s); 100 | 101 | LUALIB_API lua_State *(luaL_newstate) (void); 102 | 103 | LUALIB_API lua_Integer (luaL_len) (lua_State *L, int idx); 104 | 105 | LUALIB_API void luaL_addgsub (luaL_Buffer *b, const char *s, 106 | const char *p, const char *r); 107 | LUALIB_API const char *(luaL_gsub) (lua_State *L, const char *s, 108 | const char *p, const char *r); 109 | 110 | LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup); 111 | 112 | LUALIB_API int (luaL_getsubtable) (lua_State *L, int idx, const char *fname); 113 | 114 | LUALIB_API void (luaL_traceback) (lua_State *L, lua_State *L1, 115 | const char *msg, int level); 116 | 117 | LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, 118 | lua_CFunction openf, int glb); 119 | 120 | /* 121 | ** =============================================================== 122 | ** some useful macros 123 | ** =============================================================== 124 | */ 125 | 126 | 127 | #define luaL_newlibtable(L,l) \ 128 | lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1) 129 | 130 | #define luaL_newlib(L,l) \ 131 | (luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0)) 132 | 133 | #define luaL_argcheck(L, cond,arg,extramsg) \ 134 | ((void)(luai_likely(cond) || luaL_argerror(L, (arg), (extramsg)))) 135 | 136 | #define luaL_argexpected(L,cond,arg,tname) \ 137 | ((void)(luai_likely(cond) || luaL_typeerror(L, (arg), (tname)))) 138 | 139 | #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) 140 | #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) 141 | 142 | #define luaL_typename(L,i) lua_typename(L, lua_type(L,(i))) 143 | 144 | #define luaL_dofile(L, fn) \ 145 | (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0)) 146 | 147 | #define luaL_dostring(L, s) \ 148 | (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0)) 149 | 150 | #define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n))) 151 | 152 | #define luaL_opt(L,f,n,d) (lua_isnoneornil(L,(n)) ? (d) : f(L,(n))) 153 | 154 | #define luaL_loadbuffer(L,s,sz,n) luaL_loadbufferx(L,s,sz,n,NULL) 155 | 156 | 157 | /* push the value used to represent failure/error */ 158 | #define luaL_pushfail(L) lua_pushnil(L) 159 | 160 | 161 | /* 162 | ** Internal assertions for in-house debugging 163 | */ 164 | #if !defined(lua_assert) 165 | 166 | #if defined LUAI_ASSERT 167 | #include 168 | #define lua_assert(c) assert(c) 169 | #else 170 | #define lua_assert(c) ((void)0) 171 | #endif 172 | 173 | #endif 174 | 175 | 176 | 177 | /* 178 | ** {====================================================== 179 | ** Generic Buffer manipulation 180 | ** ======================================================= 181 | */ 182 | 183 | struct luaL_Buffer { 184 | char *b; /* buffer address */ 185 | size_t size; /* buffer size */ 186 | size_t n; /* number of characters in buffer */ 187 | lua_State *L; 188 | union { 189 | LUAI_MAXALIGN; /* ensure maximum alignment for buffer */ 190 | char b[LUAL_BUFFERSIZE]; /* initial buffer */ 191 | } init; 192 | }; 193 | 194 | 195 | #define luaL_bufflen(bf) ((bf)->n) 196 | #define luaL_buffaddr(bf) ((bf)->b) 197 | 198 | 199 | #define luaL_addchar(B,c) \ 200 | ((void)((B)->n < (B)->size || luaL_prepbuffsize((B), 1)), \ 201 | ((B)->b[(B)->n++] = (c))) 202 | 203 | #define luaL_addsize(B,s) ((B)->n += (s)) 204 | 205 | #define luaL_buffsub(B,s) ((B)->n -= (s)) 206 | 207 | LUALIB_API void (luaL_buffinit) (lua_State *L, luaL_Buffer *B); 208 | LUALIB_API char *(luaL_prepbuffsize) (luaL_Buffer *B, size_t sz); 209 | LUALIB_API void (luaL_addlstring) (luaL_Buffer *B, const char *s, size_t l); 210 | LUALIB_API void (luaL_addstring) (luaL_Buffer *B, const char *s); 211 | LUALIB_API void (luaL_addvalue) (luaL_Buffer *B); 212 | LUALIB_API void (luaL_pushresult) (luaL_Buffer *B); 213 | LUALIB_API void (luaL_pushresultsize) (luaL_Buffer *B, size_t sz); 214 | LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz); 215 | 216 | #define luaL_prepbuffer(B) luaL_prepbuffsize(B, LUAL_BUFFERSIZE) 217 | 218 | /* }====================================================== */ 219 | 220 | 221 | 222 | /* 223 | ** {====================================================== 224 | ** File handles for IO library 225 | ** ======================================================= 226 | */ 227 | 228 | /* 229 | ** A file handle is a userdata with metatable 'LUA_FILEHANDLE' and 230 | ** initial structure 'luaL_Stream' (it may contain other fields 231 | ** after that initial structure). 232 | */ 233 | 234 | #define LUA_FILEHANDLE "FILE*" 235 | 236 | 237 | typedef struct luaL_Stream { 238 | FILE *f; /* stream (NULL for incompletely created streams) */ 239 | lua_CFunction closef; /* to close stream (NULL for closed streams) */ 240 | } luaL_Stream; 241 | 242 | /* }====================================================== */ 243 | 244 | /* 245 | ** {================================================================== 246 | ** "Abstraction Layer" for basic report of messages and errors 247 | ** =================================================================== 248 | */ 249 | 250 | /* print a string */ 251 | #if !defined(lua_writestring) 252 | #define lua_writestring(s,l) fwrite((s), sizeof(char), (l), stdout) 253 | #endif 254 | 255 | /* print a newline and flush the output */ 256 | #if !defined(lua_writeline) 257 | #define lua_writeline() (lua_writestring("\n", 1), fflush(stdout)) 258 | #endif 259 | 260 | /* print an error message */ 261 | #if !defined(lua_writestringerror) 262 | #define lua_writestringerror(s,p) \ 263 | (fprintf(stderr, (s), (p)), fflush(stderr)) 264 | #endif 265 | 266 | /* }================================================================== */ 267 | 268 | 269 | /* 270 | ** {============================================================ 271 | ** Compatibility with deprecated conversions 272 | ** ============================================================= 273 | */ 274 | #if defined(LUA_COMPAT_APIINTCASTS) 275 | 276 | #define luaL_checkunsigned(L,a) ((lua_Unsigned)luaL_checkinteger(L,a)) 277 | #define luaL_optunsigned(L,a,d) \ 278 | ((lua_Unsigned)luaL_optinteger(L,a,(lua_Integer)(d))) 279 | 280 | #define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) 281 | #define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) 282 | 283 | #define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n))) 284 | #define luaL_optlong(L,n,d) ((long)luaL_optinteger(L, (n), (d))) 285 | 286 | #endif 287 | /* }============================================================ */ 288 | 289 | 290 | 291 | #endif 292 | 293 | 294 | -------------------------------------------------------------------------------- /lua_5.4.3/lua.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lua.h $ 3 | ** Lua - A Scripting Language 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 5 | ** See Copyright Notice at the end of this file 6 | */ 7 | 8 | 9 | #ifndef lua_h 10 | #define lua_h 11 | 12 | #include 13 | #include 14 | 15 | 16 | #include "luaconf.h" 17 | 18 | 19 | #define LUA_VERSION_MAJOR "5" 20 | #define LUA_VERSION_MINOR "4" 21 | #define LUA_VERSION_RELEASE "3" 22 | 23 | #define LUA_VERSION_NUM 504 24 | #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 0) 25 | 26 | #define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR 27 | #define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE 28 | #define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2021 Lua.org, PUC-Rio" 29 | #define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" 30 | 31 | 32 | /* mark for precompiled code ('Lua') */ 33 | #define LUA_SIGNATURE "\x1bLua" 34 | 35 | /* option for multiple returns in 'lua_pcall' and 'lua_call' */ 36 | #define LUA_MULTRET (-1) 37 | 38 | 39 | /* 40 | ** Pseudo-indices 41 | ** (-LUAI_MAXSTACK is the minimum valid index; we keep some free empty 42 | ** space after that to help overflow detection) 43 | */ 44 | #define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) 45 | #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) 46 | 47 | 48 | /* thread status */ 49 | #define LUA_OK 0 50 | #define LUA_YIELD 1 51 | #define LUA_ERRRUN 2 52 | #define LUA_ERRSYNTAX 3 53 | #define LUA_ERRMEM 4 54 | #define LUA_ERRERR 5 55 | 56 | 57 | typedef struct lua_State lua_State; 58 | 59 | 60 | /* 61 | ** basic types 62 | */ 63 | #define LUA_TNONE (-1) 64 | 65 | #define LUA_TNIL 0 66 | #define LUA_TBOOLEAN 1 67 | #define LUA_TLIGHTUSERDATA 2 68 | #define LUA_TNUMBER 3 69 | #define LUA_TSTRING 4 70 | #define LUA_TTABLE 5 71 | #define LUA_TFUNCTION 6 72 | #define LUA_TUSERDATA 7 73 | #define LUA_TTHREAD 8 74 | 75 | #define LUA_NUMTYPES 9 76 | 77 | 78 | 79 | /* minimum Lua stack available to a C function */ 80 | #define LUA_MINSTACK 20 81 | 82 | 83 | /* predefined values in the registry */ 84 | #define LUA_RIDX_MAINTHREAD 1 85 | #define LUA_RIDX_GLOBALS 2 86 | #define LUA_RIDX_LAST LUA_RIDX_GLOBALS 87 | 88 | 89 | /* type of numbers in Lua */ 90 | typedef LUA_NUMBER lua_Number; 91 | 92 | 93 | /* type for integer functions */ 94 | typedef LUA_INTEGER lua_Integer; 95 | 96 | /* unsigned integer type */ 97 | typedef LUA_UNSIGNED lua_Unsigned; 98 | 99 | /* type for continuation-function contexts */ 100 | typedef LUA_KCONTEXT lua_KContext; 101 | 102 | 103 | /* 104 | ** Type for C functions registered with Lua 105 | */ 106 | typedef int (*lua_CFunction) (lua_State *L); 107 | 108 | /* 109 | ** Type for continuation functions 110 | */ 111 | typedef int (*lua_KFunction) (lua_State *L, int status, lua_KContext ctx); 112 | 113 | 114 | /* 115 | ** Type for functions that read/write blocks when loading/dumping Lua chunks 116 | */ 117 | typedef const char * (*lua_Reader) (lua_State *L, void *ud, size_t *sz); 118 | 119 | typedef int (*lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud); 120 | 121 | 122 | /* 123 | ** Type for memory-allocation functions 124 | */ 125 | typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize); 126 | 127 | 128 | /* 129 | ** Type for warning functions 130 | */ 131 | typedef void (*lua_WarnFunction) (void *ud, const char *msg, int tocont); 132 | 133 | 134 | 135 | 136 | /* 137 | ** generic extra include file 138 | */ 139 | #if defined(LUA_USER_H) 140 | #include LUA_USER_H 141 | #endif 142 | 143 | 144 | /* 145 | ** RCS ident string 146 | */ 147 | extern const char lua_ident[]; 148 | 149 | 150 | /* 151 | ** state manipulation 152 | */ 153 | LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 154 | LUA_API void (lua_close) (lua_State *L); 155 | LUA_API lua_State *(lua_newthread) (lua_State *L); 156 | LUA_API int (lua_resetthread) (lua_State *L); 157 | 158 | LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); 159 | 160 | 161 | LUA_API lua_Number (lua_version) (lua_State *L); 162 | 163 | 164 | /* 165 | ** basic stack manipulation 166 | */ 167 | LUA_API int (lua_absindex) (lua_State *L, int idx); 168 | LUA_API int (lua_gettop) (lua_State *L); 169 | LUA_API void (lua_settop) (lua_State *L, int idx); 170 | LUA_API void (lua_pushvalue) (lua_State *L, int idx); 171 | LUA_API void (lua_rotate) (lua_State *L, int idx, int n); 172 | LUA_API void (lua_copy) (lua_State *L, int fromidx, int toidx); 173 | LUA_API int (lua_checkstack) (lua_State *L, int n); 174 | 175 | LUA_API void (lua_xmove) (lua_State *from, lua_State *to, int n); 176 | 177 | 178 | /* 179 | ** access functions (stack -> C) 180 | */ 181 | 182 | LUA_API int (lua_isnumber) (lua_State *L, int idx); 183 | LUA_API int (lua_isstring) (lua_State *L, int idx); 184 | LUA_API int (lua_iscfunction) (lua_State *L, int idx); 185 | LUA_API int (lua_isinteger) (lua_State *L, int idx); 186 | LUA_API int (lua_isuserdata) (lua_State *L, int idx); 187 | LUA_API int (lua_type) (lua_State *L, int idx); 188 | LUA_API const char *(lua_typename) (lua_State *L, int tp); 189 | 190 | LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum); 191 | LUA_API lua_Integer (lua_tointegerx) (lua_State *L, int idx, int *isnum); 192 | LUA_API int (lua_toboolean) (lua_State *L, int idx); 193 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); 194 | LUA_API lua_Unsigned (lua_rawlen) (lua_State *L, int idx); 195 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); 196 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); 197 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); 198 | LUA_API const void *(lua_topointer) (lua_State *L, int idx); 199 | 200 | 201 | /* 202 | ** Comparison and arithmetic functions 203 | */ 204 | 205 | #define LUA_OPADD 0 /* ORDER TM, ORDER OP */ 206 | #define LUA_OPSUB 1 207 | #define LUA_OPMUL 2 208 | #define LUA_OPMOD 3 209 | #define LUA_OPPOW 4 210 | #define LUA_OPDIV 5 211 | #define LUA_OPIDIV 6 212 | #define LUA_OPBAND 7 213 | #define LUA_OPBOR 8 214 | #define LUA_OPBXOR 9 215 | #define LUA_OPSHL 10 216 | #define LUA_OPSHR 11 217 | #define LUA_OPUNM 12 218 | #define LUA_OPBNOT 13 219 | 220 | LUA_API void (lua_arith) (lua_State *L, int op); 221 | 222 | #define LUA_OPEQ 0 223 | #define LUA_OPLT 1 224 | #define LUA_OPLE 2 225 | 226 | LUA_API int (lua_rawequal) (lua_State *L, int idx1, int idx2); 227 | LUA_API int (lua_compare) (lua_State *L, int idx1, int idx2, int op); 228 | 229 | 230 | /* 231 | ** push functions (C -> stack) 232 | */ 233 | LUA_API void (lua_pushnil) (lua_State *L); 234 | LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n); 235 | LUA_API void (lua_pushinteger) (lua_State *L, lua_Integer n); 236 | LUA_API const char *(lua_pushlstring) (lua_State *L, const char *s, size_t len); 237 | LUA_API const char *(lua_pushstring) (lua_State *L, const char *s); 238 | LUA_API const char *(lua_pushvfstring) (lua_State *L, const char *fmt, 239 | va_list argp); 240 | LUA_API const char *(lua_pushfstring) (lua_State *L, const char *fmt, ...); 241 | LUA_API void (lua_pushcclosure) (lua_State *L, lua_CFunction fn, int n); 242 | LUA_API void (lua_pushboolean) (lua_State *L, int b); 243 | LUA_API void (lua_pushlightuserdata) (lua_State *L, void *p); 244 | LUA_API int (lua_pushthread) (lua_State *L); 245 | 246 | 247 | /* 248 | ** get functions (Lua -> stack) 249 | */ 250 | LUA_API int (lua_getglobal) (lua_State *L, const char *name); 251 | LUA_API int (lua_gettable) (lua_State *L, int idx); 252 | LUA_API int (lua_getfield) (lua_State *L, int idx, const char *k); 253 | LUA_API int (lua_geti) (lua_State *L, int idx, lua_Integer n); 254 | LUA_API int (lua_rawget) (lua_State *L, int idx); 255 | LUA_API int (lua_rawgeti) (lua_State *L, int idx, lua_Integer n); 256 | LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p); 257 | 258 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); 259 | LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue); 260 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); 261 | LUA_API int (lua_getiuservalue) (lua_State *L, int idx, int n); 262 | 263 | 264 | /* 265 | ** set functions (stack -> Lua) 266 | */ 267 | LUA_API void (lua_setglobal) (lua_State *L, const char *name); 268 | LUA_API void (lua_settable) (lua_State *L, int idx); 269 | LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); 270 | LUA_API void (lua_seti) (lua_State *L, int idx, lua_Integer n); 271 | LUA_API void (lua_rawset) (lua_State *L, int idx); 272 | LUA_API void (lua_rawseti) (lua_State *L, int idx, lua_Integer n); 273 | LUA_API void (lua_rawsetp) (lua_State *L, int idx, const void *p); 274 | LUA_API int (lua_setmetatable) (lua_State *L, int objindex); 275 | LUA_API int (lua_setiuservalue) (lua_State *L, int idx, int n); 276 | 277 | 278 | /* 279 | ** 'load' and 'call' functions (load and run Lua code) 280 | */ 281 | LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, 282 | lua_KContext ctx, lua_KFunction k); 283 | #define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) 284 | 285 | LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, 286 | lua_KContext ctx, lua_KFunction k); 287 | #define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) 288 | 289 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, 290 | const char *chunkname, const char *mode); 291 | 292 | LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip); 293 | 294 | 295 | /* 296 | ** coroutine functions 297 | */ 298 | LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_KContext ctx, 299 | lua_KFunction k); 300 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg, 301 | int *nres); 302 | LUA_API int (lua_status) (lua_State *L); 303 | LUA_API int (lua_isyieldable) (lua_State *L); 304 | 305 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) 306 | 307 | 308 | /* 309 | ** Warning-related functions 310 | */ 311 | LUA_API void (lua_setwarnf) (lua_State *L, lua_WarnFunction f, void *ud); 312 | LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont); 313 | 314 | 315 | /* 316 | ** garbage-collection function and options 317 | */ 318 | 319 | #define LUA_GCSTOP 0 320 | #define LUA_GCRESTART 1 321 | #define LUA_GCCOLLECT 2 322 | #define LUA_GCCOUNT 3 323 | #define LUA_GCCOUNTB 4 324 | #define LUA_GCSTEP 5 325 | #define LUA_GCSETPAUSE 6 326 | #define LUA_GCSETSTEPMUL 7 327 | #define LUA_GCISRUNNING 9 328 | #define LUA_GCGEN 10 329 | #define LUA_GCINC 11 330 | 331 | LUA_API int (lua_gc) (lua_State *L, int what, ...); 332 | 333 | 334 | /* 335 | ** miscellaneous functions 336 | */ 337 | 338 | LUA_API int (lua_error) (lua_State *L); 339 | 340 | LUA_API int (lua_next) (lua_State *L, int idx); 341 | 342 | LUA_API void (lua_concat) (lua_State *L, int n); 343 | LUA_API void (lua_len) (lua_State *L, int idx); 344 | 345 | LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s); 346 | 347 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); 348 | LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); 349 | 350 | LUA_API void (lua_toclose) (lua_State *L, int idx); 351 | LUA_API void (lua_closeslot) (lua_State *L, int idx); 352 | 353 | 354 | /* 355 | ** {============================================================== 356 | ** some useful macros 357 | ** =============================================================== 358 | */ 359 | 360 | #define lua_getextraspace(L) ((void *)((char *)(L) - LUA_EXTRASPACE)) 361 | 362 | #define lua_tonumber(L,i) lua_tonumberx(L,(i),NULL) 363 | #define lua_tointeger(L,i) lua_tointegerx(L,(i),NULL) 364 | 365 | #define lua_pop(L,n) lua_settop(L, -(n)-1) 366 | 367 | #define lua_newtable(L) lua_createtable(L, 0, 0) 368 | 369 | #define lua_register(L,n,f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) 370 | 371 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) 372 | 373 | #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) 374 | #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) 375 | #define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) 376 | #define lua_isnil(L,n) (lua_type(L, (n)) == LUA_TNIL) 377 | #define lua_isboolean(L,n) (lua_type(L, (n)) == LUA_TBOOLEAN) 378 | #define lua_isthread(L,n) (lua_type(L, (n)) == LUA_TTHREAD) 379 | #define lua_isnone(L,n) (lua_type(L, (n)) == LUA_TNONE) 380 | #define lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) 381 | 382 | #define lua_pushliteral(L, s) lua_pushstring(L, "" s) 383 | 384 | #define lua_pushglobaltable(L) \ 385 | ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)) 386 | 387 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) 388 | 389 | 390 | #define lua_insert(L,idx) lua_rotate(L, (idx), 1) 391 | 392 | #define lua_remove(L,idx) (lua_rotate(L, (idx), -1), lua_pop(L, 1)) 393 | 394 | #define lua_replace(L,idx) (lua_copy(L, -1, (idx)), lua_pop(L, 1)) 395 | 396 | /* }============================================================== */ 397 | 398 | 399 | /* 400 | ** {============================================================== 401 | ** compatibility macros 402 | ** =============================================================== 403 | */ 404 | #if defined(LUA_COMPAT_APIINTCASTS) 405 | 406 | #define lua_pushunsigned(L,n) lua_pushinteger(L, (lua_Integer)(n)) 407 | #define lua_tounsignedx(L,i,is) ((lua_Unsigned)lua_tointegerx(L,i,is)) 408 | #define lua_tounsigned(L,i) lua_tounsignedx(L,(i),NULL) 409 | 410 | #endif 411 | 412 | #define lua_newuserdata(L,s) lua_newuserdatauv(L,s,1) 413 | #define lua_getuservalue(L,idx) lua_getiuservalue(L,idx,1) 414 | #define lua_setuservalue(L,idx) lua_setiuservalue(L,idx,1) 415 | 416 | #define LUA_NUMTAGS LUA_NUMTYPES 417 | 418 | /* }============================================================== */ 419 | 420 | /* 421 | ** {====================================================================== 422 | ** Debug API 423 | ** ======================================================================= 424 | */ 425 | 426 | 427 | /* 428 | ** Event codes 429 | */ 430 | #define LUA_HOOKCALL 0 431 | #define LUA_HOOKRET 1 432 | #define LUA_HOOKLINE 2 433 | #define LUA_HOOKCOUNT 3 434 | #define LUA_HOOKTAILCALL 4 435 | 436 | 437 | /* 438 | ** Event masks 439 | */ 440 | #define LUA_MASKCALL (1 << LUA_HOOKCALL) 441 | #define LUA_MASKRET (1 << LUA_HOOKRET) 442 | #define LUA_MASKLINE (1 << LUA_HOOKLINE) 443 | #define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) 444 | 445 | typedef struct lua_Debug lua_Debug; /* activation record */ 446 | 447 | 448 | /* Functions to be called by the debugger in specific events */ 449 | typedef void (*lua_Hook) (lua_State *L, lua_Debug *ar); 450 | 451 | 452 | LUA_API int (lua_getstack) (lua_State *L, int level, lua_Debug *ar); 453 | LUA_API int (lua_getinfo) (lua_State *L, const char *what, lua_Debug *ar); 454 | LUA_API const char *(lua_getlocal) (lua_State *L, const lua_Debug *ar, int n); 455 | LUA_API const char *(lua_setlocal) (lua_State *L, const lua_Debug *ar, int n); 456 | LUA_API const char *(lua_getupvalue) (lua_State *L, int funcindex, int n); 457 | LUA_API const char *(lua_setupvalue) (lua_State *L, int funcindex, int n); 458 | 459 | LUA_API void *(lua_upvalueid) (lua_State *L, int fidx, int n); 460 | LUA_API void (lua_upvaluejoin) (lua_State *L, int fidx1, int n1, 461 | int fidx2, int n2); 462 | 463 | LUA_API void (lua_sethook) (lua_State *L, lua_Hook func, int mask, int count); 464 | LUA_API lua_Hook (lua_gethook) (lua_State *L); 465 | LUA_API int (lua_gethookmask) (lua_State *L); 466 | LUA_API int (lua_gethookcount) (lua_State *L); 467 | 468 | LUA_API int (lua_setcstacklimit) (lua_State *L, unsigned int limit); 469 | 470 | struct lua_Debug { 471 | int event; 472 | const char *name; /* (n) */ 473 | const char *namewhat; /* (n) 'global', 'local', 'field', 'method' */ 474 | const char *what; /* (S) 'Lua', 'C', 'main', 'tail' */ 475 | const char *source; /* (S) */ 476 | size_t srclen; /* (S) */ 477 | int currentline; /* (l) */ 478 | int linedefined; /* (S) */ 479 | int lastlinedefined; /* (S) */ 480 | unsigned char nups; /* (u) number of upvalues */ 481 | unsigned char nparams;/* (u) number of parameters */ 482 | char isvararg; /* (u) */ 483 | char istailcall; /* (t) */ 484 | unsigned short ftransfer; /* (r) index of first value transferred */ 485 | unsigned short ntransfer; /* (r) number of transferred values */ 486 | char short_src[LUA_IDSIZE]; /* (S) */ 487 | /* private part */ 488 | struct CallInfo *i_ci; /* active function */ 489 | }; 490 | 491 | /* }====================================================================== */ 492 | 493 | 494 | /****************************************************************************** 495 | * Copyright (C) 1994-2021 Lua.org, PUC-Rio. 496 | * 497 | * Permission is hereby granted, free of charge, to any person obtaining 498 | * a copy of this software and associated documentation files (the 499 | * "Software"), to deal in the Software without restriction, including 500 | * without limitation the rights to use, copy, modify, merge, publish, 501 | * distribute, sublicense, and/or sell copies of the Software, and to 502 | * permit persons to whom the Software is furnished to do so, subject to 503 | * the following conditions: 504 | * 505 | * The above copyright notice and this permission notice shall be 506 | * included in all copies or substantial portions of the Software. 507 | * 508 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 509 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 510 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 511 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 512 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 513 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 514 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 515 | ******************************************************************************/ 516 | 517 | 518 | #endif 519 | -------------------------------------------------------------------------------- /lua_5.4.3/lua.hpp: -------------------------------------------------------------------------------- 1 | // lua.hpp 2 | // Lua header files for C++ 3 | // <> not supplied automatically because Lua also compiles as C++ 4 | 5 | extern "C" { 6 | #include "lua.h" 7 | #include "lualib.h" 8 | #include "lauxlib.h" 9 | } 10 | -------------------------------------------------------------------------------- /lua_5.4.3/lua_5.4.3.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/lua_5.4.3/lua_5.4.3.dll -------------------------------------------------------------------------------- /lua_5.4.3/lua_5.4.3.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/lua_5.4.3/lua_5.4.3.lib -------------------------------------------------------------------------------- /lua_5.4.3/lua_5.4.3x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/lua_5.4.3/lua_5.4.3x64.dll -------------------------------------------------------------------------------- /lua_5.4.3/lua_5.4.3x64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngwolf-project/ST_Curve/30442812ae4ad0d672dc21e62d7dec968b88f728/lua_5.4.3/lua_5.4.3x64.lib -------------------------------------------------------------------------------- /lua_5.4.3/luaconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: luaconf.h $ 3 | ** Configuration file for Lua 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef luaconf_h 9 | #define luaconf_h 10 | 11 | #include 12 | #include 13 | 14 | 15 | /* 16 | ** =================================================================== 17 | ** General Configuration File for Lua 18 | ** 19 | ** Some definitions here can be changed externally, through the compiler 20 | ** (e.g., with '-D' options): They are commented out or protected 21 | ** by '#if !defined' guards. However, several other definitions 22 | ** should be changed directly here, either because they affect the 23 | ** Lua ABI (by making the changes here, you ensure that all software 24 | ** connected to Lua, such as C libraries, will be compiled with the same 25 | ** configuration); or because they are seldom changed. 26 | ** 27 | ** Search for "@@" to find all configurable definitions. 28 | ** =================================================================== 29 | */ 30 | 31 | 32 | /* 33 | ** {==================================================================== 34 | ** System Configuration: macros to adapt (if needed) Lua to some 35 | ** particular platform, for instance restricting it to C89. 36 | ** ===================================================================== 37 | */ 38 | 39 | /* 40 | @@ LUA_USE_C89 controls the use of non-ISO-C89 features. 41 | ** Define it if you want Lua to avoid the use of a few C99 features 42 | ** or Windows-specific features on Windows. 43 | */ 44 | /* #define LUA_USE_C89 */ 45 | 46 | 47 | /* 48 | ** By default, Lua on Windows use (some) specific Windows features 49 | */ 50 | #if !defined(LUA_USE_C89) && defined(_WIN32) && !defined(_WIN32_WCE) 51 | #define LUA_USE_WINDOWS /* enable goodies for regular Windows */ 52 | #endif 53 | 54 | 55 | #if defined(LUA_USE_WINDOWS) 56 | #define LUA_DL_DLL /* enable support for DLL */ 57 | #define LUA_USE_C89 /* broadly, Windows is C89 */ 58 | #endif 59 | 60 | 61 | #if defined(LUA_USE_LINUX) 62 | #define LUA_USE_POSIX 63 | #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ 64 | #endif 65 | 66 | 67 | #if defined(LUA_USE_MACOSX) 68 | #define LUA_USE_POSIX 69 | #define LUA_USE_DLOPEN /* MacOS does not need -ldl */ 70 | #endif 71 | 72 | 73 | /* 74 | @@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits. 75 | */ 76 | #define LUAI_IS32INT ((UINT_MAX >> 30) >= 3) 77 | 78 | /* }================================================================== */ 79 | 80 | 81 | 82 | /* 83 | ** {================================================================== 84 | ** Configuration for Number types. These options should not be 85 | ** set externally, because any other code connected to Lua must 86 | ** use the same configuration. 87 | ** =================================================================== 88 | */ 89 | 90 | /* 91 | @@ LUA_INT_TYPE defines the type for Lua integers. 92 | @@ LUA_FLOAT_TYPE defines the type for Lua floats. 93 | ** Lua should work fine with any mix of these options supported 94 | ** by your C compiler. The usual configurations are 64-bit integers 95 | ** and 'double' (the default), 32-bit integers and 'float' (for 96 | ** restricted platforms), and 'long'/'double' (for C compilers not 97 | ** compliant with C99, which may not have support for 'long long'). 98 | */ 99 | 100 | /* predefined options for LUA_INT_TYPE */ 101 | #define LUA_INT_INT 1 102 | #define LUA_INT_LONG 2 103 | #define LUA_INT_LONGLONG 3 104 | 105 | /* predefined options for LUA_FLOAT_TYPE */ 106 | #define LUA_FLOAT_FLOAT 1 107 | #define LUA_FLOAT_DOUBLE 2 108 | #define LUA_FLOAT_LONGDOUBLE 3 109 | 110 | 111 | /* Default configuration ('long long' and 'double', for 64-bit Lua) */ 112 | #define LUA_INT_DEFAULT LUA_INT_LONGLONG 113 | #define LUA_FLOAT_DEFAULT LUA_FLOAT_DOUBLE 114 | 115 | 116 | /* 117 | @@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. 118 | */ 119 | #define LUA_32BITS 0 120 | 121 | 122 | /* 123 | @@ LUA_C89_NUMBERS ensures that Lua uses the largest types available for 124 | ** C89 ('long' and 'double'); Windows always has '__int64', so it does 125 | ** not need to use this case. 126 | */ 127 | #if defined(LUA_USE_C89) && !defined(LUA_USE_WINDOWS) 128 | #define LUA_C89_NUMBERS 1 129 | #else 130 | #define LUA_C89_NUMBERS 0 131 | #endif 132 | 133 | 134 | #if LUA_32BITS /* { */ 135 | /* 136 | ** 32-bit integers and 'float' 137 | */ 138 | #if LUAI_IS32INT /* use 'int' if big enough */ 139 | #define LUA_INT_TYPE LUA_INT_INT 140 | #else /* otherwise use 'long' */ 141 | #define LUA_INT_TYPE LUA_INT_LONG 142 | #endif 143 | #define LUA_FLOAT_TYPE LUA_FLOAT_FLOAT 144 | 145 | #elif LUA_C89_NUMBERS /* }{ */ 146 | /* 147 | ** largest types available for C89 ('long' and 'double') 148 | */ 149 | #define LUA_INT_TYPE LUA_INT_LONG 150 | #define LUA_FLOAT_TYPE LUA_FLOAT_DOUBLE 151 | 152 | #else /* }{ */ 153 | /* use defaults */ 154 | 155 | #define LUA_INT_TYPE LUA_INT_DEFAULT 156 | #define LUA_FLOAT_TYPE LUA_FLOAT_DEFAULT 157 | 158 | #endif /* } */ 159 | 160 | 161 | /* }================================================================== */ 162 | 163 | 164 | 165 | /* 166 | ** {================================================================== 167 | ** Configuration for Paths. 168 | ** =================================================================== 169 | */ 170 | 171 | /* 172 | ** LUA_PATH_SEP is the character that separates templates in a path. 173 | ** LUA_PATH_MARK is the string that marks the substitution points in a 174 | ** template. 175 | ** LUA_EXEC_DIR in a Windows path is replaced by the executable's 176 | ** directory. 177 | */ 178 | #define LUA_PATH_SEP ";" 179 | #define LUA_PATH_MARK "?" 180 | #define LUA_EXEC_DIR "!" 181 | 182 | 183 | /* 184 | @@ LUA_PATH_DEFAULT is the default path that Lua uses to look for 185 | ** Lua libraries. 186 | @@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for 187 | ** C libraries. 188 | ** CHANGE them if your machine has a non-conventional directory 189 | ** hierarchy or if you want to install your libraries in 190 | ** non-conventional directories. 191 | */ 192 | 193 | #define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR 194 | #if defined(_WIN32) /* { */ 195 | /* 196 | ** In Windows, any exclamation mark ('!') in the path is replaced by the 197 | ** path of the directory of the executable file of the current process. 198 | */ 199 | #define LUA_LDIR "!\\lua\\" 200 | #define LUA_CDIR "!\\" 201 | #define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\" 202 | 203 | #if !defined(LUA_PATH_DEFAULT) 204 | #define LUA_PATH_DEFAULT \ 205 | LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \ 206 | LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \ 207 | LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \ 208 | ".\\?.lua;" ".\\?\\init.lua" 209 | #endif 210 | 211 | #if !defined(LUA_CPATH_DEFAULT) 212 | #define LUA_CPATH_DEFAULT \ 213 | LUA_CDIR"?.dll;" \ 214 | LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \ 215 | LUA_CDIR"loadall.dll;" ".\\?.dll" 216 | #endif 217 | 218 | #else /* }{ */ 219 | 220 | #define LUA_ROOT "/usr/local/" 221 | #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" 222 | #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" 223 | 224 | #if !defined(LUA_PATH_DEFAULT) 225 | #define LUA_PATH_DEFAULT \ 226 | LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ 227 | LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ 228 | "./?.lua;" "./?/init.lua" 229 | #endif 230 | 231 | #if !defined(LUA_CPATH_DEFAULT) 232 | #define LUA_CPATH_DEFAULT \ 233 | LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so" 234 | #endif 235 | 236 | #endif /* } */ 237 | 238 | 239 | /* 240 | @@ LUA_DIRSEP is the directory separator (for submodules). 241 | ** CHANGE it if your machine does not use "/" as the directory separator 242 | ** and is not Windows. (On Windows Lua automatically uses "\".) 243 | */ 244 | #if !defined(LUA_DIRSEP) 245 | 246 | #if defined(_WIN32) 247 | #define LUA_DIRSEP "\\" 248 | #else 249 | #define LUA_DIRSEP "/" 250 | #endif 251 | 252 | #endif 253 | 254 | /* }================================================================== */ 255 | 256 | 257 | /* 258 | ** {================================================================== 259 | ** Marks for exported symbols in the C code 260 | ** =================================================================== 261 | */ 262 | 263 | /* 264 | @@ LUA_API is a mark for all core API functions. 265 | @@ LUALIB_API is a mark for all auxiliary library functions. 266 | @@ LUAMOD_API is a mark for all standard library opening functions. 267 | ** CHANGE them if you need to define those functions in some special way. 268 | ** For instance, if you want to create one Windows DLL with the core and 269 | ** the libraries, you may want to use the following definition (define 270 | ** LUA_BUILD_AS_DLL to get it). 271 | */ 272 | #if defined(LUA_BUILD_AS_DLL) /* { */ 273 | 274 | #if defined(LUA_CORE) || defined(LUA_LIB) /* { */ 275 | #define LUA_API __declspec(dllexport) 276 | #else /* }{ */ 277 | #define LUA_API __declspec(dllimport) 278 | #endif /* } */ 279 | 280 | #else /* }{ */ 281 | 282 | #define LUA_API extern 283 | 284 | #endif /* } */ 285 | 286 | 287 | /* 288 | ** More often than not the libs go together with the core. 289 | */ 290 | #define LUALIB_API LUA_API 291 | #define LUAMOD_API LUA_API 292 | 293 | 294 | /* 295 | @@ LUAI_FUNC is a mark for all extern functions that are not to be 296 | ** exported to outside modules. 297 | @@ LUAI_DDEF and LUAI_DDEC are marks for all extern (const) variables, 298 | ** none of which to be exported to outside modules (LUAI_DDEF for 299 | ** definitions and LUAI_DDEC for declarations). 300 | ** CHANGE them if you need to mark them in some special way. Elf/gcc 301 | ** (versions 3.2 and later) mark them as "hidden" to optimize access 302 | ** when Lua is compiled as a shared library. Not all elf targets support 303 | ** this attribute. Unfortunately, gcc does not offer a way to check 304 | ** whether the target offers that support, and those without support 305 | ** give a warning about it. To avoid these warnings, change to the 306 | ** default definition. 307 | */ 308 | #if defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \ 309 | defined(__ELF__) /* { */ 310 | #define LUAI_FUNC __attribute__((visibility("internal"))) extern 311 | #else /* }{ */ 312 | #define LUAI_FUNC extern 313 | #endif /* } */ 314 | 315 | #define LUAI_DDEC(dec) LUAI_FUNC dec 316 | #define LUAI_DDEF /* empty */ 317 | 318 | /* }================================================================== */ 319 | 320 | 321 | /* 322 | ** {================================================================== 323 | ** Compatibility with previous versions 324 | ** =================================================================== 325 | */ 326 | 327 | /* 328 | @@ LUA_COMPAT_5_3 controls other macros for compatibility with Lua 5.3. 329 | ** You can define it to get all options, or change specific options 330 | ** to fit your specific needs. 331 | */ 332 | #if defined(LUA_COMPAT_5_3) /* { */ 333 | 334 | /* 335 | @@ LUA_COMPAT_MATHLIB controls the presence of several deprecated 336 | ** functions in the mathematical library. 337 | ** (These functions were already officially removed in 5.3; 338 | ** nevertheless they are still available here.) 339 | */ 340 | #define LUA_COMPAT_MATHLIB 341 | 342 | /* 343 | @@ LUA_COMPAT_APIINTCASTS controls the presence of macros for 344 | ** manipulating other integer types (lua_pushunsigned, lua_tounsigned, 345 | ** luaL_checkint, luaL_checklong, etc.) 346 | ** (These macros were also officially removed in 5.3, but they are still 347 | ** available here.) 348 | */ 349 | #define LUA_COMPAT_APIINTCASTS 350 | 351 | 352 | /* 353 | @@ LUA_COMPAT_LT_LE controls the emulation of the '__le' metamethod 354 | ** using '__lt'. 355 | */ 356 | #define LUA_COMPAT_LT_LE 357 | 358 | 359 | /* 360 | @@ The following macros supply trivial compatibility for some 361 | ** changes in the API. The macros themselves document how to 362 | ** change your code to avoid using them. 363 | ** (Once more, these macros were officially removed in 5.3, but they are 364 | ** still available here.) 365 | */ 366 | #define lua_strlen(L,i) lua_rawlen(L, (i)) 367 | 368 | #define lua_objlen(L,i) lua_rawlen(L, (i)) 369 | 370 | #define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) 371 | #define lua_lessthan(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPLT) 372 | 373 | #endif /* } */ 374 | 375 | /* }================================================================== */ 376 | 377 | 378 | 379 | /* 380 | ** {================================================================== 381 | ** Configuration for Numbers (low-level part). 382 | ** Change these definitions if no predefined LUA_FLOAT_* / LUA_INT_* 383 | ** satisfy your needs. 384 | ** =================================================================== 385 | */ 386 | 387 | /* 388 | @@ LUAI_UACNUMBER is the result of a 'default argument promotion' 389 | @@ over a floating number. 390 | @@ l_floatatt(x) corrects float attribute 'x' to the proper float type 391 | ** by prefixing it with one of FLT/DBL/LDBL. 392 | @@ LUA_NUMBER_FRMLEN is the length modifier for writing floats. 393 | @@ LUA_NUMBER_FMT is the format for writing floats. 394 | @@ lua_number2str converts a float to a string. 395 | @@ l_mathop allows the addition of an 'l' or 'f' to all math operations. 396 | @@ l_floor takes the floor of a float. 397 | @@ lua_str2number converts a decimal numeral to a number. 398 | */ 399 | 400 | 401 | /* The following definitions are good for most cases here */ 402 | 403 | #define l_floor(x) (l_mathop(floor)(x)) 404 | 405 | #define lua_number2str(s,sz,n) \ 406 | l_sprintf((s), sz, LUA_NUMBER_FMT, (LUAI_UACNUMBER)(n)) 407 | 408 | /* 409 | @@ lua_numbertointeger converts a float number with an integral value 410 | ** to an integer, or returns 0 if float is not within the range of 411 | ** a lua_Integer. (The range comparisons are tricky because of 412 | ** rounding. The tests here assume a two-complement representation, 413 | ** where MININTEGER always has an exact representation as a float; 414 | ** MAXINTEGER may not have one, and therefore its conversion to float 415 | ** may have an ill-defined value.) 416 | */ 417 | #define lua_numbertointeger(n,p) \ 418 | ((n) >= (LUA_NUMBER)(LUA_MININTEGER) && \ 419 | (n) < -(LUA_NUMBER)(LUA_MININTEGER) && \ 420 | (*(p) = (LUA_INTEGER)(n), 1)) 421 | 422 | 423 | /* now the variable definitions */ 424 | 425 | #if LUA_FLOAT_TYPE == LUA_FLOAT_FLOAT /* { single float */ 426 | 427 | #define LUA_NUMBER float 428 | 429 | #define l_floatatt(n) (FLT_##n) 430 | 431 | #define LUAI_UACNUMBER double 432 | 433 | #define LUA_NUMBER_FRMLEN "" 434 | #define LUA_NUMBER_FMT "%.7g" 435 | 436 | #define l_mathop(op) op##f 437 | 438 | #define lua_str2number(s,p) strtof((s), (p)) 439 | 440 | 441 | #elif LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE /* }{ long double */ 442 | 443 | #define LUA_NUMBER long double 444 | 445 | #define l_floatatt(n) (LDBL_##n) 446 | 447 | #define LUAI_UACNUMBER long double 448 | 449 | #define LUA_NUMBER_FRMLEN "L" 450 | #define LUA_NUMBER_FMT "%.19Lg" 451 | 452 | #define l_mathop(op) op##l 453 | 454 | #define lua_str2number(s,p) strtold((s), (p)) 455 | 456 | #elif LUA_FLOAT_TYPE == LUA_FLOAT_DOUBLE /* }{ double */ 457 | 458 | #define LUA_NUMBER double 459 | 460 | #define l_floatatt(n) (DBL_##n) 461 | 462 | #define LUAI_UACNUMBER double 463 | 464 | #define LUA_NUMBER_FRMLEN "" 465 | #define LUA_NUMBER_FMT "%.14g" 466 | 467 | #define l_mathop(op) op 468 | 469 | #define lua_str2number(s,p) strtod((s), (p)) 470 | 471 | #else /* }{ */ 472 | 473 | #error "numeric float type not defined" 474 | 475 | #endif /* } */ 476 | 477 | 478 | 479 | /* 480 | @@ LUA_UNSIGNED is the unsigned version of LUA_INTEGER. 481 | @@ LUAI_UACINT is the result of a 'default argument promotion' 482 | @@ over a LUA_INTEGER. 483 | @@ LUA_INTEGER_FRMLEN is the length modifier for reading/writing integers. 484 | @@ LUA_INTEGER_FMT is the format for writing integers. 485 | @@ LUA_MAXINTEGER is the maximum value for a LUA_INTEGER. 486 | @@ LUA_MININTEGER is the minimum value for a LUA_INTEGER. 487 | @@ LUA_MAXUNSIGNED is the maximum value for a LUA_UNSIGNED. 488 | @@ LUA_UNSIGNEDBITS is the number of bits in a LUA_UNSIGNED. 489 | @@ lua_integer2str converts an integer to a string. 490 | */ 491 | 492 | 493 | /* The following definitions are good for most cases here */ 494 | 495 | #define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d" 496 | 497 | #define LUAI_UACINT LUA_INTEGER 498 | 499 | #define lua_integer2str(s,sz,n) \ 500 | l_sprintf((s), sz, LUA_INTEGER_FMT, (LUAI_UACINT)(n)) 501 | 502 | /* 503 | ** use LUAI_UACINT here to avoid problems with promotions (which 504 | ** can turn a comparison between unsigneds into a signed comparison) 505 | */ 506 | #define LUA_UNSIGNED unsigned LUAI_UACINT 507 | 508 | 509 | #define LUA_UNSIGNEDBITS (sizeof(LUA_UNSIGNED) * CHAR_BIT) 510 | 511 | 512 | /* now the variable definitions */ 513 | 514 | #if LUA_INT_TYPE == LUA_INT_INT /* { int */ 515 | 516 | #define LUA_INTEGER int 517 | #define LUA_INTEGER_FRMLEN "" 518 | 519 | #define LUA_MAXINTEGER INT_MAX 520 | #define LUA_MININTEGER INT_MIN 521 | 522 | #define LUA_MAXUNSIGNED UINT_MAX 523 | 524 | #elif LUA_INT_TYPE == LUA_INT_LONG /* }{ long */ 525 | 526 | #define LUA_INTEGER long 527 | #define LUA_INTEGER_FRMLEN "l" 528 | 529 | #define LUA_MAXINTEGER LONG_MAX 530 | #define LUA_MININTEGER LONG_MIN 531 | 532 | #define LUA_MAXUNSIGNED ULONG_MAX 533 | 534 | #elif LUA_INT_TYPE == LUA_INT_LONGLONG /* }{ long long */ 535 | 536 | /* use presence of macro LLONG_MAX as proxy for C99 compliance */ 537 | #if defined(LLONG_MAX) /* { */ 538 | /* use ISO C99 stuff */ 539 | 540 | #define LUA_INTEGER long long 541 | #define LUA_INTEGER_FRMLEN "ll" 542 | 543 | #define LUA_MAXINTEGER LLONG_MAX 544 | #define LUA_MININTEGER LLONG_MIN 545 | 546 | #define LUA_MAXUNSIGNED ULLONG_MAX 547 | 548 | #elif defined(LUA_USE_WINDOWS) /* }{ */ 549 | /* in Windows, can use specific Windows types */ 550 | 551 | #define LUA_INTEGER __int64 552 | #define LUA_INTEGER_FRMLEN "I64" 553 | 554 | #define LUA_MAXINTEGER _I64_MAX 555 | #define LUA_MININTEGER _I64_MIN 556 | 557 | #define LUA_MAXUNSIGNED _UI64_MAX 558 | 559 | #else /* }{ */ 560 | 561 | #error "Compiler does not support 'long long'. Use option '-DLUA_32BITS' \ 562 | or '-DLUA_C89_NUMBERS' (see file 'luaconf.h' for details)" 563 | 564 | #endif /* } */ 565 | 566 | #else /* }{ */ 567 | 568 | #error "numeric integer type not defined" 569 | 570 | #endif /* } */ 571 | 572 | /* }================================================================== */ 573 | 574 | 575 | /* 576 | ** {================================================================== 577 | ** Dependencies with C99 and other C details 578 | ** =================================================================== 579 | */ 580 | 581 | /* 582 | @@ l_sprintf is equivalent to 'snprintf' or 'sprintf' in C89. 583 | ** (All uses in Lua have only one format item.) 584 | */ 585 | #if !defined(LUA_USE_C89) 586 | #define l_sprintf(s,sz,f,i) snprintf(s,sz,f,i) 587 | #else 588 | #define l_sprintf(s,sz,f,i) ((void)(sz), sprintf(s,f,i)) 589 | #endif 590 | 591 | 592 | /* 593 | @@ lua_strx2number converts a hexadecimal numeral to a number. 594 | ** In C99, 'strtod' does that conversion. Otherwise, you can 595 | ** leave 'lua_strx2number' undefined and Lua will provide its own 596 | ** implementation. 597 | */ 598 | #if !defined(LUA_USE_C89) 599 | #define lua_strx2number(s,p) lua_str2number(s,p) 600 | #endif 601 | 602 | 603 | /* 604 | @@ lua_pointer2str converts a pointer to a readable string in a 605 | ** non-specified way. 606 | */ 607 | #define lua_pointer2str(buff,sz,p) l_sprintf(buff,sz,"%p",p) 608 | 609 | 610 | /* 611 | @@ lua_number2strx converts a float to a hexadecimal numeral. 612 | ** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that. 613 | ** Otherwise, you can leave 'lua_number2strx' undefined and Lua will 614 | ** provide its own implementation. 615 | */ 616 | #if !defined(LUA_USE_C89) 617 | #define lua_number2strx(L,b,sz,f,n) \ 618 | ((void)L, l_sprintf(b,sz,f,(LUAI_UACNUMBER)(n))) 619 | #endif 620 | 621 | 622 | /* 623 | ** 'strtof' and 'opf' variants for math functions are not valid in 624 | ** C89. Otherwise, the macro 'HUGE_VALF' is a good proxy for testing the 625 | ** availability of these variants. ('math.h' is already included in 626 | ** all files that use these macros.) 627 | */ 628 | #if defined(LUA_USE_C89) || (defined(HUGE_VAL) && !defined(HUGE_VALF)) 629 | #undef l_mathop /* variants not available */ 630 | #undef lua_str2number 631 | #define l_mathop(op) (lua_Number)op /* no variant */ 632 | #define lua_str2number(s,p) ((lua_Number)strtod((s), (p))) 633 | #endif 634 | 635 | 636 | /* 637 | @@ LUA_KCONTEXT is the type of the context ('ctx') for continuation 638 | ** functions. It must be a numerical type; Lua will use 'intptr_t' if 639 | ** available, otherwise it will use 'ptrdiff_t' (the nearest thing to 640 | ** 'intptr_t' in C89) 641 | */ 642 | #define LUA_KCONTEXT ptrdiff_t 643 | 644 | #if !defined(LUA_USE_C89) && defined(__STDC_VERSION__) && \ 645 | __STDC_VERSION__ >= 199901L 646 | #include 647 | #if defined(INTPTR_MAX) /* even in C99 this type is optional */ 648 | #undef LUA_KCONTEXT 649 | #define LUA_KCONTEXT intptr_t 650 | #endif 651 | #endif 652 | 653 | 654 | /* 655 | @@ lua_getlocaledecpoint gets the locale "radix character" (decimal point). 656 | ** Change that if you do not want to use C locales. (Code using this 657 | ** macro must include the header 'locale.h'.) 658 | */ 659 | #if !defined(lua_getlocaledecpoint) 660 | #define lua_getlocaledecpoint() (localeconv()->decimal_point[0]) 661 | #endif 662 | 663 | 664 | /* 665 | ** macros to improve jump prediction, used mostly for error handling 666 | ** and debug facilities. (Some macros in the Lua API use these macros. 667 | ** Define LUA_NOBUILTIN if you do not want '__builtin_expect' in your 668 | ** code.) 669 | */ 670 | #if !defined(luai_likely) 671 | 672 | #if defined(__GNUC__) && !defined(LUA_NOBUILTIN) 673 | #define luai_likely(x) (__builtin_expect(((x) != 0), 1)) 674 | #define luai_unlikely(x) (__builtin_expect(((x) != 0), 0)) 675 | #else 676 | #define luai_likely(x) (x) 677 | #define luai_unlikely(x) (x) 678 | #endif 679 | 680 | #endif 681 | 682 | 683 | #if defined(LUA_CORE) || defined(LUA_LIB) 684 | /* shorter names for Lua's own use */ 685 | #define l_likely(x) luai_likely(x) 686 | #define l_unlikely(x) luai_unlikely(x) 687 | #endif 688 | 689 | 690 | 691 | /* }================================================================== */ 692 | 693 | 694 | /* 695 | ** {================================================================== 696 | ** Language Variations 697 | ** ===================================================================== 698 | */ 699 | 700 | /* 701 | @@ LUA_NOCVTN2S/LUA_NOCVTS2N control how Lua performs some 702 | ** coercions. Define LUA_NOCVTN2S to turn off automatic coercion from 703 | ** numbers to strings. Define LUA_NOCVTS2N to turn off automatic 704 | ** coercion from strings to numbers. 705 | */ 706 | /* #define LUA_NOCVTN2S */ 707 | /* #define LUA_NOCVTS2N */ 708 | 709 | 710 | /* 711 | @@ LUA_USE_APICHECK turns on several consistency checks on the C API. 712 | ** Define it as a help when debugging C code. 713 | */ 714 | #if defined(LUA_USE_APICHECK) 715 | #include 716 | #define luai_apicheck(l,e) assert(e) 717 | #endif 718 | 719 | /* }================================================================== */ 720 | 721 | 722 | /* 723 | ** {================================================================== 724 | ** Macros that affect the API and must be stable (that is, must be the 725 | ** same when you compile Lua and when you compile code that links to 726 | ** Lua). 727 | ** ===================================================================== 728 | */ 729 | 730 | /* 731 | @@ LUAI_MAXSTACK limits the size of the Lua stack. 732 | ** CHANGE it if you need a different limit. This limit is arbitrary; 733 | ** its only purpose is to stop Lua from consuming unlimited stack 734 | ** space (and to reserve some numbers for pseudo-indices). 735 | ** (It must fit into max(size_t)/32.) 736 | */ 737 | #if LUAI_IS32INT 738 | #define LUAI_MAXSTACK 1000000 739 | #else 740 | #define LUAI_MAXSTACK 15000 741 | #endif 742 | 743 | 744 | /* 745 | @@ LUA_EXTRASPACE defines the size of a raw memory area associated with 746 | ** a Lua state with very fast access. 747 | ** CHANGE it if you need a different size. 748 | */ 749 | #define LUA_EXTRASPACE (sizeof(void *)) 750 | 751 | 752 | /* 753 | @@ LUA_IDSIZE gives the maximum size for the description of the source 754 | @@ of a function in debug information. 755 | ** CHANGE it if you want a different size. 756 | */ 757 | #define LUA_IDSIZE 60 758 | 759 | 760 | /* 761 | @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. 762 | */ 763 | #define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number))) 764 | 765 | 766 | /* 767 | @@ LUAI_MAXALIGN defines fields that, when used in a union, ensure 768 | ** maximum alignment for the other items in that union. 769 | */ 770 | #define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l 771 | 772 | /* }================================================================== */ 773 | 774 | 775 | 776 | 777 | 778 | /* =================================================================== */ 779 | 780 | /* 781 | ** Local configuration. You can use this space to add your redefinitions 782 | ** without modifying the main part of the file. 783 | */ 784 | 785 | 786 | 787 | 788 | 789 | #endif 790 | 791 | -------------------------------------------------------------------------------- /lua_5.4.3/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* version suffix for environment variable names */ 15 | #define LUA_VERSUFFIX "_" LUA_VERSION_MAJOR "_" LUA_VERSION_MINOR 16 | 17 | 18 | LUAMOD_API int (luaopen_base) (lua_State *L); 19 | 20 | #define LUA_COLIBNAME "coroutine" 21 | LUAMOD_API int (luaopen_coroutine) (lua_State *L); 22 | 23 | #define LUA_TABLIBNAME "table" 24 | LUAMOD_API int (luaopen_table) (lua_State *L); 25 | 26 | #define LUA_IOLIBNAME "io" 27 | LUAMOD_API int (luaopen_io) (lua_State *L); 28 | 29 | #define LUA_OSLIBNAME "os" 30 | LUAMOD_API int (luaopen_os) (lua_State *L); 31 | 32 | #define LUA_STRLIBNAME "string" 33 | LUAMOD_API int (luaopen_string) (lua_State *L); 34 | 35 | #define LUA_UTF8LIBNAME "utf8" 36 | LUAMOD_API int (luaopen_utf8) (lua_State *L); 37 | 38 | #define LUA_MATHLIBNAME "math" 39 | LUAMOD_API int (luaopen_math) (lua_State *L); 40 | 41 | #define LUA_DBLIBNAME "debug" 42 | LUAMOD_API int (luaopen_debug) (lua_State *L); 43 | 44 | #define LUA_LOADLIBNAME "package" 45 | LUAMOD_API int (luaopen_package) (lua_State *L); 46 | 47 | 48 | /* open all previous libraries */ 49 | LUALIB_API void (luaL_openlibs) (lua_State *L); 50 | 51 | 52 | #endif 53 | --------------------------------------------------------------------------------